TCP, DNS over TCP, and DNS over TLS unit tests fail or hang on Dragonfly BSD
tcp_test
, tcpdns_test
, tls_test
, and tlsdns_test
unit tests fail on Dragonfly BSD 6.2.1 in *_noop
and *_noresponse
tests like this:
[==========] Running 6 test(s).
[ RUN ] tlsdns_noop
Could not run test: 0x30 != 0
[ LINE ] --- netmgr_common.c:621: error: Failure!0 != 0x1
[ LINE ] --- netmgr_common.c:650: error: Failure!Test teardown failed
[ ERROR ] tlsdns_noop
[ RUN ] tlsdns_noresponse
loop.c:343: REQUIRE(loopmgrp != ((void *)0) && *loopmgrp == ((void *)0)) failed, back trace
0x80068d0bc <isc_assertion_typetotext+0x6c> at /home/newman/bind9/lib/isc/.libs/libisc-9.19.9-dev.so
0x80068d02a <isc_assertion_failed+0xa> at /home/newman/bind9/lib/isc/.libs/libisc-9.19.9-dev.so
0x80069f1aa <isc_loopmgr_create+0x4ea> at /home/newman/bind9/lib/isc/.libs/libisc-9.19.9-dev.so
0x40627d <setup_loopmgr+0x4d> at /home/newman/bind9/tests/isc/.libs/tlsdns_test
0x404f75 <setup_netmgr_test+0x1e5> at /home/newman/bind9/tests/isc/.libs/tlsdns_test
0x405989 <stream_noresponse_setup+0x9> at /home/newman/bind9/tests/isc/.libs/tlsdns_test
0x80061cb95 <_test_realloc+0x485> at /usr/local/lib/libcmocka.so.0
0x80061d3b6 <_cmocka_run_group_tests+0x326> at /usr/local/lib/libcmocka.so.0
0x403a87 <main+0x47> at /home/newman/bind9/tests/isc/.libs/tlsdns_test
FAIL tlsdns_test (exit status: 134)
(gdb) bt
#0 0x00000008015cc79c in lwp_kill () from /lib/libc.so.8
#1 0x00000008013607f2 in _thr_send_sig () from /usr/lib/libpthread.so.0
#2 0x0000000801357ee5 in raise () from /usr/lib/libpthread.so.0
#3 0x0000000801666dff in abort () from /lib/libc.so.8
#4 0x000000080068d02f in isc_assertion_failed (file=file@entry=0x8006ce806 "loop.c", line=line@entry=343, type=type@entry=isc_assertiontype_require,
cond=cond@entry=0x8006c74b0 "loopmgrp != ((void *)0) && *loopmgrp == ((void *)0)") at assertions.c:50
#5 0x000000080069f1aa in isc_loopmgr_create (mctx=<optimized out>, nloops=<optimized out>, loopmgrp=loopmgrp@entry=0x408d60 <loopmgr>) at loop.c:219
#6 0x000000000040627d in setup_loopmgr (state=state@entry=0x802022500) at isc.c:73
#7 0x0000000000404f75 in setup_netmgr_test (state=0x802022500) at netmgr_common.c:161
#8 0x0000000000405989 in stream_noresponse_setup (state=<optimized out>) at netmgr_common.c:716
#9 0x000000080061cb95 in ?? () from /usr/local/lib/libcmocka.so.0
#10 0x000000080061d3b6 in _cmocka_run_group_tests () from /usr/local/lib/libcmocka.so.0
#11 0x0000000000403a87 in main () at tlsdns_test.c:162