[LLVMbugs] [Bug 8442] New: Thread unsafety in DynamicLibrary.cpp

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 22 14:22:41 PDT 2010


           Summary: Thread unsafety in DynamicLibrary.cpp
           Product: new-bugs
           Version: 2.8
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: g at brewster.org
                CC: llvmbugs at cs.uiuc.edu

The OpenedHandles static variable in DynamicLibrary.cpp is not thread safe. It
looks like there are other thread-safety issues here. I've attached a patch
which  protects OpenedHandles with a mutex. Note that I couldn't use
ManagedStatic with the mutex, as that would have introduced a circular library
dependency (between Support and System).

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list