ThreadSanitizer: data race netmgr.c:179 in isc_nm_detach
- Binary:
named
- Commit: d0bc45be
- Tests: dnssec
WARNING: ThreadSanitizer: data race (pid=53059)
Write of size 1 at 0x00010a1a1541 by main thread (mutexes: write M102, write M112):
#0 isc_nm_detach netmgr.c:179 (libisc.1504.dylib:x86_64+0x24d87)
#1 isc_nm_destroy netmgr.c:340 (libisc.1504.dylib:x86_64+0x253f5)
#2 main main.c:959 (named:x86_64+0x10000e43c)
Previous read of size 1 at 0x00010a1a1541 by thread T1:
#0 nm_thread netmgr.c:429 (libisc.1504.dylib:x86_64+0x24297)
Location is heap block of size 267665 at 0x00010a1a1000 allocated by main thread:
#0 malloc <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1504.dylib:x86_64+0x21bef)
#2 isc___mem_allocate mem.c:598 (libisc.1504.dylib:x86_64+0x22a4c)
#3 isc___mem_get mem.c:2387 (libisc.1504.dylib:x86_64+0x22067)
#4 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd6e)
#5 isc_nm_start netmgr.c:123 (libisc.1504.dylib:x86_64+0x23a33)
#6 main main.c:895 (named:x86_64+0x10000df4e)
Mutex M102 (0x7b48000004a8) created at:
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2b9a3)
#1 isc__mutex_init mutex.c:286 (libisc.1504.dylib:x86_64+0x58ca9)
#2 isc_nm_start netmgr.c:88 (libisc.1504.dylib:x86_64+0x237f9)
#3 main main.c:895 (named:x86_64+0x10000df4e)
Mutex M112 (0x00010a1a14d0) created at:
#0 pthread_mutex_init <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2b9a3)
#1 isc__mutex_init mutex.c:286 (libisc.1504.dylib:x86_64+0x58ca9)
#2 isc_nm_start netmgr.c:140 (libisc.1504.dylib:x86_64+0x23b17)
#3 main main.c:895 (named:x86_64+0x10000df4e)
Thread T1 (tid=945113, running) created by main thread at:
#0 pthread_create <null> (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_nm_start netmgr.c:152 (libisc.1504.dylib:x86_64+0x23bb4)
#3 main main.c:895 (named:x86_64+0x10000df4e)
SUMMARY: ThreadSanitizer: data race netmgr.c:179 in isc_nm_detach