[Bug dynamic-link/16805] dynamic library not getting reinitialized on multiple calls to dlopen()

davejohansen at gmail dot com sourceware-bugzilla@sourceware.org
Tue Apr 22 15:42:00 GMT 2014


https://sourceware.org/bugzilla/show_bug.cgi?id=16805

--- Comment #2 from Dave Johansen <davejohansen at gmail dot com> ---
It's unclear what the plan of action is from that last comment. Is this issue
going to be fixed?

I realize that dlclose() only states an intent, but the fact remains that
glibc/gcc is generating code that is doing the wrong thing. The same code built
with clang++, the Intel C++ compiler and older versions of g++ do the right
thing and I don't see why more current versions of gcc shouldn't do the right
thing as well.

>From reading the comments on the gcc bugzilla and revision history of this
change, it appears that it was made as an optimization to improve performance.
Optimizations are great but they shouldn't be allowed to stick around if they
introduce incorrect behavior and in this case it appears that this is a
regression and that the optimization needs to be fixed or reverted.

-- 
You are receiving this mail because:
You are on the CC list for the bug.



More information about the Glibc-bugs mailing list