This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/20990] Double dlclose() detection contains data race, is unreliable, and can corrupt memory.


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

--- Comment #2 from Carlos O'Donell <carlos at redhat dot com> ---
The solution is easier.

The posix wording only requires that the handle refer to an open DSO, not the
correct DSO.

Therefore all we need to do is a search of the open maps, compare pointers, and
determine if the void* is in the open set. We should really use an algorithm
that scales here though since the lookup should be as quick as we can make it
(red-black tree).

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]