ThreadSanitizer: data race lib/dns/rbtdb.c:1960 in decrement_reference
- Binary:
named
- Commit: 289f143d
- Tests: dsdigest
WARNING: ThreadSanitizer: data race (pid=12571)
Read of size 8 at 0x7b200001ffc8 by thread T10 (mutexes: write M138902901664845416, read M44045782973743632):
#0 decrement_reference /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1960 (libdns.so.1505+0x110730)
#1 detachnode /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:5202 (libdns.so.1505+0x1140b8)
#2 dns_db_detachnode /home/ondrej/Projects/bind9/lib/dns/db.c:606 (libdns.so.1505+0x66e34)
#3 cache_name /home/ondrej/Projects/bind9/lib/dns/resolver.c:6388 (libdns.so.1505+0x1946d7)
#4 cache_message /home/ondrej/Projects/bind9/lib/dns/resolver.c:6416 (libdns.so.1505+0x1aefe3)
#5 resquery_response /home/ondrej/Projects/bind9/lib/dns/resolver.c:7634 (libdns.so.1505+0x1aefe3)
#6 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#7 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#8 <null> <null> (libtsan.so.0+0x29b3d)
Previous write of size 8 at 0x7b200001ffc8 by thread T11 (mutexes: write M167050399335913016, write M37290280453474000):
#0 addonlevel /home/ondrej/Projects/bind9/lib/dns/rbt.c:2445 (libdns.so.1505+0xf7891)
#1 dns_rbt_addnode /home/ondrej/Projects/bind9/lib/dns/rbt.c:1391 (libdns.so.1505+0xf7891)
#2 dns_rbt_addnode /home/ondrej/Projects/bind9/lib/dns/rbt.c:1104 (libdns.so.1505+0xfa115)
#3 findnodeintree /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:2744 (libdns.so.1505+0x10e686)
#4 findnode /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:2789 (libdns.so.1505+0x10ec6b)
#5 dns_db_findnode /home/ondrej/Projects/bind9/lib/dns/db.c:447 (libdns.so.1505+0x6640f)
#6 dns_db_findnode /home/ondrej/Projects/bind9/lib/dns/db.c:435 (libdns.so.1505+0x6640f)
#7 cache_name /home/ondrej/Projects/bind9/lib/dns/resolver.c:5996 (libdns.so.1505+0x19413f)
#8 cache_message /home/ondrej/Projects/bind9/lib/dns/resolver.c:6416 (libdns.so.1505+0x1aefe3)
#9 resquery_response /home/ondrej/Projects/bind9/lib/dns/resolver.c:7634 (libdns.so.1505+0x1aefe3)
#10 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#11 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#12 <null> <null> (libtsan.so.0+0x29b3d)
Location is heap block of size 124 at 0x7b200001ff80 allocated by thread T10:
#0 malloc <null> (libtsan.so.0+0x2b1a3)
#1 default_memalloc /home/ondrej/Projects/bind9/lib/isc/mem.c:685 (libisc.so.1504+0x33f1e)
#2 mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:598 (libisc.so.1504+0x34bae)
#3 mem_allocateunlocked /home/ondrej/Projects/bind9/lib/isc/mem.c:1222 (libisc.so.1504+0x34bae)
#4 isc___mem_allocate /home/ondrej/Projects/bind9/lib/isc/mem.c:1242 (libisc.so.1504+0x34bae)
#5 isc__mem_allocate /home/ondrej/Projects/bind9/lib/isc/mem.c:2387 (libisc.so.1504+0x3bd94)
#6 isc___mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:1007 (libisc.so.1504+0x3c5fa)
#7 isc__mem_get /home/ondrej/Projects/bind9/lib/isc/mem.c:2365 (libisc.so.1504+0x3ae21)
#8 create_node /home/ondrej/Projects/bind9/lib/dns/rbt.c:2189 (libdns.so.1505+0xf584c)
#9 dns_rbt_addnode /home/ondrej/Projects/bind9/lib/dns/rbt.c:1146 (libdns.so.1505+0xf7ce5)
#10 dns_rbt_addnode /home/ondrej/Projects/bind9/lib/dns/rbt.c:1104 (libdns.so.1505+0xfa115)
#11 findnodeintree /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:2744 (libdns.so.1505+0x10e686)
#12 findnode /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:2789 (libdns.so.1505+0x10ec6b)
#13 dns_db_findnode /home/ondrej/Projects/bind9/lib/dns/db.c:447 (libdns.so.1505+0x6640f)
#14 dns_db_findnode /home/ondrej/Projects/bind9/lib/dns/db.c:435 (libdns.so.1505+0x6640f)
#15 cache_name /home/ondrej/Projects/bind9/lib/dns/resolver.c:5996 (libdns.so.1505+0x19413f)
#16 cache_message /home/ondrej/Projects/bind9/lib/dns/resolver.c:6416 (libdns.so.1505+0x1aefe3)
#17 resquery_response /home/ondrej/Projects/bind9/lib/dns/resolver.c:7634 (libdns.so.1505+0x1aefe3)
#18 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#19 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#20 <null> <null> (libtsan.so.0+0x29b3d)
Mutex M138902901664845416 is already destroyed.
Mutex M44045782973743632 is already destroyed.
Mutex M167050399335913016 is already destroyed.
Mutex M37290280453474000 is already destroyed.
Thread T10 'isc-worker0001' (tid=12652, running) created by main thread at:
#0 pthread_create <null> (libtsan.so.0+0x2be1b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:75 (libisc.so.1504+0x7a324)
#2 isc_taskmgr_create /home/ondrej/Projects/bind9/lib/isc/task.c:1410 (libisc.so.1504+0x583c3)
#3 create_managers main.c:902 (named+0x1af1c)
#4 setup main.c:1235 (named+0x1af1c)
#5 main main.c:1513 (named+0x1af1c)
Thread T11 'isc-worker0002' (tid=12653, running) created by main thread at:
#0 pthread_create <null> (libtsan.so.0+0x2be1b)
#1 isc_thread_create /home/ondrej/Projects/bind9/lib/isc/pthreads/thread.c:75 (libisc.so.1504+0x7a324)
#2 isc_taskmgr_create /home/ondrej/Projects/bind9/lib/isc/task.c:1410 (libisc.so.1504+0x583c3)
#3 create_managers main.c:902 (named+0x1af1c)
#4 setup main.c:1235 (named+0x1af1c)
#5 main main.c:1513 (named+0x1af1c)
SUMMARY: ThreadSanitizer: data race /home/ondrej/Projects/bind9/lib/dns/rbtdb.c:1960 in decrement_reference
Edited by Ondřej Surý