[LLVMbugs] [Bug 21963] New: static maps preclude multiple interpreter instances

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Dec 18 10:15:08 PST 2014


            Bug ID: 21963
           Summary: static maps preclude multiple interpreter instances
           Product: libraries
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Interpreter
          Assignee: unassignedbugs at nondot.org
          Reporter: lvoege+llvm at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 13573
  --> http://llvm.org/bugs/attachment.cgi?id=13573&action=edit

the Interpreter class looks up external functions with a static map, keyed on
Function *. this makes it impossible to reliably have multiple Interpreter
instances in the same process. when I expose some callback to one instance, do
my thing and tear it all down, then expose some other callback to another
instance that just happens to get the same Function pointer as the earlier one,
hilarity ensues.

this is not a problem if those maps are in the Interpreter instance. patch

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/20141218/ebcbfddd/attachment.html>

More information about the llvm-bugs mailing list