[llvm-bugs] [Bug 41880] New: ~RTDyldMemoryManager should call deregisterEHFrames

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 15 02:06:19 PDT 2019


https://bugs.llvm.org/show_bug.cgi?id=41880

            Bug ID: 41880
           Summary: ~RTDyldMemoryManager should call deregisterEHFrames
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: OrcJIT
          Assignee: unassignedbugs at nondot.org
          Reporter: tneumann at users.sourceforge.net
                CC: 1101.debian at gmail.com, llvm-bugs at lists.llvm.org

The class RTDyldMemoryManager does not de-register the exception handling
frames automatically when the memory manager is destroyed. This leads to
crashes in C++ exception handling when an exception is thrown after an orc JIT
instance is destroyed.

The problem can be fixed trivially by calling deregisterEHFrames from the
destructor of RTDyldMemoryManager. This is a regression introduced by llvm 8,
and is probably an oversight caused by code movement.

-- 
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/20190515/f46ba4b1/attachment.html>


More information about the llvm-bugs mailing list