This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/20990] Double dlclose() detection contains data race, is unreliable, and can corrupt memory.
- From: "carlos at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 26 Dec 2016 03:14:08 +0000
- Subject: [Bug dynamic-link/20990] Double dlclose() detection contains data race, is unreliable, and can corrupt memory.
- Auto-submitted: auto-generated
- References: <bug-20990-131@http.sourceware.org/bugzilla/>
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.