https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88150
Johannes Pfau <johannespfau at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |code at dawg dot eu, | |johannespfau at gmail dot com --- Comment #8 from Johannes Pfau <johannespfau at gmail dot com> --- Regarding the _d_dso_registry issue: Yes, as far as I can see it is a bug that handleForName dlcloses the handle here. I think what happened is this: handleForName is used in one place with the comment // get handle without loading the library so it is supposed to unload the library there. But it is also called from handleForAddr which is used to get the DSO handle to be stored using setDSOForHandle. I think here, it's not really valid to store the closed handle. Let's ping the expert here though, I've added Martin Nowak to CC.