ISC Open Source Projects issues
https://gitlab.isc.org/groups/isc-projects/-/issues
2020-01-10T09:53:33Z
https://gitlab.isc.org/isc-projects/bind9/-/issues/1431
"SUMMARY: .*Sanitizer" grep is dangerous
2020-01-10T09:53:33Z
Mark Andrews
"SUMMARY: .*Sanitizer" grep is dangerous
"grep -r "SUMMARY: .*Sanitizer" logfileconfig" never completes because it reads logfileconfig/ns1/named_pipe.
"grep -r "SUMMARY: .*Sanitizer" logfileconfig" never completes because it reads logfileconfig/ns1/named_pipe.
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1430
Ellipsis logging check is skipped in the "runtime" system test
2019-11-29T08:07:50Z
Michał Kępień
Ellipsis logging check is skipped in the "runtime" system test
Commit 00114e07ef70303cb3ee3830a344308e0b190074 (!2636) disabled the ellipsis logging check in the `runtime` system test. The problem needs to be investigated and fixed; the check needs to be subsequently turned back on.
Commit 00114e07ef70303cb3ee3830a344308e0b190074 (!2636) disabled the ellipsis logging check in the `runtime` system test. The problem needs to be investigated and fixed; the check needs to be subsequently turned back on.
December 2019 (9.11.14, 9.14.9, 9.15.7)
Michał Kępień
Michał Kępień
https://gitlab.isc.org/isc-projects/bind9/-/issues/1428
Possible data race in rbtdb, happens occasionally on ppc64le
2023-10-31T11:37:42Z
Petr Menšík
Possible data race in rbtdb, happens occasionally on ppc64le
### Summary
Assertion failures was reported on [Fedora bug 1736762](https://bugzilla.redhat.com/show_bug.cgi?id=1736762). It was reported on ppc64le, where it happens occasionally.
### BIND version used
(Paste the output of `named -V`...
### Summary
Assertion failures was reported on [Fedora bug 1736762](https://bugzilla.redhat.com/show_bug.cgi?id=1736762). It was reported on ppc64le, where it happens occasionally.
### BIND version used
(Paste the output of `named -V`.)
```
BIND 9.11.11-RedHat-9.11.11-1.fc30 (Extended Support Version) <id:4ae9ff1>
running on Linux ppc64le 5.3.12-200.fc30.ppc64le #1 SMP Thu Nov 21 22:15:03 UTC 2019
built by make with '--build=ppc64le-redhat-linux-gnu' '--host=ppc64le-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-python=/usr/bin/python3' '--with-libtool' '--localstatedir=/var' '--enable-threads' '--enable-ipv6' '--enable-filter-aaaa' '--with-pic' '--disable-static' '--includedir=/usr/include/bind9' '--with-tuning=large' '--with-geoip' '--with-libidn2' '--enable-openssl-hash' '--enable-native-pkcs11' '--with-pkcs11=/usr/lib64/pkcs11/libsofthsm2.so' '--with-dlopen=yes' '--with-dlz-ldap=yes' '--with-dlz-postgres=yes' '--with-dlz-mysql=yes' '--with-dlz-filesystem=yes' '--with-dlz-bdb=yes' '--with-gssapi=yes' '--disable-isc-spnego' '--with-lmdb=yes' '--with-libjson' '--enable-dnstap' '--with-cmocka' '--enable-fixed-rrset' '--with-docbook-xsl=/usr/share/sgml/docbook/xsl-stylesheets' '--enable-full-report' 'build_alias=ppc64le-redhat-linux-gnu' 'host_alias=ppc64le-redhat-linux-gnu' 'CFLAGS= -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mcpu=power8 -mtune=power8 -fasynchronous-unwind-tables -fstack-clash-protection' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CPPFLAGS= -DDIG_SIGCHASE' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'
compiled by GCC 9.2.1 20190827 (Red Hat 9.2.1-1)
compiled with OpenSSL version: OpenSSL 1.1.1d FIPS 10 Sep 2019
linked to OpenSSL version: OpenSSL 1.1.1d FIPS 10 Sep 2019
compiled with libxml2 version: 2.9.9
linked to libxml2 version: 20909
compiled with libjson-c version: 0.13.1
linked to libjson-c version: 0.13.1
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11
threads support is enabled
```
### Steps to reproduce
now known, happens randomly.
### What is the current *bug* behavior?
```
Jul 22 00:51:58 Blackbird named[1860]: ../../../lib/dns/rbtdb.c:10337: INSIST((rbtdb->rdatasets[header->node->locknum]).head == (header)) failed, back trace
Jul 22 00:51:58 Blackbird audit[1860]: ANOM_ABEND auid=4294967295 uid=25 gid=25 ses=4294967295 pid=1860 comm="isc-worker0006" exe="/usr/sbin/named" sig=6 res=1
Jul 22 00:51:58 Blackbird named[1860]: #0 0x12f650508 in ??
Jul 22 00:51:58 Blackbird named[1860]: #1 0x7fffa8f5d978 in ??
Jul 22 00:51:58 Blackbird named[1860]: #2 0x7fffa91b2714 in ??
Jul 22 00:51:58 Blackbird named[1860]: #3 0x7fffa91b9738 in ??
Jul 22 00:51:58 Blackbird named[1860]: #4 0x7fffa91c3834 in ??
Jul 22 00:51:58 Blackbird named[1860]: #5 0x7fffa913bb90 in ??
Jul 22 00:51:58 Blackbird named[1860]: #6 0x12f6630e0 in ??
Jul 22 00:51:58 Blackbird named[1860]: #7 0x12f66c258 in ??
Jul 22 00:51:58 Blackbird named[1860]: #8 0x7fffa8f91c28 in ??
Jul 22 00:51:58 Blackbird named[1860]: #9 0x7fffa8ab8c10 in ??
Jul 22 00:51:58 Blackbird named[1860]: #10 0x7fffa86ed8a8 in ??
Jul 22 00:51:58 Blackbird named[1860]: exiting (due to assertion failure)
Jul 22 00:51:59 Blackbird systemd[1]: named.service: Main process exited, code=killed, status=6/ABRT
Jul 22 00:51:59 Blackbird systemd[1]: named.service: Failed with result 'signal'.
```
```
(gdb) bt
#0 0x00007fffa51b2668 in __libc_signal_restore_set (set=0x7fffa381ae78) at ../sysdeps/unix/sysv/linux/internal-signals.h:84
#1 __GI_raise (sig=<optimized out>) at ../sysdeps/unix/sysv/linux/raise.c:48
#2 0x00007fffa519468c in __GI_abort () at abort.c:79
#3 0x0000000105810cf4 in assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>,
cond=<optimized out>) at ../../../bin/named/main.c:234
#4 0x00007fffa5b0db68 in isc_assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>,
cond=<optimized out>) at ../../../lib/isc/assertions.c:51
#5 0x00007fffa5d64134 in update_header (header=header@entry=0x7fff9969f010, now=<optimized out>, rbtdb=<optimized out>,
rbtdb=<optimized out>) at ../../../lib/dns/rbtdb.c:10321
#6 0x00007fffa5d6b178 in find_deepest_zonecut (search=0x7fffa381bbd8, node=0x7fff9969a010, nodep=0x7fffa381c940,
foundname=0x7fff99c38150, rdataset=0x7fff99c3c5c0, sigrdataset=0x0) at ../../../lib/dns/rbtdb.c:4878
#7 0x00007fffa5d752a4 in cache_find (db=<optimized out>, name=<optimized out>, version=<optimized out>,
type=<optimized out>, options=<optimized out>, now=<optimized out>, nodep=0x7fffa381c940, foundname=0x7fff99c38150,
rdataset=<optimized out>, sigrdataset=<optimized out>) at ../../../lib/dns/rbtdb.c:5087
#8 0x00007fffa5cebb40 in dns_db_findext (db=0x7fff99694010, name=0x7fff99c381f0, version=0x0, type=<optimized out>,
options=<optimized out>, now=<optimized out>, nodep=0x7fffa381c940, foundname=<optimized out>, methods=0x7fffa381ca58,
clientinfo=0x7fffa381ca88, rdataset=0x7fff99c3c5c0, sigrdataset=0x0) at ../../../lib/dns/db.c:594
#9 0x00000001058238b0 in query_find (client=<optimized out>, event=<optimized out>, event@entry=0x0, qtype=qtype@entry=1)
at ../../../bin/named/query.c:7274
#10 0x000000010582dfb4 in ns_query_start (client=0x7fff9425fc70) at ../../../bin/named/query.c:9672
#11 0x00000001058022c0 in client_request (task=<optimized out>, event=<optimized out>) at ../../../bin/named/client.c:3093
#12 0x00007fffa5b42068 in dispatch (manager=0x7fffa3825010) at ../../../lib/isc/task.c:1143
#13 run (uap=0x7fffa3825010) at ../../../lib/isc/task.c:1315
#14 0x00007fffa56688c8 in start_thread (arg=0x7fffa381f070) at pthread_create.c:479
#15 0x00007fffa529f498 in clone () at ../sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S:82
```
### What is the expected *correct* behavior?
No assertion failure.
### Relevant configuration files
(Paste any relevant configuration files - please use code blocks (```)
to format console output. If submitting the contents of your
configuration file in a non-confidential Issue, it is advisable to
obscure key secrets: this can be done automatically by using
`named-checkconf -px`.)
### Relevant logs and/or screenshots
[Fedora bug](https://bugzilla.redhat.com/show_bug.cgi?id=1736762) contains some backtraces.
### Possible fixes
(If you can, link to the line of code that might be responsible for the
problem.)
I think write lock should be used from the start. Or it should be upgraded before search for actual header pointers are used.
I lack expertise related to thread collisions in bind database structures. I would like to ask some help, if this might be related to already found issues in rbtdb.
https://gitlab.isc.org/isc-projects/bind9/-/issues/1427
Intermittent failure in fetchlimit system test
2019-12-05T15:55:27Z
Ondřej Surý
Intermittent failure in fetchlimit system test
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440078
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440078
December 2019 (9.11.14, 9.14.9, 9.15.7)
Ondřej Surý
Ondřej Surý
https://gitlab.isc.org/isc-projects/bind9/-/issues/1426
Intermittent failure in the qmin system test
2021-11-05T07:58:34Z
Ondřej Surý
Intermittent failure in the qmin system test
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440093
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440093
BIND 9.19.x
https://gitlab.isc.org/isc-projects/bind9/-/issues/1425
Intermittent failure in the addzone system test
2019-12-09T16:27:34Z
Ondřej Surý
Intermittent failure in the addzone system test
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440090
```
I:addzone:check that reloading a added 'master redirect' zone works (29)
I:addzone:failed
```
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440090
```
I:addzone:check that reloading a added 'master redirect' zone works (29)
I:addzone:failed
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1423
ThreadSanitizer: data race time.c:170 in isc_time_nowplusinterval
2019-12-30T17:08:45Z
Ondřej Surý
ThreadSanitizer: data race time.c:170 in isc_time_nowplusinterval
Binary: `named`
Commit: e25611457ddee7a56d88e4118313d316852d9d47
Tests: dnssec
```
WARNING: ThreadSanitizer: data race (pid=59372)
Write of size 4 at 0x7b780002ba38 by thread T4 (mutexes: write M783199140535515160):
#0 isc_time_no...
Binary: `named`
Commit: e25611457ddee7a56d88e4118313d316852d9d47
Tests: dnssec
```
WARNING: ThreadSanitizer: data race (pid=59372)
Write of size 4 at 0x7b780002ba38 by thread T4 (mutexes: write M783199140535515160):
#0 isc_time_nowplusinterval time.c:170 (libisc.1504.dylib:x86_64+0x578dd)
#1 dns_zone_refresh zone.c:10993 (libdns.1505.dylib:x86_64+0x1a4e1b)
#2 dns_zone_notifyreceive zone.c:14176 (libdns.1505.dylib:x86_64+0x1a6e3b)
#3 ns_notify_start notify.c:153 (libns.1502.dylib:x86_64+0xf602)
#4 ns__client_request client.c:2174 (libns.1502.dylib:x86_64+0x5e1f)
#5 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa61)
#6 uv__udp_io <null>:4729328 (libuv.1.dylib:x86_64+0x13244)
Previous read of size 8 at 0x7b780002ba38 by thread T8:
#0 zone_settimer zone.c:13756 (libdns.1505.dylib:x86_64+0x1a2011)
#1 zone_maintenance zone.c:10848 (libdns.1505.dylib:x86_64+0x1cba9f)
#2 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be21)
Location is heap block of size 2929 at 0x7b780002b800 allocated by thread T5:
#0 malloc <null>:4729360 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1504.dylib:x86_64+0x21b8f)
#2 isc___mem_allocate mem.c:598 (libisc.1504.dylib:x86_64+0x229ec)
#3 isc___mem_get mem.c:2387 (libisc.1504.dylib:x86_64+0x22007)
#4 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd0e)
#5 dns_zone_create zone.c:905 (libdns.1505.dylib:x86_64+0x1960a4)
#6 dns_zonemgr_createzone zone.c:16954 (libdns.1505.dylib:x86_64+0x1ab63a)
#7 configure_zone server.c:6326 (named:x86_64+0x10003763c)
#8 configure_view server.c:4026 (named:x86_64+0x100028fa5)
#9 load_configuration server.c:8917 (named:x86_64+0x1000243e9)
#10 run_server server.c:9639 (named:x86_64+0x10001100d)
#11 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be21)
Mutex M783199140535515160 is already destroyed.
Thread T4 (tid=3954153, running) created by main thread at:
#0 pthread_create <null>:4729408 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_nm_start netmgr.c:152 (libisc.1504.dylib:x86_64+0x23b54)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T8 (tid=3954157, running) created by main thread at:
#0 pthread_create <null>:4729408 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b310)
#3 main main.c:902 (named:x86_64+0x10000df16)
Thread T5 (tid=3954154, running) created by main thread at:
#0 pthread_create <null>:4729312 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58d81)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b310)
#3 main main.c:902 (named:x86_64+0x10000df16)
SUMMARY: ThreadSanitizer: data race time.c:170 in isc_time_nowplusinterval
```
January 2020 (9.11.15, 9.14.10, 9.15.8, 9.11.15-S)
Ondřej Surý
Ondřej Surý
https://gitlab.isc.org/isc-projects/bind9/-/issues/1422
notify unit test segfaults when compiled with ThreadSanitizer
2019-12-10T14:11:50Z
Ondřej Surý
notify unit test segfaults when compiled with ThreadSanitizer
```
[==========] Running 1 test(s).
[ RUN ] notify_start
netmgr.c:981: REQUIRE((__builtin_expect(!!((handle) != ((void*)0)), 1) && __builtin_expect(!!(((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') <<...
```
[==========] Running 1 test(s).
[ RUN ] notify_start
netmgr.c:981: REQUIRE((__builtin_expect(!!((handle) != ((void*)0)), 1) && __builtin_expect(!!(((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))), 1))) failed, back trace
#0 0x1010674ff in ??
#1 0x10106745e in ??
#2 0x101088ecc in ??
#3 0x100d504a5 in ??
#4 0x100d2959f in ??
#5 0x1014b8a6f in ??
#6 0x1014b6f58 in ??
#7 0x100d2931c in ??
#8 0x7fff66a7e2e5 in ??
Abort trap: 6
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1421
The `zero` system test doesn't properly check for failures
2019-12-11T09:30:41Z
Ondřej Surý
The `zero` system test doesn't properly check for failures
When run under TSAN, the `zero` test gets stuck at some point looping on running `dig -p 13900 @10.53.0.3 -f query.list`. When you `killall dig` it reports successful pass and goes on.
There are at least two problems:
1. It should not...
When run under TSAN, the `zero` test gets stuck at some point looping on running `dig -p 13900 @10.53.0.3 -f query.list`. When you `killall dig` it reports successful pass and goes on.
There are at least two problems:
1. It should not get stuck infinitely
2. It should report error when dig crashes
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1420
ThreadSanitizer: data race message.c:397 in msgreset
2020-09-17T08:17:47Z
Ondřej Surý
ThreadSanitizer: data race message.c:397 in msgreset
Binary: `named`
Commit: d744a6fc238fc685411d8bc673c951cb80d6cb81
Tests: rpz
```
WARNING: ThreadSanitizer: data race (pid=38656)
Write of size 8 at 0x7b5000050390 by thread T1:
#0 msgreset message.c:397 (libdns.1505.dylib:x86_64+0x...
Binary: `named`
Commit: d744a6fc238fc685411d8bc673c951cb80d6cb81
Tests: rpz
```
WARNING: ThreadSanitizer: data race (pid=38656)
Write of size 8 at 0x7b5000050390 by thread T1:
#0 msgreset message.c:397 (libdns.1505.dylib:x86_64+0x72bd8)
#1 dns_message_reset message.c:797 (libdns.1505.dylib:x86_64+0x71be1)
#2 ns__client_reset_cb client.c:215 (libns.1502.dylib:x86_64+0x4513)
#3 isc_nmhandle_unref netmgr.c:993 (libisc.1504.dylib:x86_64+0x26abc)
#4 isc__nm_uvreq_put netmgr.c:1155 (libisc.1504.dylib:x86_64+0x275f7)
#5 udp_send_cb udp.c:440 (libisc.1504.dylib:x86_64+0x2b775)
#6 uv__udp_run_completed <null>:1587584 (libuv.1.dylib:x86_64+0x1278f)
Previous read of size 8 at 0x7b5000050390 by thread T7:
#0 ns_client_send client.c:661 (libns.1502.dylib:x86_64+0x2308)
#1 respond update.c:1559 (libns.1502.dylib:x86_64+0x32b7d)
#2 updatedone_action update.c:3391 (libns.1502.dylib:x86_64+0x3aa53)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 497 at 0x7b5000050200 allocated by thread T4:
#0 malloc <null>:1587616 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x4e65a)
#1 default_memalloc mem.c:685 (libisc.1504.dylib:x86_64+0x21bbf)
#2 isc___mem_get mem.c:598 (libisc.1504.dylib:x86_64+0x21d03)
#3 isc__mem_get mem.c:2365 (libisc.1504.dylib:x86_64+0x1cd3e)
#4 dns_message_create message.c:715 (libdns.1505.dylib:x86_64+0x7142d)
#5 ns__client_setup client.c:2250 (libns.1502.dylib:x86_64+0x745e)
#6 ns__client_request client.c:1634 (libns.1502.dylib:x86_64+0x4b0a)
#7 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa91)
#8 uv__udp_io <null>:1587616 (libuv.1.dylib:x86_64+0x13244)
Thread T1 (tid=2559143, running) created by main thread at:
#0 pthread_create <null>:1587664 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T7 (tid=2559149, running) created by main thread at:
#0 pthread_create <null>:1587664 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000df16)
Thread T4 (tid=2559146, running) created by main thread at:
#0 pthread_create <null>:1587568 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
SUMMARY: ThreadSanitizer: data race message.c:397 in msgreset
```
BIND 9.17 Backburner
Mark Andrews
Mark Andrews
https://gitlab.isc.org/isc-projects/bind9/-/issues/1419
ThreadSanitizer: data race rbtdb.c:7568 in issecure
2019-12-03T05:50:45Z
Ondřej Surý
ThreadSanitizer: data race rbtdb.c:7568 in issecure
Binary: `named`
Commit: d744a6fc238fc685411d8bc673c951cb80d6cb81
Tests: autosign
```
WARNING: ThreadSanitizer: data race (pid=95328)
Read of size 8 at 0x7b5c00031600 by thread T1 (mutexes: read M6328084555044064):
#0 issecure rbtd...
Binary: `named`
Commit: d744a6fc238fc685411d8bc673c951cb80d6cb81
Tests: autosign
```
WARNING: ThreadSanitizer: data race (pid=95328)
Read of size 8 at 0x7b5c00031600 by thread T1 (mutexes: read M6328084555044064):
#0 issecure rbtdb.c:7568 (libdns.1505.dylib:x86_64+0xbc0cd)
#1 dns_db_issecure db.c:235 (libdns.1505.dylib:x86_64+0x2b1f9)
#2 query_lookup query.c:5490 (libns.1502.dylib:x86_64+0x132d7)
#3 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#4 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#5 ns__client_request client.c:2157 (libns.1502.dylib:x86_64+0x5dd2)
#6 processbuffer tcpdns.c:175 (libisc.1504.dylib:x86_64+0x2cb6d)
#7 dnslisten_readcb tcpdns.c:228 (libisc.1504.dylib:x86_64+0x2c95b)
#8 read_cb tcp.c:399 (libisc.1504.dylib:x86_64+0x28dc9)
#9 uv__stream_io <null>:1547888 (libuv.1.dylib:x86_64+0xeda1)
Previous write of size 8 at 0x7b5c00031600 by thread T5 (mutexes: write M6046609578333200):
#0 closeversion rbtdb.c:2470 (libdns.1505.dylib:x86_64+0xb5683)
#1 dns_db_closeversion db.c:418 (libdns.1505.dylib:x86_64+0x2bb77)
#2 zone_sign zone.c:9369 (libdns.1505.dylib:x86_64+0x1d26da)
#3 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#4 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#5 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 785 at 0x7b5c00031380 allocated by thread T6:
#0 malloc <null>:1547920 (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 dns_rbtdb_create rbtdb.c:8066 (libdns.1505.dylib:x86_64+0xb184b)
#6 dns_db_create db.c:118 (libdns.1505.dylib:x86_64+0x2ac1c)
#7 zone_load zone.c:2108 (libdns.1505.dylib:x86_64+0x19b582)
#8 zone_asyncload zone.c:2192 (libdns.1505.dylib:x86_64+0x19c802)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M6328084555044064 is already destroyed.
Mutex M6046609578333200 is already destroyed.
Thread T1 (tid=2149170, running) created by main thread at:
#0 pthread_create <null>:1547968 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T5 (tid=2149174, running) created by main thread at:
#0 pthread_create <null>:1547968 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000df16)
Thread T6 (tid=2149175, running) created by main thread at:
#0 pthread_create <null>:1547872 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000df16)
SUMMARY: ThreadSanitizer: data race rbtdb.c:7568 in issecure
```
and second occurence immediately after:
```
WARNING: ThreadSanitizer: data race (pid=95328)
Read of size 4 at 0x7b5c00026bd8 by thread T1 (mutexes: read M6328084555044064):
#0 issecure rbtdb.c:7568 (libdns.1505.dylib:x86_64+0xbc0dd)
#1 dns_db_issecure db.c:235 (libdns.1505.dylib:x86_64+0x2b1f9)
#2 query_lookup query.c:5490 (libns.1502.dylib:x86_64+0x132d7)
#3 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#4 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#5 ns__client_request client.c:2157 (libns.1502.dylib:x86_64+0x5dd2)
#6 processbuffer tcpdns.c:175 (libisc.1504.dylib:x86_64+0x2cb6d)
#7 dnslisten_readcb tcpdns.c:228 (libisc.1504.dylib:x86_64+0x2c95b)
#8 read_cb tcp.c:399 (libisc.1504.dylib:x86_64+0x28dc9)
#9 uv__stream_io <null>:1547888 (libuv.1.dylib:x86_64+0xeda1)
Previous write of size 4 at 0x7b5c00026bd8 by thread T5:
#0 iszonesecure rbtdb.c:2253 (libdns.1505.dylib:x86_64+0xc8dc6)
#1 closeversion rbtdb.c:2407 (libdns.1505.dylib:x86_64+0xb4ea5)
#2 dns_db_closeversion db.c:418 (libdns.1505.dylib:x86_64+0x2bb77)
#3 zone_sign zone.c:9369 (libdns.1505.dylib:x86_64+0x1d26da)
#4 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#5 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#6 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 817 at 0x7b5c00026b80 allocated by thread T5:
#0 malloc <null>:1547920 (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 allocate_version rbtdb.c:1239 (libdns.1505.dylib:x86_64+0xb3b67)
#6 newversion rbtdb.c:1280 (libdns.1505.dylib:x86_64+0xb48ae)
#7 dns_db_newversion db.c:383 (libdns.1505.dylib:x86_64+0x2b93f)
#8 zone_sign zone.c:8900 (libdns.1505.dylib:x86_64+0x1cf5e8)
#9 zone_maintenance zone.c:10826 (libdns.1505.dylib:x86_64+0x1cb6bd)
#10 zone_timer zone.c:13673 (libdns.1505.dylib:x86_64+0x1abb75)
#11 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M6328084555044064 is already destroyed.
Thread T1 (tid=2149170, running) created by main thread at:
#0 pthread_create <null>:1547968 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000debe)
Thread T5 (tid=2149174, running) created by main thread at:
#0 pthread_create <null>:1547968 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000df16)
SUMMARY: ThreadSanitizer: data race rbtdb.c:7568 in issecure
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/kea/-/issues/1036
sanity checks 1.7.2 rc2
2019-12-13T06:46:42Z
Wlodzimierz Wencel
sanity checks 1.7.2 rc2
https://jenkins.isc.org/job/kea-1.7/job/pkg/92/artifact/
tarball:
repo.isc.org:/data/shared/sweng/kea/releases/
```
SHA256 (1.7.2-rc2/kea-1.7.2.tar.gz) = e43fb0079cb344ae4dec7cafb8d85f75440a228ff88d742a0033315cc8a7b0ca
SHA256 (subscripti...
https://jenkins.isc.org/job/kea-1.7/job/pkg/92/artifact/
tarball:
repo.isc.org:/data/shared/sweng/kea/releases/
```
SHA256 (1.7.2-rc2/kea-1.7.2.tar.gz) = e43fb0079cb344ae4dec7cafb8d85f75440a228ff88d742a0033315cc8a7b0ca
SHA256 (subscription-1.7.2-rc2/kea-subscription-1.7.2.tar.gz) = c3b495807abce72be611d79fad3eb0c2ef8bb1b6f1f9d9ee5f3695adae5ca329
SHA256 (premium-1.7.2-rc2/kea-premium-1.7.2.tar.gz) = 65c00bf43ed4ee1090ba818b1b20d7949a414e2247603a4ebdac750c79ba3a7b
SHA256 (1.7.2-rc2/doc/html) = 8a2026ddf255018b4ce58d2a2a3a126a4477186d45fb4a8f48b392fa8cdfa0da
SHA256 (1.7.2-rc2/doc/kea-arm.pdf) = 4f1d1ac237838d5a451fdfd7b296fbcf8e9e17cb6993207098a1191dbf9d66bb
SHA256 (1.7.2-rc2/doc/kea-messages.pdf) = 18843aa7d74e48c2ffb17b21277d508aaf41e588b8f56be34c51f50b50b92a3e
```
rpm/debs https://jenkins.isc.org/job/kea-1.7/job/pkg/92/artifact/
kea1.7.3
https://gitlab.isc.org/isc-projects/bind9/-/issues/1418
ThreadSanitizer: data race dig.c:2542 in main
2019-12-20T05:57:53Z
Ondřej Surý
ThreadSanitizer: data race dig.c:2542 in main
* Binary: `dig`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: zero
```
WARNING: ThreadSanitizer: data race (pid=22061)
Read of size 8 at 0x00010a398d30 by main thread:
#0 main dig.c:2542 (dig:x86_64+0x100007bab)
P...
* Binary: `dig`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: zero
```
WARNING: ThreadSanitizer: data race (pid=22061)
Read of size 8 at 0x00010a398d30 by main thread:
#0 main dig.c:2542 (dig:x86_64+0x100007bab)
Previous write of size 8 at 0x00010a398d30 by thread T1 (mutexes: write M1112):
#0 query_finished dig.c:2412 (dig:x86_64+0x1000036c6)
#1 check_if_done dighost.c:1545 (dig:x86_64+0x100010d8a)
#2 start_lookup dighost.c:1708 (dig:x86_64+0x10000e4e2)
#3 recv_done dighost.c:1729 (dig:x86_64+0x1000159dc)
#4 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is global 'batchname' at 0x00010a398d30 (dig+0x000100021d30)
Mutex M1112 (0x00010a3986e8) 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 setup_libs dighost.c:1409 (dig:x86_64+0x10000d5b5)
#3 dig_setup dig.c:2504 (dig:x86_64+0x100001344)
#4 main dig.c:2556 (dig:x86_64+0x100007aae)
Thread T1 (tid=1727056, 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_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 setup_libs dighost.c:1382 (dig:x86_64+0x10000d448)
#4 dig_setup dig.c:2504 (dig:x86_64+0x100001344)
#5 main dig.c:2556 (dig:x86_64+0x100007aae)
SUMMARY: ThreadSanitizer: data race dig.c:2542 in main
```
January 2020 (9.11.15, 9.14.10, 9.15.8, 9.11.15-S)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1417
ThreadSanitizer: data race rbtdb.c:1535 in add32
2019-11-28T20:13:06Z
Ondřej Surý
ThreadSanitizer: data race rbtdb.c:1535 in add32
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Test: zero
```
WARNING: ThreadSanitizer: data race (pid=21745)
Write of size 2 at 0x7b44000503dc by thread T6 (mutexes: write M1003031114526233856, write M88453014...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Test: zero
```
WARNING: ThreadSanitizer: data race (pid=21745)
Write of size 2 at 0x7b44000503dc by thread T6 (mutexes: write M1003031114526233856, write M884530149331044048):
#0 add32 rbtdb.c:1535 (libdns.1505.dylib:x86_64+0xbffd1)
#1 addrdataset rbtdb.c:6591 (libdns.1505.dylib:x86_64+0xbab25)
#2 dns_db_addrdataset db.c:744 (libdns.1505.dylib:x86_64+0x2ce6e)
#3 resquery_response resolver.c:6344 (libdns.1505.dylib:x86_64+0x143237)
#4 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous read of size 2 at 0x7b44000503dc by thread T4:
#0 rdataset_getownercase rbtdb.c:9416 (libdns.1505.dylib:x86_64+0xc2155)
#1 towiresorted rdataset.c:721 (libdns.1505.dylib:x86_64+0x121601)
#2 dns_rdataset_towiresorted rdataset.c:566 (libdns.1505.dylib:x86_64+0x12136e)
#3 dns_message_rendersection message.c:2080 (libdns.1505.dylib:x86_64+0x762a3)
#4 ns_client_send client.c:517 (libns.1502.dylib:x86_64+0x1d8c)
#5 query_send query.c:562 (libns.1502.dylib:x86_64+0x162ea)
#6 ns_query_done query.c:10868 (libns.1502.dylib:x86_64+0x11ee2)
#7 query_prepresponse query.c (libns.1502.dylib:x86_64+0x20769)
#8 query_gotanswer query.c (libns.1502.dylib:x86_64+0x18839)
#9 query_lookup query.c:5562 (libns.1502.dylib:x86_64+0x136f7)
#10 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#11 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#12 ns__client_request client.c:2154 (libns.1502.dylib:x86_64+0x5dd2)
#13 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa91)
#14 uv__udp_io <null>:6886864 (libuv.1.dylib:x86_64+0x13244)
Location is heap block of size 271 at 0x7b44000503c0 allocated by thread T6:
#0 malloc <null>:6886896 (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 dns_rdataslab_fromrdataset rdataslab.c:266 (libdns.1505.dylib:x86_64+0x123903)
#6 addrdataset rbtdb.c:6441 (libdns.1505.dylib:x86_64+0xb9931)
#7 dns_db_addrdataset db.c:744 (libdns.1505.dylib:x86_64+0x2ce6e)
#8 resquery_response resolver.c:6344 (libdns.1505.dylib:x86_64+0x143237)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M1003031114526233856 is already destroyed.
Mutex M884530149331044048 is already destroyed.
Thread T6 (tid=1725576, running) created by main thread at:
#0 pthread_create <null>:6886944 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T4 (tid=1725574, running) created by main thread at:
#0 pthread_create <null>:6886944 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000df4e)
SUMMARY: ThreadSanitizer: data race rbtdb.c:1535 in add32
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1416
ThreadSanitizer: data race resolver.c:3384 in findname
2023-03-16T11:03:07Z
Ondřej Surý
ThreadSanitizer: data race resolver.c:3384 in findname
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: mkeys
```
WARNING: ThreadSanitizer: data race (pid=54848)
Read of size 8 at 0x7b6800050398 by thread T5:
#0 findname resolver.c:3384 (libdns.1505.dylib:...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: mkeys
```
WARNING: ThreadSanitizer: data race (pid=54848)
Read of size 8 at 0x7b6800050398 by thread T5:
#0 findname resolver.c:3384 (libdns.1505.dylib:x86_64+0x13bc57)
#1 fctx_try resolver.c:3663 (libdns.1505.dylib:x86_64+0x137192)
#2 fctx_start resolver.c:4650 (libdns.1505.dylib:x86_64+0x1300d3)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous write of size 8 at 0x7b6800050398 by thread T8 (mutexes: read M670890401489730024, write M1043563511172569464):
#0 fctx_join resolver.c:4705 (libdns.1505.dylib:x86_64+0x12fcd0)
#1 dns_resolver_createfetch resolver.c:10638 (libdns.1505.dylib:x86_64+0x12cbe9)
#2 dotat server.c:6978 (named:x86_64+0x100026d80)
#3 dns_keytable_forall keytable.c:901 (libdns.1505.dylib:x86_64+0x5c0bb)
#4 tat_timer_tick server.c:7036 (named:x86_64+0x10001fc27)
#5 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 1449 at 0x7b680004fe00 allocated by thread T8:
#0 malloc <null>:5828960 (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 dns_resolver_createfetch resolver.c:4748 (libdns.1505.dylib:x86_64+0x12cc41)
#6 dotat server.c:6978 (named:x86_64+0x100026d80)
#7 dns_keytable_forall keytable.c:901 (libdns.1505.dylib:x86_64+0x5c0bb)
#8 tat_timer_tick server.c:7036 (named:x86_64+0x10001fc27)
#9 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M670890401489730024 is already destroyed.
Mutex M1043563511172569464 is already destroyed.
Thread T5 (tid=1518630, running) created by main thread at:
#0 pthread_create <null>:5829008 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T8 (tid=1518633, running) created by main thread at:
#0 pthread_create <null>:5829008 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
SUMMARY: ThreadSanitizer: data race resolver.c:3384 in findname
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1415
ThreadSanitizer: data race rbt.c:2495 in dns_rbt_addnode
2019-11-28T00:10:55Z
Ondřej Surý
ThreadSanitizer: data race rbt.c:2495 in dns_rbt_addnode
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: mirror
```
WARNING: ThreadSanitizer: data race (pid=47813)
Write of size 4 at 0x7b200002a914 by thread T5 (mutexes: write M182250082437959608, write M693784...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: mirror
```
WARNING: ThreadSanitizer: data race (pid=47813)
Write of size 4 at 0x7b200002a914 by thread T5 (mutexes: write M182250082437959608, write M69378479338097504):
#0 dns_rbt_addnode rbt.c:2495 (libdns.1505.dylib:x86_64+0xab547)
#1 findnodeintree rbtdb.c:2738 (libdns.1505.dylib:x86_64+0xc965a)
#2 findnode rbtdb.c:2783 (libdns.1505.dylib:x86_64+0xb641b)
#3 dns_db_findnode db.c:447 (libdns.1505.dylib:x86_64+0x2bcd8)
#4 validated resolver.c:5564 (libdns.1505.dylib:x86_64+0x14bcba)
#5 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous read of size 4 at 0x7b200002a914 by thread T8 (mutexes: write M194634981413229616):
#0 addrdataset rbtdb.c:6524 (libdns.1505.dylib:x86_64+0xb9fe7)
#1 dns_db_addrdataset db.c:744 (libdns.1505.dylib:x86_64+0x2ce6e)
#2 validated resolver.c:5716 (libdns.1505.dylib:x86_64+0x14c57b)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 126 at 0x7b200002a900 allocated by thread T8:
#0 malloc <null>:5827872 (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 create_node rbt.c:2189 (libdns.1505.dylib:x86_64+0xabcc5)
#6 dns_rbt_addnode rbt.c:1274 (libdns.1505.dylib:x86_64+0xaa9ea)
#7 findnodeintree rbtdb.c:2738 (libdns.1505.dylib:x86_64+0xc965a)
#8 findnode rbtdb.c:2783 (libdns.1505.dylib:x86_64+0xb641b)
#9 dns_db_findnode db.c:447 (libdns.1505.dylib:x86_64+0x2bcd8)
#10 validated resolver.c:5708 (libdns.1505.dylib:x86_64+0x14c4b7)
#11 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Mutex M182250082437959608 is already destroyed.
Mutex M69378479338097504 is already destroyed.
Mutex M194634981413229616 is already destroyed.
Thread T5 (tid=1498349, running) created by main thread at:
#0 pthread_create <null>:5827920 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T8 (tid=1498352, running) created by main thread at:
#0 pthread_create <null>:5827920 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
SUMMARY: ThreadSanitizer: data race rbt.c:2495 in dns_rbt_addnode
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1414
ThreadSanitizer: data race task.c:367 in task_shutdown
2019-12-13T07:41:55Z
Ondřej Surý
ThreadSanitizer: data race task.c:367 in task_shutdown
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: limits
```
WARNING: ThreadSanitizer: data race (pid=36543)
Write of size 4 at 0x7b4000000c90 by main thread (mutexes: write M1160, write M1165, write M44233...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* 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
```
January 2020 (9.11.15, 9.14.10, 9.15.8, 9.11.15-S)
Mark Andrews
Mark Andrews
https://gitlab.isc.org/isc-projects/bind9/-/issues/1413
Intermittent failure in dnssec system test
2020-04-09T06:51:15Z
Ondřej Surý
Intermittent failure in dnssec system test
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/433290
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440081
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/433290
* https://gitlab.isc.org/isc-projects/bind9/-/jobs/440081
March 2020 (9.11.17, 9.16.1, 9.17.0)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1412
ThreadSanitizer: data race resolver.c:7030 in fctx_decreference
2019-12-02T23:52:18Z
Ondřej Surý
ThreadSanitizer: data race resolver.c:7030 in fctx_decreference
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: fetchlimit
```
WARNING: ThreadSanitizer: data race (pid=66438)
Read of size 4 at 0x7b680015c1f0 by thread T5 (mutexes: write M22372295666377800):
#0 fct...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: fetchlimit
```
WARNING: ThreadSanitizer: data race (pid=66438)
Read of size 4 at 0x7b680015c1f0 by thread T5 (mutexes: write M22372295666377800):
#0 fctx_decreference resolver.c:7030 (libdns.1505.dylib:x86_64+0x131a42)
#1 dns_resolver_destroyfetch resolver.c:10758 (libdns.1505.dylib:x86_64+0x1318a0)
#2 fetch_callback query.c:5679 (libns.1502.dylib:x86_64+0x153d8)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous write of size 4 at 0x7b680015c1f0 by thread T7:
#0 fctx_nextaddress resolver.c:3872 (libdns.1505.dylib:x86_64+0x1391de)
#1 fctx_try resolver.c:4012 (libdns.1505.dylib:x86_64+0x136638)
#2 fctx_timeout resolver.c:4462 (libdns.1505.dylib:x86_64+0x134b1d)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 1449 at 0x7b680015c000 allocated by thread T4:
#0 malloc <null>:5823072 (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 dns_resolver_createfetch resolver.c:4748 (libdns.1505.dylib:x86_64+0x12cc41)
#6 ns_query_recurse query.c:5858 (libns.1502.dylib:x86_64+0x13ed3)
#7 query_delegation query.c (libns.1502.dylib:x86_64+0x21ed1)
#8 query_gotanswer query.c (libns.1502.dylib:x86_64+0x18b2f)
#9 query_lookup query.c:5562 (libns.1502.dylib:x86_64+0x136f7)
#10 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#11 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#12 ns__client_request client.c:2154 (libns.1502.dylib:x86_64+0x5dd2)
#13 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa91)
#14 uv__udp_io <null>:5823072 (libuv.1.dylib:x86_64+0x13244)
Mutex M22372295666377800 is already destroyed.
Thread T5 (tid=1295632, running) created by main thread at:
#0 pthread_create <null>:5823120 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T7 (tid=1295634, running) created by main thread at:
#0 pthread_create <null>:5823120 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T4 (tid=1295631, running) created by main thread at:
#0 pthread_create <null>:5823024 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000df4e)
SUMMARY: ThreadSanitizer: data race resolver.c:7030 in fctx_decreference
```
December 2019 (9.11.14, 9.14.9, 9.15.7)
https://gitlab.isc.org/isc-projects/bind9/-/issues/1411
ThreadSanitizer: data race resolver.c:2153 in fctx_query
2019-12-11T00:08:39Z
Ondřej Surý
ThreadSanitizer: data race resolver.c:2153 in fctx_query
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: fetchlimit
```
WARNING: ThreadSanitizer: data race (pid=66438)
Write of size 4 at 0x7b680015c528 by thread T7:
#0 fctx_query resolver.c:2153 (libdns.150...
* Binary: `named`
* Commit: d0bc45be1778b6e6d88db12c7697536ef61f09b1
* Tests: fetchlimit
```
WARNING: ThreadSanitizer: data race (pid=66438)
Write of size 4 at 0x7b680015c528 by thread T7:
#0 fctx_query resolver.c:2153 (libdns.1505.dylib:x86_64+0x13b047)
#1 fctx_try resolver.c:4132 (libdns.1505.dylib:x86_64+0x1378f1)
#2 fctx_timeout resolver.c:4462 (libdns.1505.dylib:x86_64+0x134b1d)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Previous read of size 4 at 0x7b680015c528 by thread T5 (mutexes: write M22372295666377800):
#0 fctx_decreference resolver.c:7029 (libdns.1505.dylib:x86_64+0x131a17)
#1 dns_resolver_destroyfetch resolver.c:10758 (libdns.1505.dylib:x86_64+0x1318a0)
#2 fetch_callback query.c:5679 (libns.1502.dylib:x86_64+0x153d8)
#3 run task.c:1134 (libisc.1504.dylib:x86_64+0x3be51)
Location is heap block of size 1449 at 0x7b680015c000 allocated by thread T4:
#0 malloc <null>:7951424 (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 dns_resolver_createfetch resolver.c:4748 (libdns.1505.dylib:x86_64+0x12cc41)
#6 ns_query_recurse query.c:5858 (libns.1502.dylib:x86_64+0x13ed3)
#7 query_delegation query.c (libns.1502.dylib:x86_64+0x21ed1)
#8 query_gotanswer query.c (libns.1502.dylib:x86_64+0x18b2f)
#9 query_lookup query.c:5562 (libns.1502.dylib:x86_64+0x136f7)
#10 ns__query_start query.c:5441 (libns.1502.dylib:x86_64+0x1144c)
#11 ns_query_start query.c:5162 (libns.1502.dylib:x86_64+0x172a8)
#12 ns__client_request client.c:2154 (libns.1502.dylib:x86_64+0x5dd2)
#13 udp_recv_cb udp.c:318 (libisc.1504.dylib:x86_64+0x2aa91)
#14 uv__udp_io <null>:7951424 (libuv.1.dylib:x86_64+0x13244)
Mutex M22372295666377800 is already destroyed.
Thread T7 (tid=1295634, running) created by main thread at:
#0 pthread_create <null>:7951472 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T5 (tid=1295632, running) created by main thread at:
#0 pthread_create <null>:7951472 (libclang_rt.tsan_osx_dynamic.dylib:x86_64h+0x2a9cd)
#1 isc_thread_create thread.c:75 (libisc.1504.dylib:x86_64+0x58db1)
#2 isc_taskmgr_create task.c:1410 (libisc.1504.dylib:x86_64+0x3b340)
#3 main main.c:902 (named:x86_64+0x10000dfa6)
Thread T4 (tid=1295631, running) created by main thread at:
#0 pthread_create <null>:7951376 (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+0x23b84)
#3 main main.c:895 (named:x86_64+0x10000df4e)
SUMMARY: ThreadSanitizer: data race resolver.c:2153 in fctx_query
```
December 2019 (9.11.14, 9.14.9, 9.15.7)