<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 - After r325240, most ASan tests hang in urdlck on FreeBSD 12.0-CURRENT"
href="https://bugs.llvm.org/show_bug.cgi?id=37817">37817</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>After r325240, most ASan tests hang in urdlck on FreeBSD 12.0-CURRENT
</td>
</tr>
<tr>
<th>Product</th>
<td>compiler-rt
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>FreeBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</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>dimitry@andric.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>As noted in <a href="https://reviews.llvm.org/rL325240">https://reviews.llvm.org/rL325240</a> ("Add Xray instrumentation
support to FreeBSD"), after this commit, most ASan unit tests hang on FreeBSD
12.0-CURRENT, in the 'urdlck' state:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU
COMMAND
54284 dim 1 30 10 16384G 6700K urldck 21 0:00 0.00%
Asan-x86_64-inline-
Attaching gdb to it shows the following backtrace:
(gdb) bt
#0 _umtx_op_err () at /usr/src/lib/libthr/arch/amd64/amd64/_umtx_op_err.S:37
#1 0x000000080067c571 in __thr_rwlock_rdlock (rwlock=0x800696200,
flags=<optimized out>, tsp=<optimized out>) at
/usr/src/lib/libthr/thread/thr_umtx.c:307
#2 0x00000008006854c0 in _thr_rwlock_rdlock (flags=0, tsp=0x0,
rwlock=<optimized out>) at /usr/src/lib/libthr/thread/thr_umtx.h:232
#3 _thr_rtld_rlock_acquire (lock=0x800696200) at
/usr/src/lib/libthr/thread/thr_rtld.c:125
#4 0x000000080051a70b in rlock_acquire (lock=0x80052b0a0 <rtld_locks>,
lockstate=0x7fffffffddd8) at /usr/src/libexec/rtld-elf/rtld_lock.c:208
#5 0x000000080051336d in _rtld_bind (obj=0x800532000, reloff=1512) at
/usr/src/libexec/rtld-elf/rtld.c:812
#6 0x000000080051004d in _rtld_bind_start () at
/usr/src/libexec/rtld-elf/amd64/rtld_start.S:121
#7 0x0000000800685313 in _thr_rtld_init () at
/usr/src/lib/libthr/thread/thr_rtld.c:240
#8 0x0000000800684fba in _libpthread_init (curthread=0x73e810
<alloc_memory_for_dlsym>) at /usr/src/lib/libthr/thread/thr_init.c:365
#9 0x000000080067dff2 in _thr_check_init () at
/usr/src/lib/libthr/thread/thr_private.h:925
#10 _pthread_key_create (key=0x74081c <__asan::tsd_key>, destructor=0x2e8220
<__asan::PlatformTSDDtor(void*)>) at /usr/src/lib/libthr/thread/thr_spec.c:62
#11 0x00000000002e8153 in __asan::AsanTSDInit(void (*)(void*)) () at
/home/dim/src/llvm/llvm-325240/compiler-rt/lib/asan/asan_posix.cc:48
#12 0x00000000002ebd1b in AsanInitInternal () at
/home/dim/src/llvm/llvm-325240/compiler-rt/lib/asan/asan_rtl.cc:426
#13 0x0000000800511f9d in preinit_main () at
/usr/src/libexec/rtld-elf/rtld.c:2545
#14 _rtld (sp=<optimized out>, exit_proc=0x7fffffffeb30, objp=0x7fffffffeb38)
at /usr/src/libexec/rtld-elf/rtld.c:766
#15 0x0000000800510019 in .rtld_start () at
/usr/src/libexec/rtld-elf/amd64/rtld_start.S:39
#16 0x0000000000000000 in ?? ()
There are no other threads at this point.</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>