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, n54%gmx.com@localhost
Subject: Re: lib/53805: dlclose(3) does not interact correctly with atexit(3)
callbacks
Date: Thu, 20 Dec 2018 19:19:06 +0100
On Thu, Dec 20, 2018 at 06:10:01PM +0000, Kamil Rytarowski wrote:
> This is the common behavior of atexit(3) vs dlclose(3). Internally
> atexit(3) is registered together with its DSO pointer so we have all we
> need there.
It's not, that's the whole point. atexit(3) has no idea what DSO the
handler is in beyond doing address scans. Which is exactly atexit(3) is
the wrong interface here.
Joerg
Home |
Main Index |
Thread Index |
Old Index