[llvm-dev] Bug in 3.9.0 RTDyldMemoryManager.cpp
Matt Godbolt via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 30 12:13:20 PDT 2016
Hi folks,
I'm still using MCJIT (I know, I know), and I spotted a crash in exception
handling when I moved from llvm 3.8 to llvm 3.9. I traced it back to EH
frames not being deregistered due to a (typo?) mistake in
RTDyldMemoryManager.cpp:
void deregisterEHFrames(uint8_t *Addr, uint64_t LoadAddr, size_t Size)
override {
* registerEHFramesInProcess(Addr, Size);*
}
..I overrode the function to call deregister instead of register in my own
MemMgr and all's now well.
The crash manifests itself as a seg fault when a process causes an
exception after JITted code has been removed.
Cheers,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160930/436e5316/attachment.html>
More information about the llvm-dev
mailing list