It was pointed out to me that if you run
dig @h.gtld-servers.net ubuntu.com. se-east-1.clouds.archive.ubuntu.com
+trace
a few times, it sooner or later gets a reply too large for udp, switches to
tcp and then
dies with this output:
/usr/src/usr.sbin/bind/lib/dns/name.c:571: REQUIREname2) !=
((void *)0)) && (((const isc__magic_t *)(name2))->magic == ((('D')
<< 24 | ('N') << 16 | ('S') << 8 | ('n')) failed.
Tested on various am64 snaps from 2017, this particular run was:
OpenBSD 6.0-current (GENERIC.MP) #129: Wed Jan 11 14:22:26 MST 2017
bu...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Core file says:
gdb $(which dig) --core dig.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.0"...
(no debugging symbols found)
Core was generated by `dig'.
Program terminated with signal 6, Aborted.
(no debugging symbols found)
Loaded symbols for /usr/sbin/dig
Reading symbols from /usr/lib/libcrypto.so.41.0...done.
Loaded symbols for /usr/lib/libcrypto.so.41.0
Reading symbols from /usr/lib/libc.so.89.2...done.
Loaded symbols for /usr/lib/libc.so.89.2
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0 0x0745e3121c8a in thrkill () at :2
2 : No such file or directory.
in
(gdb) bt full
#0 0x0745e3121c8a in thrkill () at :2
No locals.
#1 0x0745e31364a9 in *_libc_abort ()
at /usr/src/lib/libc/stdlib/abort.c:52
mask = 4294967263
sa = {__sigaction_u = {
__sa_handler = 0x745e312da7a <_thread_sys_write+10>,
__sa_sigaction = 0x745e312da7a <_thread_sys_write+10>}, sa_mask = 0,
sa_flags = 0}
#2 0x0743918f0581 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#3 0x07439181cdb4 in onrun_callback () from /usr/sbin/dig
No symbol table info available.
#4 0x0743918068ae in ?? () from /usr/sbin/dig
No symbol table info available.
#5 0x07439180ac8b in onrun_callback () from /usr/sbin/dig
No symbol table info available.
#6 0x07439190693a in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#7 0x074391909860 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#8 0x074391909b46 in dns_rbtdb64_create () from /usr/sbin/dig
No symbol table info available.
#9 0x074391803dc8 in ?? () from /usr/sbin/dig
No symbol table info available.
#10 0x074391800fb2 in ?? () from /usr/sbin/dig
No symbol table info available.
#11 0x in ?? ()
No symbol table info available.
Current language: auto; currently asm
--
May the most significant bit of your life be positive.