<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - asan hangs at exception"
href="https://bugs.llvm.org/show_bug.cgi?id=39641">39641</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>asan hangs at exception
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>6.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>asan
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>stsp@list.ru
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=21114" name="attach_21114" title="test case">attachment 21114</a> <a href="attachment.cgi?id=21114&action=edit" title="test case">[details]</a></span>
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>