NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: lib/53805: dlclose(3) does not interact correctly with atexit(3) callbacks



The following reply was made to PR lib/53805; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%bec.de@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: lib-bug-people%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
	netbsd-bugs%netbsd.org@localhost
Subject: Re: lib/53805: dlclose(3) does not interact correctly with atexit(3)
 callbacks
Date: Thu, 20 Dec 2018 18:57:24 +0100

 On Thu, Dec 20, 2018 at 05:10:00PM +0000, n54%gmx.com@localhost wrote:
 > >Description:
 > atexit(3) callback registered in DSO misbehaves if DSO is dlclose(3)d.
 > 
 >  - atexit(3) callback registered in DSO is not called upon dlclose(3),
 >  - atexit(3) callback registered in DSO is called on program termination, even if dlclose(3)d was called and this causes crash.
 
 This is not a bug. Seriously, do not use atexit(3) from a dynamically
 opened DSO.
 
 Joerg
 


Home | Main Index | Thread Index | Old Index