dispatch_test unit test fails on Dragonfly BSD
dispatch_test
unit test fails on Dragonfly BSD 6.2.1.
Core was generated by `dispatch_test'.
Program terminated with signal 6, Aborted.
#0 0x00000008019a879c in lwp_kill () from /lib/libc.so.8
#0 0x00000008019a879c in lwp_kill () from /lib/libc.so.8
#1 0x000000080173c7f2 in _thr_send_sig () from /usr/lib/libpthread.so.0
#2 0x0000000801733ee5 in raise () from /usr/lib/libpthread.so.0
#3 0x0000000801a42dff in abort () from /lib/libc.so.8
#4 0x000000080069030f in isc_assertion_failed (file=file@entry=0x8006c3822 "netmgr/netmgr.c", line=line@entry=2565, type=type@entry=isc_assertiontype_require, cond=cond@entry=0x8006c8780 "(((handle) != ((void *)0) && ((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))) && __extension__ ({ __auto_type __atomic_load_ptr = (&(handle)->references);"...) at assertions.c:48
#5 0x000000080067d1df in isc_nm_send (handle=handle@entry=0x0, region=region@entry=0x7fffffdfc720, cb=cb@entry=0x800c3ac4b <send_done>, cbarg=cbarg@entry=0x8023e3a20) at netmgr/netmgr.c:2567
#6 0x0000000800c3d506 in dns_dispatch_send (resp=0x8023e3a20, r=r@entry=0x7fffffdfc720, dscp=dscp@entry=-1) at dispatch.c:1913
#7 0x0000000000403082 in connected (eresult=<optimized out>, region=<optimized out>, cbarg=0x7fffffdfc720) at dispatch_test.c:406
#8 0x0000000800c3b0fd in tcp_connected (handle=<optimized out>, eresult=ISC_R_UNEXPECTED, arg=<optimized out>) at dispatch.c:1747
#9 0x000000080067f739 in isc__nm_async_connectcb (worker=worker@entry=0x802558020, ev0=ev0@entry=0x802346ce0) at netmgr/netmgr.c:2763
#10 0x00000008006803ee in process_netievent (worker=worker@entry=0x802558020, ievent=0x802346ce0) at netmgr/netmgr.c:968
#11 0x00000008006806c7 in process_queue (worker=worker@entry=0x802558020, type=type@entry=NETIEVENT_NORMAL) at netmgr/netmgr.c:1008
#12 0x0000000800680da8 in process_all_queues (worker=0x802558020) at netmgr/netmgr.c:754
#13 async_cb (handle=0x8025582f8) at netmgr/netmgr.c:783
#14 0x000000080048c871 in ?? () from /usr/local/lib/libuv.so.1
#15 0x000000080049cd6a in ?? () from /usr/local/lib/libuv.so.1
#16 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
#17 0x00000008006807bc in nm_thread (worker0=0x802558020) at netmgr/netmgr.c:689
#18 0x00000008006b8b03 in isc__trampoline_run (arg=0x802498440) at trampoline.c:185
#19 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
#20 0x0000000000000000 in ?? ()
backtrace
[newman@ ~/bind9]$ ./libtool --mode=execute /usr/bin/gdb.base -batch -command=bin/tests/system/run.gdb -core=lib/dns/tests/dispatch_test.core -- lib/dns/tests/.libs/dispatch_test
[New process 7]
[New process 1]
[New process 2]
[New process 3]
[New process 4]
[New process 5]
[New process 6]
[New process 8]
[New process 9]
[New process 10]
Core was generated by `dispatch_test'.
Program terminated with signal 6, Aborted.
#0 0x00000008019a879c in lwp_kill () from /lib/libc.so.8
Thread 10 (process 10):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x802558b90) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x802558b90
mgr = 0x8023b0ea0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x8024968c0) at trampoline.c:185
trampoline = 0x8024968c0
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 9 (process 9):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x8025587c0) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x8025587c0
mgr = 0x8023b0ea0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x802496a00) at trampoline.c:185
trampoline = 0x802496a00
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 8 (process 8):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x8025583f0) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x8025583f0
mgr = 0x8023b0ea0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x802498b00) at trampoline.c:185
trampoline = 0x802498b00
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 7 (process 6):
#0 0x00000008017388bc in _umtx_sleep_err () from /usr/lib/libpthread.so.0
No symbol table info available.
#1 0x00000008017387fa in _thr_umtx_wait () from /usr/lib/libpthread.so.0
No symbol table info available.
#2 0x0000000801736531 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#3 0x0000000801736990 in pthread_cond_wait () from /usr/lib/libpthread.so.0
No symbol table info available.
#4 0x00000008006b4c88 in run (uap=0x8024a10a0) at timer.c:621
manager = 0x8024a10a0
now = {seconds = 1641839066, nanoseconds = 218490898}
result = <optimized out>
#5 0x00000008006b8b03 in isc__trampoline_run (arg=0x802497fa0) at trampoline.c:185
trampoline = 0x802497fa0
result = <optimized out>
#6 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#7 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 6 (process 5):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x80255fb90) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x80255fb90
mgr = 0x8023b12c0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x8024979a0) at trampoline.c:185
trampoline = 0x8024979a0
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 5 (process 4):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x80255f7c0) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x80255f7c0
mgr = 0x8023b12c0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x802496500) at trampoline.c:185
trampoline = 0x802496500
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 4 (process 3):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x80255f3f0) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x80255f3f0
mgr = 0x8023b12c0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x802497de0) at trampoline.c:185
trampoline = 0x802497de0
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 3 (process 2):
#0 0x00000008019a8c7c in kevent () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080049cba3 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#2 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008006807bc in nm_thread (worker0=0x80255f020) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x80255f020
mgr = 0x8023b12c0
#4 0x00000008006b8b03 in isc__trampoline_run (arg=0x8024985c0) at trampoline.c:185
trampoline = 0x8024985c0
result = <optimized out>
#5 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#6 0x0000000000000000 in ?? ()
No symbol table info available.
Thread 2 (process 1):
#0 0x00000008017388bc in _umtx_sleep_err () from /usr/lib/libpthread.so.0
No symbol table info available.
#1 0x000000080173886e in _thr_umtx_wait_intr () from /usr/lib/libpthread.so.0
No symbol table info available.
#2 0x0000000801739f5a in sem_wait () from /usr/lib/libpthread.so.0
No symbol table info available.
#3 0x000000080049943d in uv_sem_wait () from /usr/local/lib/libuv.so.1
No symbol table info available.
#4 0x0000000000403950 in dispatch_timeout_tcp_response (state=<optimized out>) at dispatch_test.c:532
result = <optimized out>
region = {base = 0x7fffffdfc708 "V\001", length = 12}
rbuf = '\000' <repeats 11 times>
message = "V\001\000\000\000\000\000\000\000\000\000"
id = 22017
sock = 0x80253e220
#5 0x0000000800606ae7 in ?? () from /usr/local/lib/libcmocka.so.0
No symbol table info available.
#6 0x00000008006073e8 in _cmocka_run_group_tests () from /usr/local/lib/libcmocka.so.0
No symbol table info available.
#7 0x00000000004041a2 in main () at dispatch_test.c:736
tests = {{name = 0x405256 "dispatch_timeout_tcp_connect", test_func = 0x403f87 <dispatch_timeout_tcp_connect>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x405273 "dispatch_timeout_tcp_response", test_func = 0x4037dc <dispatch_timeout_tcp_response>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x405291 "dispatch_tcp_response", test_func = 0x403a47 <dispatch_tcp_response>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x4052a7 "dispatch_timeout_udp_response", test_func = 0x4034a7 <dispatch_timeout_udp_response>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x4052c5 "dispatchset_create", test_func = 0x403445 <dispatchset_create>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x4052d8 "dispatchset_get", test_func = 0x403202 <dispatchset_get>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}, {name = 0x4052e8 "dispatch_getnext", test_func = 0x402d57 <dispatch_getnext>, setup_func = 0x403dde <_setup>, teardown_func = 0x403cd3 <_teardown>, initial_state = 0x0}}
Thread 1 (process 7):
#0 0x00000008019a879c in lwp_kill () from /lib/libc.so.8
No symbol table info available.
#1 0x000000080173c7f2 in _thr_send_sig () from /usr/lib/libpthread.so.0
No symbol table info available.
#2 0x0000000801733ee5 in raise () from /usr/lib/libpthread.so.0
No symbol table info available.
#3 0x0000000801a42dff in abort () from /lib/libc.so.8
No symbol table info available.
#4 0x000000080069030f in isc_assertion_failed (file=file@entry=0x8006c3822 "netmgr/netmgr.c", line=line@entry=2565, type=type@entry=isc_assertiontype_require, cond=cond@entry=0x8006c8780 "(((handle) != ((void *)0) && ((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))) && __extension__ ({ __auto_type __atomic_load_ptr = (&(handle)->references);"...) at assertions.c:48
No locals.
#5 0x000000080067d1df in isc_nm_send (handle=handle@entry=0x0, region=region@entry=0x7fffffdfc720, cb=cb@entry=0x800c3ac4b <send_done>, cbarg=cbarg@entry=0x8023e3a20) at netmgr/netmgr.c:2567
No locals.
#6 0x0000000800c3d506 in dns_dispatch_send (resp=0x8023e3a20, r=r@entry=0x7fffffdfc720, dscp=dscp@entry=-1) at dispatch.c:1913
handle = 0x0
#7 0x0000000000403082 in connected (eresult=<optimized out>, region=<optimized out>, cbarg=0x7fffffdfc720) at dispatch_test.c:406
r = 0x7fffffdfc720
__func__ = "connected"
#8 0x0000000800c3b0fd in tcp_connected (handle=<optimized out>, eresult=ISC_R_UNEXPECTED, arg=<optimized out>) at dispatch.c:1747
disp = 0x802543b00
resp = 0x8023e3a20
next = 0x0
resps = {head = 0x0, tail = 0x0}
#9 0x000000080067f739 in isc__nm_async_connectcb (worker=worker@entry=0x802558020, ev0=ev0@entry=0x802346ce0) at netmgr/netmgr.c:2763
ievent = 0x802346ce0
sock = 0x80253d920
uvreq = 0x80247f020
eresult = ISC_R_UNEXPECTED
#10 0x00000008006803ee in process_netievent (worker=worker@entry=0x802558020, ievent=0x802346ce0) at netmgr/netmgr.c:968
No locals.
#11 0x00000008006806c7 in process_queue (worker=worker@entry=0x802558020, type=type@entry=NETIEVENT_NORMAL) at netmgr/netmgr.c:1008
stop = <optimized out>
waiting = 0
ievent = <optimized out>
#12 0x0000000800680da8 in process_all_queues (worker=0x802558020) at netmgr/netmgr.c:754
result = <optimized out>
type = 3
reschedule = false
#13 async_cb (handle=0x8025582f8) at netmgr/netmgr.c:783
worker = 0x802558020
#14 0x000000080048c871 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#15 0x000000080049cd6a in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#16 0x000000080048cfb6 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#17 0x00000008006807bc in nm_thread (worker0=0x802558020) at netmgr/netmgr.c:689
r = <optimized out>
worker = 0x802558020
mgr = 0x8023b0ea0
#18 0x00000008006b8b03 in isc__trampoline_run (arg=0x802498440) at trampoline.c:185
trampoline = 0x802498440
result = <optimized out>
#19 0x0000000801735a11 in ?? () from /usr/lib/libpthread.so.0
No symbol table info available.
#20 0x0000000000000000 in ?? ()
No symbol table info available.
dispatch_test.log
[==========] Running 7 test(s).
[ RUN ] dispatch_timeout_tcp_connect
netmgr/tcpdns.c:151: unable to convert libuv error code in tcpdns_connect_direct to isc_result: -45: operation not supported on socket
timeout_connected(..., unexpected error, ...)
[ ERROR ] --- 0x22 != 0x2
[ LINE ] --- dispatch_test.c:487: error: Failure!
[ FAILED ] dispatch_timeout_tcp_connect
[ RUN ] dispatch_timeout_tcp_response
netmgr/tcpdns.c:151: unable to convert libuv error code in tcpdns_connect_direct to isc_result: -45: operation not supported on socket
connected(..., unexpected error, ...)
netmgr/netmgr.c:2565: REQUIRE((((handle) != ((void *)0) && ((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))) && __extension__ ({ __auto_type __atomic_load_ptr = (&(handle)->references); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (5)); __atomic_load_tmp; }) > 0)) failed, back trace
0x80069038f <isc_assertion_typetotext+0x6a> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x80069030a <isc_assertion_failed+0xa> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x80067d1df <isc_nm_send+0x52> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x800c3d506 <dns_dispatch_send+0x5a> at /home/newman/bind9/lib/dns/.libs/libdns-9.17.21.so
0x403082 <connected+0x43> at /home/newman/bind9/lib/dns/tests/.libs/dispatch_test
0x800c3b0fd <dns_dispatch_detach+0xa4c> at /home/newman/bind9/lib/dns/.libs/libdns-9.17.21.so
0x80067f739 <isc__nm_async_connectcb+0xa5> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x8006803ee <isc__nm_async_sendcb+0x79f> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x8006806c7 <isc__nm_async_sendcb+0xa78> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x800680da8 <isc_nm_resume+0x26d> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x80048c871 <uv_version_string+0x1b1> at /usr/local/lib/libuv.so.1
0x80049cd6a <uv_cpu_info+0xb4a> at /usr/local/lib/libuv.so.1
0x80048cfb6 <uv_run+0xf6> at /usr/local/lib/libuv.so.1
0x8006807bc <isc__nm_async_sendcb+0xb6d> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x8006b8b03 <isc__trampoline_run+0x16> at /home/newman/bind9/lib/isc/.libs/libisc-9.17.21.so
0x801735a11 <pthread_detach+0x287> at /usr/lib/libpthread.so.0
FAIL dispatch_test (exit status: 134)