Re: quickdie doing memory allocations (was atomic pin/unpin causing errors) - Mailing list pgsql-hackers

From Andres Freund
Subject Re: quickdie doing memory allocations (was atomic pin/unpin causing errors)
Date
Msg-id 20160505203410.fkvd2u6mbpfdd575@alap3.anarazel.de
Whole thread Raw
In response to Re: quickdie doing memory allocations (was atomic pin/unpin causing errors)  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2016-05-05 16:32:38 -0400, Robert Haas wrote:
> On Thu, May 5, 2016 at 11:51 AM, Andres Freund <andres@anarazel.de> wrote:
> >> #7  0x000000080149e3d6 in nsdispatch () from /lib/libc.so.7
> >> #8  0x00000008014a41c6 in __cxa_finalize () from /lib/libc.so.7
> >> #9  0x000000080144525c in exit () from /lib/libc.so.7
> >> #10 0x00000000008e1bc2 in quickdie (postgres_signal_arg=3) at postgres.c:2623
> 
> Eh, this doesn't this __cxa_finalize() stuff suggest that some C++
> code was linked into the backend?

IIRC __cxa_finalize also handles atexit() (and gcc
__attribute__((destructor))).

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: Poorly-thought-out handling of double variables in pgbench
Next
From: Alvaro Herrera
Date:
Subject: Re: [sqlsmith] Failed assertion in BecomeLockGroupLeader