On Sat, 20 Dec 2025 10:42:26 +0100 Henryk Paluch <[email protected]> wrote:
> So now it is up to you to decide what to do: > > a) implement similar mechanism as other BSDs and Linux to make atexit(3) > work properly from dlopen(3)ed DSOs > As far as I understand the standard does not specify this behavior. I'm not saying there is no value in "fixing" it, but then this would not be strictly compliant with the standard, right? https://pubs.opengroup.org/onlinepubs/9799919799/functions/atexit.html > b) replace all dlopen(3)ed DSOs atexit(3) calls with destructor attribute > Are there many such instances which are part of the core NetBSD codebase, rather than the third party components like X11? In other words is this a persistent issue or just an isolated case?
