[llvm-bugs] [Bug 37817] New: After r325240, most ASan tests hang in urdlck on FreeBSD 12.0-CURRENT

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jun 15 13:05:25 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37817

            Bug ID: 37817
           Summary: After r325240, most ASan tests hang in urdlck on
                    FreeBSD 12.0-CURRENT
           Product: compiler-rt
           Version: unspecified
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: asan
          Assignee: unassignedbugs at nondot.org
          Reporter: dimitry at andric.com
                CC: llvm-bugs at lists.llvm.org

As noted in https://reviews.llvm.org/rL325240 ("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.

-- 
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/20180615/669ae642/attachment.html>


More information about the llvm-bugs mailing list