[LLVMbugs] [Bug 1216] NEW: JITResolver shouldn't outlive its ExecutionEngine
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Feb 21 22:58:49 PST 2007
http://llvm.org/bugs/show_bug.cgi?id=1216
Summary: JITResolver shouldn't outlive its ExecutionEngine
Product: libraries
Version: trunk
Platform: PC
URL: http://xzrq.net/reee/reee.cpp
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Target-Independent JIT
AssignedTo: unassignedbugs at nondot.org
ReportedBy: ppergame at gmail.com
JIT uses the instance of JITResolver stored in a static variable in
getJITResolver(). This means that JITResolver::ExternalFnToStubMap is not
cleared between consecutive, independent JIT invocations.
When the ExecutionEngine is deleted, the stub goes away via JITMemoryManager,
but the reference remains. The next ExecutionEngine tries to reuse the invalid
stubs and segfaults.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list