ThreadSanitizer: data race task.c:367 in task_shutdown
- Binary:
named
- Commit: d0bc45be
- Tests: limits
WARNING: ThreadSanitizer: data race (pid=36543)
Write of size 4 at 0x7b4000000c90 by main thread (mutexes: write M1160, write M1165, write M442332703220567072):
#0 task_shutdown task.c:367 (libisc.1504.dylib:x86_64+0x3a874)
#1 isc_taskmgr_destroy task.c:1490 (libisc.1504.dylib:x86_64+0x3cf3b)
#2 main main.c:952 (named:x86_64+0x10000e41c)
Previous read of size 4 at 0x7b4000000c90 by thread T9 (mutexes: write M1171, write M1168):
#0 task_ready task.c:959 (libisc.1504.dylib:x86_64+0x391d5)
#1 isc_task_sendto task.c:560 (libisc.1504.dylib:x86_64+0x3952c)
#2 isc_task_send task.c:506 (libisc.1504.dylib:x86_64+0x39435)
#3 run timer.c:583 (libisc.1504.dylib:x86_64+0x42d65)
Location is heap block of size 241 at 0x7b4000000c00 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+0x21bbf)
#2 isc___mem_allocate mem.c:598 (libisc.1504.dylib:x86_64+0x22a1c)
#3 isc___mem_get mem.c:2387 (libisc.1504.dylib:x86_64+0x22037)
#4 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd3e)
#5 isc_task_create_bound task.c:275 (libisc.1504.dylib:x86_64+0x38a6c)
#6 isc_task_create task.c:261 (libisc.1504.dylib:x86_64+0x389be)
#7 isc_taskpool_create taskpool.c:78 (libisc.1504.dylib:x86_64+0x3f8ea)
#8 dns_zonemgr_setsize zone.c:17195 (libdns.1505.dylib:x86_64+0x1aca27)
#9 named_server_create server.c:9894 (named:x86_64+0x10000fbfb)
#10 main main.c:1267 (named:x86_64+0x10000e144)
Mutex M1160 (0x7b4800000620) 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_taskmgr_create task.c:1366 (libisc.1504.dylib:x86_64+0x3b044)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Mutex M1165 (0x7b5800000010) 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_taskmgr_create task.c:1405 (libisc.1504.dylib:x86_64+0x3b2ab)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Mutex M442332703220567072 is already destroyed.
Mutex M1171 (0x7b3400000500) 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_timermgr_create timer.c:697 (libisc.1504.dylib:x86_64+0x428a0)
#3 main main.c:911 (named:x86_64+0x10000dfcd)
Mutex M1168 (0x7b5800000208) 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_taskmgr_create task.c:1405 (libisc.1504.dylib:x86_64+0x3b2ab)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T9 (tid=1460346, 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_timermgr_create timer.c:700 (libisc.1504.dylib:x86_64+0x428dd)
#3 main main.c:911 (named:x86_64+0x10000dfcd)
SUMMARY: ThreadSanitizer: data race task.c:367 in task_shutdown