[llvm-bugs] [Bug 39641] New: asan hangs at exception
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Nov 12 14:26:11 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39641
Bug ID: 39641
Summary: asan hangs at exception
Product: compiler-rt
Version: 6.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: asan
Assignee: unassignedbugs at nondot.org
Reporter: stsp at list.ru
CC: llvm-bugs at lists.llvm.org
Created attachment 21114
--> https://bugs.llvm.org/attachment.cgi?id=21114&action=edit
test case
Hello.
Attached is a test-case for the problem.
If some C++ shlib is dlopen()ed by the C program,
and then this shlib throws an exception (that it
also catches of course - invisible to the C code),
then asan fails to find __cxa_throw, and calls the
__asan_handle_no_return() in an infinite loop.
Another bug here is that it is not possible to
see the symbols of asan functions:
---
(gdb) bt
#0 0x00000000004e6bf9 in __asan::AsanThread::stack_top() ()
#1 0x00000000004e4785 in __asan_handle_no_return ()
#2 0x000000000043304c in __interceptor___cxa_throw ()
#3 0x00007ffff40fea9f in foo () at shlib.cpp:4
#4 0x00007ffff40fe97d in bar () at shlib.cpp:13
#5 0x00000000005121eb in main () at main.c:11
---
... even though everything was compiled with debug info.
--
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/20181112/b8a23e36/attachment.html>
More information about the llvm-bugs
mailing list