Skip to content

Instantly share code, notes, and snippets.

@yuwata
Created April 26, 2016 08:30
Show Gist options
  • Save yuwata/393505f5434bc2c159884ba0812d7792 to your computer and use it in GitHub Desktop.
Save yuwata/393505f5434bc2c159884ba0812d7792 to your computer and use it in GitHub Desktop.
systemd-resolved issue 2942
# gdb
GNU gdb (GDB) Fedora 7.11-70.fc25
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
(gdb) attach 2069
Attaching to process 2069
Reading symbols from target:/usr/lib/systemd/systemd-resolved...Reading symbols from /usr/lib/debug/usr/lib/systemd/systemd-resolved.debug...done.
done.
Reading symbols from target:/lib64/libselinux.so.1...Reading symbols from /usr/lib/debug/usr/lib64/libselinux.so.1.debug...done.
done.
Reading symbols from target:/lib64/libcap.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libcap.so.2.25.debug...done.
done.
Reading symbols from target:/lib64/librt.so.1...Reading symbols from /usr/lib/debug/usr/lib64/librt-2.23.90.so.debug...done.
done.
Reading symbols from target:/lib64/libm.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libm-2.23.90.so.debug...done.
done.
Reading symbols from target:/lib64/libgcrypt.so.20...Reading symbols from /usr/lib/debug/usr/lib64/libgcrypt.so.20.0.4.debug...done.
done.
Reading symbols from target:/lib64/libgpg-error.so.0...Reading symbols from /usr/lib/debug/usr/lib64/libgpg-error.so.0.17.0.debug...done.
done.
Reading symbols from target:/lib64/libidn.so.11...Reading symbols from /usr/lib/debug/usr/lib64/libidn.so.11.6.15.debug...done.
done.
Reading symbols from target:/lib64/libgcc_s.so.1...Reading symbols from /usr/lib/debug/usr/lib64/libgcc_s-6.0.0-20160406.so.1.debug...done.
done.
Reading symbols from target:/lib64/libpthread.so.0...Reading symbols from /usr/lib/debug/usr/lib64/libpthread-2.23.90.so.debug...done.
done.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Reading symbols from target:/lib64/libc.so.6...Reading symbols from /usr/lib/debug/usr/lib64/libc-2.23.90.so.debug...done.
done.
Reading symbols from target:/lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/usr/lib64/ld-2.23.90.so.debug...done.
done.
Reading symbols from target:/lib64/libpcre.so.1...Reading symbols from /usr/lib/debug/usr/lib64/libpcre.so.1.2.6.debug...done.
done.
Reading symbols from target:/lib64/libdl.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libdl-2.23.90.so.debug...done.
done.
Reading symbols from target:/lib64/libnss_files.so.2...Reading symbols from /usr/lib/debug/usr/lib64/libnss_files-2.23.90.so.debug...done.
done.
0x00007fee5da457e3 in __epoll_wait_nocancel () at ../sysdeps/unix/syscall-template.S:84
84 T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
(gdb) cont
Continuing.
Program received signal SIGSEGV, Segmentation fault.
DNS_PACKET_SHALL_CACHE () at src/resolve/resolved-dns-packet.h:211
211 return in_addr_is_localhost(p->family, &p->sender) == 0;
(gdb) backtrace
#0 DNS_PACKET_SHALL_CACHE () at src/resolve/resolved-dns-packet.h:211
#1 dns_transaction_cache_answer (t=0x560fd2d20300) at src/resolve/resolved-dns-transaction.c:582
#2 dns_transaction_process_dnssec (t=t@entry=0x560fd2d20300) at src/resolve/resolved-dns-transaction.c:717
#3 0x0000560fd173dd1c in dns_transaction_notify (source=0x560fd2d22b10, t=0x560fd2d20300) at src/resolve/resolved-dns-transaction.c:2088
#4 dns_transaction_complete (t=t@entry=0x560fd2d22b10, state=state@entry=DNS_TRANSACTION_SUCCESS) at src/resolve/resolved-dns-transaction.c:361
#5 0x0000560fd173e2dd in dns_transaction_process_dnssec (t=t@entry=0x560fd2d22b10) at src/resolve/resolved-dns-transaction.c:720
#6 0x0000560fd173f18b in dns_transaction_process_reply (t=0x560fd2d22b10, p=<optimized out>) at src/resolve/resolved-dns-transaction.c:1002
#7 0x0000560fd174007b in on_dns_packet.lto_priv.380 (s=<optimized out>, fd=<optimized out>, revents=<optimized out>, userdata=0x560fd2d22b10) at src/resolve/resolved-dns-transaction.c:1053
#8 0x0000560fd17825d7 in source_dispatch.lto_priv.480 (s=0x560fd2d23c60) at src/libsystemd/sd-event/sd-event.c:2268
#9 0x0000560fd171847b in sd_event_dispatch (e=0x560fd2cff0b0) at src/libsystemd/sd-event/sd-event.c:2629
#10 sd_event_run (timeout=18446744073709551615, e=<optimized out>) at src/libsystemd/sd-event/sd-event.c:2688
#11 sd_event_loop (e=<optimized out>) at src/libsystemd/sd-event/sd-event.c:2708
#12 main (argc=<optimized out>, argv=<optimized out>) at src/resolve/resolved.c:98
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment