Re: Preventing abort() and exit() calls in libpq - Mailing list pgsql-hackers

From Noah Misch
Subject Re: Preventing abort() and exit() calls in libpq
Date
Msg-id 20210703001639.GB2374652@rfd.leadboat.com
Whole thread Raw
In response to Re: Preventing abort() and exit() calls in libpq  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Preventing abort() and exit() calls in libpq
List pgsql-hackers
On Fri, Jul 02, 2021 at 11:20:17AM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> > Now it's hoverfly:
> > ! nm -A -u libpq.so.5 2>/dev/null | grep -v __cxa_atexit | grep exit
> > libpq.so.5: atexit               U           -
> > libpq.so.5: pthread_exit         U           -
> 
> Ugh.  What in the world is producing those references?

Those come from a statically-linked libldap_r:

$ nm -A -u /home/nm/sw/nopath/openldap-64/lib/libldap_r.a|grep exit
/home/nm/sw/nopath/openldap-64/lib/libldap_r.a[tpool.o]: .ldap_pvt_thread_exit U           -
/home/nm/sw/nopath/openldap-64/lib/libldap_r.a[thr_posix.o]: .pthread_exit        U           -
/home/nm/sw/nopath/openldap-64/lib/libldap_r.a[init.o]: .atexit              U           -



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Preventing abort() and exit() calls in libpq
Next
From: Jeremy Schneider
Date:
Subject: Re: relation OID in ReorderBufferToastReplace error message