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: unassignedb...@nondot.org
          Reporter: s...@list.ru
                CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to