[LLVMbugs] [Bug 15750] New: GDBJITRegistrar not thread-safe (makes MCJIT not thread-safe)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Apr 15 09:13:44 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=15750
Bug ID: 15750
Summary: GDBJITRegistrar not thread-safe (makes MCJIT not
thread-safe)
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: Generic Execution Engine Support
Assignee: unassignedbugs at nondot.org
Reporter: jim.kearney at oracle.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
GDBJITRegistrar::(de)registerObject() accesses a member variable
ObjectBufferMap without any synchronization. The class is used as a singleton
and so multiple instances of MCJIT try to modify that map simultaneously.
The code is written to be thread-safe with its access to gdb variables but not
with its own state, which is strange given its singleton nature.
Also, JITRegistrar::getGDBRegistrar should use ManagedStatic. The
initialization pattern it uses is not guaranteed thread-safe.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130415/0d1d8759/attachment.html>
More information about the llvm-bugs
mailing list