ThreadSanitizer: data race lib/dns/geoip2.c:118 in state_key_init
- Binary:
named
- Tests: geoip2
WARNING: ThreadSanitizer: data race (pid=8377)
Write of size 1 at 0x7f7b65a4ed50 by thread T12 (mutexes: write M56430750668493848, write M701857284902677856):
#0 state_key_init /home/ondrej/Projects/bind9/lib/dns/geoip2.c:118 (libdns.so.1505+0x28b170)
#1 state_key_init /home/ondrej/Projects/bind9/lib/dns/geoip2.c:97 (libdns.so.1505+0x28b170)
#2 get_entry_for /home/ondrej/Projects/bind9/lib/dns/geoip2.c:176 (libdns.so.1505+0x28b309)
#3 dns_geoip_match /home/ondrej/Projects/bind9/lib/dns/geoip2.c:341 (libdns.so.1505+0x28b309)
#4 dns_aclelement_match /home/ondrej/Projects/bind9/lib/dns/acl.c:399 (libdns.so.1505+0x3837a)
#5 dns_acl_match /home/ondrej/Projects/bind9/lib/dns/acl.c:229 (libdns.so.1505+0x3878e)
#6 dns_acl_allowed /home/ondrej/Projects/bind9/lib/dns/acl.c:601 (libdns.so.1505+0x3960e)
#7 isself /home/ondrej/Projects/bind9/bin/named/zoneconf.c:800 (named+0x739df)
#8 notify_isself /home/ondrej/Projects/bind9/lib/dns/zone.c:11569 (libdns.so.1505+0x2120b7)
#9 notify_send /home/ondrej/Projects/bind9/lib/dns/zone.c:11892 (libdns.so.1505+0x2120b7)
#10 notify_find_address /home/ondrej/Projects/bind9/lib/dns/zone.c:11690 (libdns.so.1505+0x2127f3)
#11 zone_notify /home/ondrej/Projects/bind9/lib/dns/zone.c:12126 (libdns.so.1505+0x22be46)
#12 zone_maintenance /home/ondrej/Projects/bind9/lib/dns/zone.c:10774 (libdns.so.1505+0x249aa0)
#13 zone_timer /home/ondrej/Projects/bind9/lib/dns/zone.c:13650 (libdns.so.1505+0x249aa0)
#14 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#15 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#16 <null> <null> (libtsan.so.0+0x29b3d)
Previous read of size 1 at 0x7f7b65a4ed50 by thread T16 (mutexes: write M35522):
#0 state_key_init /home/ondrej/Projects/bind9/lib/dns/geoip2.c:105 (libdns.so.1505+0x28b0ba)
#1 get_entry_for /home/ondrej/Projects/bind9/lib/dns/geoip2.c:176 (libdns.so.1505+0x28b309)
#2 dns_geoip_match /home/ondrej/Projects/bind9/lib/dns/geoip2.c:341 (libdns.so.1505+0x28b309)
#3 dns_aclelement_match /home/ondrej/Projects/bind9/lib/dns/acl.c:399 (libdns.so.1505+0x3837a)
#4 dns_acl_match /home/ondrej/Projects/bind9/lib/dns/acl.c:229 (libdns.so.1505+0x3878e)
#5 dns_acl_allowed /home/ondrej/Projects/bind9/lib/dns/acl.c:601 (libdns.so.1505+0x3960e)
#6 isself /home/ondrej/Projects/bind9/bin/named/zoneconf.c:800 (named+0x739df)
#7 notify_isself /home/ondrej/Projects/bind9/lib/dns/zone.c:11569 (libdns.so.1505+0x2120b7)
#8 notify_send /home/ondrej/Projects/bind9/lib/dns/zone.c:11892 (libdns.so.1505+0x2120b7)
#9 notify_find_address /home/ondrej/Projects/bind9/lib/dns/zone.c:11690 (libdns.so.1505+0x2127f3)
#10 zone_notify /home/ondrej/Projects/bind9/lib/dns/zone.c:12126 (libdns.so.1505+0x22be46)
#11 zone_maintenance /home/ondrej/Projects/bind9/lib/dns/zone.c:10774 (libdns.so.1505+0x249aa0)
#12 zone_timer /home/ondrej/Projects/bind9/lib/dns/zone.c:13650 (libdns.so.1505+0x249aa0)
#13 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#14 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#15 <null> <null> (libtsan.so.0+0x29b3d)
Location is global 'state_key_initialized' of size 1 at 0x7f7b65a4ed50 (libdns.so.1505+0x0000002f8d50)
Mutex M56430750668493848 is already destroyed.
Mutex M701857284902677856 is already destroyed.
Mutex M35522 (0x7b7800014418) created at:
#0 pthread_mutex_init <null> (libtsan.so.0+0x2c5ad)
#1 isc__mutex_init /home/ondrej/Projects/bind9/lib/isc/pthreads/mutex.c:284 (libisc.so.1504+0x7a266)
#2 dns_zone_create /home/ondrej/Projects/bind9/lib/dns/zone.c:910 (libdns.so.1505+0x20a53a)
#3 dns_zonemgr_createzone /home/ondrej/Projects/bind9/lib/dns/zone.c:16931 (libdns.so.1505+0x232b69)
#4 configure_zone server.c:6326 (named+0x330fe)
#5 configure_view server.c:4026 (named+0x3a2fc)
#6 load_configuration server.c:8903 (named+0x57431)
#7 run_server server.c:9639 (named+0x59a37)
#8 dispatch /home/ondrej/Projects/bind9/lib/isc/task.c:1134 (libisc.so.1504+0x55606)
#9 run /home/ondrej/Projects/bind9/lib/isc/task.c:1319 (libisc.so.1504+0x55606)
#10 <null> <null> (libtsan.so.0+0x29b3d)
Thread T12 'isc-worker0003' (tid=8406, 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 T16 'isc-worker0007' (tid=8410, 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/geoip2.c:118 in state_key_init