dig aborts for DoH with IPv6
dig -6 google.cz A +https -p444
crashes for me. dig -4
, just dig
without -6
, or when +https
is not present sends the query just fine. This is BIND 9.17.16 from ISC Copr repo on Fedora 34:
[root@mnowak ~]# dig -6 google.cz A +https -p444
;; Connection to ::1#444(::1) for google.cz failed: failure.
10-Aug-2021 14:46:59.568 SSL error in BIO: 5 unexpected error (errno: 115). Arguments: received_data: (nil), send_data: (nil), finish: false
netmgr/netmgr.c:2499: REQUIRE((uint_fast32_t) __extension__ ({ __auto_type __atomic_load_ptr = ((&handle->references)); __typeof__ ((void)0, *__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (memory_order_acquire)); __atomic_load_tmp; }) >= 2) failed, back trace
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x3af33)[0x7f3e6b1e8f33]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(isc_assertion_failed+0x10)[0x7f3e6b1e8630]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(isc_nm_read+0xea)[0x7f3e6b1d71da]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x27d1b)[0x7f3e6b1d5d1b]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x2e7d2)[0x7f3e6b1dc7d2]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x2ed35)[0x7f3e6b1dcd35]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x2f537)[0x7f3e6b1dd537]
/opt/isc/isc-bind/root/usr/lib64/libuv.so.1(+0xd91d)[0x7f3e6ad3191d]
/opt/isc/isc-bind/root/usr/lib64/libuv.so.1(+0x26ccd)[0x7f3e6ad4accd]
/opt/isc/isc-bind/root/usr/lib64/libuv.so.1(uv_run+0x114)[0x7f3e6ad3a8d4]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(+0x2edce)[0x7f3e6b1dcdce]
/opt/isc/isc-bind/root/usr/lib64/libisc-9.17.16.so(isc__trampoline_run+0x63)[0x7f3e6b226e33]
/lib64/libpthread.so.0(+0x9299)[0x7f3e6a7c3299]
/lib64/libc.so.6(clone+0x43)[0x7f3e6ae59353]
Aborted (core dumped)
Reading symbols from /opt/isc/isc-bind/root/usr/bin/dig...
Reading symbols from /usr/lib/debug/opt/isc/isc-bind/root/usr/bin/dig-9.17.16-1.1.fc34.x86_64.debug...
[New LWP 3586]
[New LWP 3585]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dig -6 google.cz A +https -p444'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49 return ret;
[Current thread is 1 (Thread 0x7f8edff07640 (LWP 3586))]
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007f8ee0a628a4 in __GI_abort () at abort.c:79
#2 0x00007f8ee0ecb635 in isc_assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>, cond=<optimized out>)
at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/assertions.c:49
#3 0x00007f8ee0eba1da in isc_nm_read (handle=<optimized out>, cb=<optimized out>, cbarg=<optimized out>) at netmgr/netmgr.c:2499
#4 0x00007f8ee0eb8d1b in http_do_bio (session=0x7f8ed807b910, send_httphandle=0x0, send_cb=0x0, send_cbarg=0x0) at netmgr/http.c:1222
#5 0x00007f8ee0eb91be in http_close_direct (sock=<optimized out>) at netmgr/http.c:2557
#6 0x00007f8ee0ebf086 in isc__nm_async_httpclose (worker=<optimized out>, ev0=<optimized out>) at netmgr/http.c:2605
#7 0x00007f8ee0ebf7d2 in process_netievent (worker=worker@entry=0x557a6708a8c0, ievent=0x557a672d7890) at netmgr/netmgr.c:976
#8 0x00007f8ee0ebfd35 in process_queue (worker=worker@entry=0x557a6708a8c0, type=type@entry=NETIEVENT_NORMAL) at netmgr/netmgr.c:1018
#9 0x00007f8ee0ec0537 in process_all_queues (worker=0x557a6708a8c0) at netmgr/netmgr.c:768
#10 async_cb (handle=0x557a6708ac20) at netmgr/netmgr.c:797
#11 0x00007f8ee0a1491d in uv__async_io (loop=0x557a6708a8d0, w=<optimized out>, events=<optimized out>) at src/unix/async.c:163
#12 0x00007f8ee0a2dccd in uv__io_poll (loop=0x557a6708a8d0, timeout=<optimized out>) at src/unix/linux-core.c:462
#13 0x00007f8ee0a1d8d4 in uv_run (loop=loop@entry=0x557a6708a8d0, mode=mode@entry=UV_RUN_DEFAULT) at src/unix/core.c:385
#14 0x00007f8ee0ebfdce in nm_thread (worker0=0x557a6708a8c0) at netmgr/netmgr.c:703
#15 0x00007f8ee0f09e33 in isc__trampoline_run (arg=0x557a672d0d60) at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/trampoline.c:184
#16 0x00007f8ee04a6299 in start_thread (arg=0x7f8edff07640) at pthread_create.c:481
#17 0x00007f8ee0b3c353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
named.conf
:
options {
directory "/var/opt/isc/scls/isc-bind/named/data";
listen-on tls ephemeral http default { any; };
listen-on-v6 tls ephemeral http default { any; };
listen-on { any; };
listen-on-v6 { any; };
dnssec-validation auto;
allow-query { localhost; XXX.XXX.XXX.XXX; };
recursion yes;
querylog yes;
max-cache-size 50%;
https-port 444;
};
logging {
channel default_debug {
file "named.run";
print-time yes;
severity dynamic;
};
};
GDB thread apply all bt full
:
[New LWP 3586]
[New LWP 3585]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `dig -6 google.cz A +https -p444'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49 return ret;
[Current thread is 1 (Thread 0x7f8edff07640 (LWP 3586))]
Thread 2 (Thread 0x7f8ee0049d00 (LWP 3585)):
#0 0x00007f8ee0a7a062 in __GI___sigtimedwait (set=set@entry=0x7ffc3c4fe610, info=info@entry=0x7ffc3c4fe540, timeout=timeout@entry=0x0) at ../sysdeps/unix/sysv/linux/sigtimedwait.c:54
result = <optimized out>
#1 0x00007f8ee0a796ec in __GI___sigwait (set=set@entry=0x7ffc3c4fe610, sig=sig@entry=0x7ffc3c4fe5fc) at ../sysdeps/unix/sysv/linux/sigwait.c:28
si = {si_signo = 1, si_errno = 0, si_code = 40, __pad0 = 0, _sifields = {_pad = {1728620736, 21882, -525151276, 32654, 1728607024, 21882, 8, 0, -526185176, 32654, 8, 0, 1728607024, 21882, -526284351, 32654, 1011869184, 32764, 1728607024, 21882, 1731006208, 21882, -1, 0, 1728607040, 21882, -521129860, 32654}, _kill = {si_pid = 1728620736, si_uid = 21882}, _timer = {si_tid = 1728620736, si_overrun = 21882, si_sigval = {sival_int = -525151276, sival_ptr = 0x7f8ee0b2d3d4 <__GI___libc_write+100>}}, _rt = {si_pid = 1728620736, si_uid = 21882, si_sigval = {sival_int = -525151276, sival_ptr = 0x7f8ee0b2d3d4 <__GI___libc_write+100>}}, _sigchld = {si_pid = 1728620736, si_uid = 21882, si_status = -525151276, si_utime = 93984202978096, si_stime = 8}, _sigfault = {si_addr = 0x557a6708a8c0, si_addr_lsb = -11308, _bounds = {_addr_bnd = {_lower = 0x557a67087330, _upper = 0x8}, _pkey = 1728607024}}, _sigpoll = {si_band = 93984202991808, si_fd = -525151276}, _sigsys = {_call_addr = 0x557a6708a8c0, _syscall = -525151276, _arch = 32654}}}
ret = <optimized out>
#2 0x00007f8ee0ed4453 in isc_app_ctxrun (ctx=ctx@entry=0x7f8ee0f35880 <isc_g_appctx>) at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/app.c:243
sset = {__val = {16387, 140251628437346, 0, 140251628437462, 93982474371105, 0, 141733920768, 16247941830063148800, 48, 93984205383696, 93984194315200, 24, 33, 93984202991360, 0, 140251628440041}}
sig = 0
strbuf = {<optimized out> <repeats 128 times>}
event = 0x0
next_event = <optimized out>
task = 0x0
#3 0x00007f8ee0ed471c in isc_app_run () at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/app.c:295
result = <optimized out>
#4 0x0000557a6682c25b in dig_startup () at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/bin/dig/dig.c:2907
result = <optimized out>
#5 main (argc=6, argv=0x7ffc3c4fe8c8) at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/bin/dig/dig.c:2934
No locals.
Thread 1 (Thread 0x7f8edff07640 (LWP 3586)):
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
set = {__val = {16387, 0 <repeats 15 times>}}
pid = <optimized out>
tid = <optimized out>
ret = <optimized out>
#1 0x00007f8ee0a628a4 in __GI_abort () at abort.c:79
save_stage = 1
act = {__sigaction_handler = {sa_handler = 0x104c, sa_sigaction = 0x104c}, sa_mask = {__val = {0, 0, 140251486297584, 0 <repeats 11 times>, 16247941830063148800, 93984194281752}}, sa_flags = 0, sa_restorer = 0x7f8ed807b910}
sigs = {__val = {32, 0 <repeats 12 times>, 16247941830063148800, 0, 93984194281752}}
#2 0x00007f8ee0ecb635 in isc_assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>, cond=<optimized out>) at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/assertions.c:49
No locals.
#3 0x00007f8ee0eba1da in isc_nm_read (handle=<optimized out>, cb=<optimized out>, cbarg=<optimized out>) at netmgr/netmgr.c:2499
No locals.
#4 0x00007f8ee0eb8d1b in http_do_bio (session=0x7f8ed807b910, send_httphandle=0x0, send_cb=0x0, send_cbarg=0x0) at netmgr/http.c:1222
No locals.
#5 0x00007f8ee0eb91be in http_close_direct (sock=<optimized out>) at netmgr/http.c:2557
session = <optimized out>
#6 0x00007f8ee0ebf086 in isc__nm_async_httpclose (worker=<optimized out>, ev0=<optimized out>) at netmgr/http.c:2605
ievent = <optimized out>
sock = <optimized out>
#7 0x00007f8ee0ebf7d2 in process_netievent (worker=worker@entry=0x557a6708a8c0, ievent=0x557a672d7890) at netmgr/netmgr.c:976
No locals.
#8 0x00007f8ee0ebfd35 in process_queue (worker=worker@entry=0x557a6708a8c0, type=type@entry=NETIEVENT_NORMAL) at netmgr/netmgr.c:1018
stop = <optimized out>
waiting = 1
ievent = <optimized out>
#9 0x00007f8ee0ec0537 in process_all_queues (worker=0x557a6708a8c0) at netmgr/netmgr.c:768
result = <optimized out>
type = 3
reschedule = false
reschedule = <optimized out>
type = <optimized out>
result = <optimized out>
#10 async_cb (handle=0x557a6708ac20) at netmgr/netmgr.c:797
worker = 0x557a6708a8c0
#11 0x00007f8ee0a1491d in uv__async_io (loop=0x557a6708a8d0, w=<optimized out>, events=<optimized out>) at src/unix/async.c:163
buf = "\001\000\000\000\000\000\000\000\320A\006؎\177\000\000à\235\340\216\177\000\000\201 \231\340\216\177\000\000\220\037\005؎\177\000\000\236q\254\340\216\177\000\000\231\240\235\340\216\177\000\000\000\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\060\221\004؎\177\000\000\060\000\000\000\000\000\000\000\236q\254\340\216\177\000\000\003\000\000\000\216\177\000\000\000\000\000\000\000\000\000\000\001", '\000' <repeats 15 times>, "\060\000\000\000\000\000\000\000 \000\000\000\000\000\000\000\003", '\000' <repeats 15 times>, "|\000\000\000w", '\000' <repeats 20 times>, "\317\037X\002I|\341p\031\005؎\177\000\000P@\006؎\177"...
r = <optimized out>
queue = {0x7f8edff036b0, 0x7f8edff036b0}
q = 0x557a6708ac88
h = 0x557a6708ac20
__PRETTY_FUNCTION__ = {<optimized out> <repeats 13 times>}
#12 0x00007f8ee0a2dccd in uv__io_poll (loop=0x557a6708a8d0, timeout=<optimized out>) at src/unix/linux-core.c:462
no_epoll_pwait = <optimized out>
no_epoll_wait = <optimized out>
events = {{events = 1, data = {ptr = 0x8, fd = 8, u32 = 8, u64 = 8}}, {events = 4, data = {ptr = 0xb, fd = 11, u32 = 11, u64 = 11}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 985 times>, {events = 0, data = {ptr = 0x7f8ed8052230, fd = -670752208, u32 = 3624215088, u64 = 140251486298672}}, {events = 3624288336, data = {ptr = 0xd805224800007f8e, fd = 32654, u32 = 32654, u64 = 15565885379709009806}}, {events = 32654, data = {ptr = 0x7f8ed8063b08, fd = -670680312, u32 = 3624286984, u64 = 140251486370568}}, {events = 1728620824, data = {ptr = 0x557a, fd = 21882, u32 = 21882, u64 = 21882}}, {events = 0, data = {ptr = 0x7f8ee0ecdf75 <isc_astack_trypush+85>, fd = -521347211, u32 = 3773620085, u64 = 140251635703669}}, {events = 3624288336, data = {ptr = 0xd805197000007f8e, fd = 32654, u32 = 32654, u64 = 15565875655903051662}}, {events = 32654, data = {ptr = 0x7f8ed8052110, fd = -670752496, u32 = 3624214800, u64 = 140251486298384}}, {events = 3773550568, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0xe17c4902581fcf00, fd = 1478479616, u32 = 1478479616, u64 = 16247941830063148800}}, {events = 3624212848, data = {ptr = 0xe0eb22e400007f8e, fd = 32654, u32 = 32654, u64 = 16207086046670782350}}, {events = 32654, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 3773515905, data = {ptr = 0xd806389000007f8e, fd = 32654, u32 = 32654, u64 = 15566191353179176846}}, {events = 32654, data = {ptr = 0x7f8ee0ec284d <tcp_close_direct+173>, fd = -521394099, u32 = 3773573197, u64 = 140251635656781}}, {events = 0, data = {ptr = 0xe0a1d39500000000, fd = 0, u32 = 0, u64 = 16186451172649861120}}, {events = 32654, data = {ptr = 0x7f8ed8063890, fd = -670680944, u32 = 3624286352, u64 = 140251486369936}}, {events = 3773543561, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x581fcf0000000000, fd = 0, u32 = 0, u64 = 6350021598522638336}}, {events = 3783018754, data = {ptr = 0x7f8ed8051970, fd = -670754448, u32 = 3624212848, u64 = 140251486296432}}, {events = 3773547588, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0xe17c4902581fcf00, fd = 1478479616, u32 = 1478479616, u64 = 16247941830063148800}}, {events = 3624212848, data = {ptr = 0xdff06b8000007f8e, fd = 32654, u32 = 32654, u64 = 16136515662368505742}}, {events = 32654, data = {ptr = 0x7f8ed8051f08, fd = -670753016, u32 = 3624214280, u64 = 140251486297864}}, {events = 3773548037, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0x7f8ed8051970, fd = -670754448, u32 = 3624212848, u64 = 140251486296432}}, {events = 3624286352, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0x7f8edff06b80, fd = -537891968, u32 = 3757075328, u64 = 140251619158912}}, {events = 1478479616, data = {ptr = 0xd8063b60e17c4902, fd = -511948542, u32 = 3783018754, u64 = 15566194449338616066}}, {events = 32654, data = {ptr = 0x7f8ee0a285c0 <uv__write_callbacks+240>, fd = -526219840, u32 = 3768747456, u64 = 140251630831040}}, {events = 3757075328, data = {ptr = 0xdff06b8000007f8e, fd = 32654, u32 = 32654, u64 = 16136515662368505742}}, {events = 32654, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1478479616, data = {ptr = 0x4e17c4902, fd = -511948542, u32 = 3783018754, u64 = 20962887938}}, {events = 0, data = {ptr = 0x7f8ed8051f90, fd = -670752880, u32 = 3624214416, u64 = 140251486298000}}, {events = 4, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x7f8ed8051f08, fd = -670753016, u32 = 3624214280, u64 = 140251486297864}}, {events = 3768755471, data = {ptr = 0x7f8e, fd = 32654, u32 = 32654, u64 = 32654}}, {events = 0, data = {ptr = 0x6, fd = 6, u32 = 6, u64 = 6}}}
pe = 0x7f8edff03be0
e = {events = 4, data = {ptr = 0xb, fd = 11, u32 = 11, u64 = 11}}
real_timeout = <optimized out>
q = <optimized out>
w = 0x557a6708aa98
sigset = {__val = {0 <repeats 16 times>}}
sigmask = <optimized out>
base = <optimized out>
have_signals = 0
nevents = 0
count = <optimized out>
nfds = <optimized out>
fd = <optimized out>
op = <optimized out>
i = 0
user_timeout = <optimized out>
reset_timeout = <optimized out>
max_safe_timeout = <optimized out>
no_epoll_pwait_cached = <optimized out>
no_epoll_wait_cached = <optimized out>
__PRETTY_FUNCTION__ = {<optimized out> <repeats 12 times>}
#13 0x00007f8ee0a1d8d4 in uv_run (loop=loop@entry=0x557a6708a8d0, mode=mode@entry=UV_RUN_DEFAULT) at src/unix/core.c:385
timeout = <optimized out>
r = <optimized out>
ran_pending = <optimized out>
#14 0x00007f8ee0ebfdce in nm_thread (worker0=0x557a6708a8c0) at netmgr/netmgr.c:703
r = <optimized out>
__atomic_load_ptr = <optimized out>
__atomic_load_tmp = <optimized out>
worker = 0x557a6708a8c0
mgr = 0x557a67089450
#15 0x00007f8ee0f09e33 in isc__trampoline_run (arg=0x557a672d0d60) at /usr/src/debug/isc-bind-bind-9.17.16-1.1.fc34.x86_64/lib/isc/trampoline.c:184
trampoline = 0x557a672d0d60
result = <optimized out>
#16 0x00007f8ee04a6299 in start_thread (arg=0x7f8edff07640) at pthread_create.c:481
ret = <optimized out>
pd = 0x7f8edff07640
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140251619161664, -1537989858356960344, 140721320354702, 140721320354703, 0, 140251619161664, 1565644907337147304, 1565624068595180456}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = 0
#17 0x00007f8ee0b3c353 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.
See also: #2860 (closed)
Edited by Artem Boldariev