# gdb ./systemd-timesyncd GNU gdb (GDB) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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-unknown-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: . Find the GDB manual and other documentation resources online at: . For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from ./systemd-timesyncd...done. (gdb) run Starting program: /home/dcoppa/Arch/hacking/systemd/src/systemd-216/systemd-timesyncd warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff30ce700 (LWP 8878)] Using NTP server 193.204.114.105:123 (193.204.114.105). Program received signal SIGSEGV, Segmentation fault. 0x0000555555571b3d in manager_connect (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:903 903 r = sd_resolve_getaddrinfo(m->resolve, &m->resolve_query, m->current_server_name->string, "123", &hints, manager_resolve_handler, m); (gdb) bt #0 0x0000555555571b3d in manager_connect (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:903 #1 0x00005555555885ee in manager_send_request.lto_priv.92 (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:203 #2 0x000055555557ce89 in manager_begin.lto_priv.90 (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:734 #3 0x0000555555573330 in manager_resolve_handler (q=, ret=, ai=0x0, userdata=0x61400000fc40) at src/timesync/timesyncd-manager.c:818 #4 0x0000555555574a6c in res_query_done (q=) at src/libsystemd/sd-resolve/sd-resolve.c:1265 #5 complete_query (resolve=resolve@entry=0x61d00001ea80, q=0x60b00000ae30) at src/libsystemd/sd-resolve/sd-resolve.c:768 #6 0x000055555557575b in handle_response (length=, packet=, resolve=) at src/libsystemd/sd-resolve/sd-resolve.c:956 #7 sd_resolve_process (resolve=) at src/libsystemd/sd-resolve/sd-resolve.c:990 #8 0x0000555555577951 in io_callback.lto_priv.96 (s=, fd=, revents=, userdata=) at src/libsystemd/sd-resolve/sd-resolve.c:1380 #9 0x000055555556c4fa in source_dispatch.lto_priv.60 (s=0x611000009c80) at src/libsystemd/sd-event/sd-event.c:2035 #10 0x0000555555586450 in sd_event_run.constprop.32 (e=0x61500000fd00, timeout=) at src/libsystemd/sd-event/sd-event.c:2333 #11 0x0000555555565f75 in sd_event_loop (e=) at src/libsystemd/sd-event/sd-event.c:2352 #12 main (argc=, argv=) at src/timesync/timesyncd.c:143 (gdb) bt full #0 0x0000555555571b3d in manager_connect (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:903 r = __PRETTY_FUNCTION__ = "manager_connect" __func__ = "manager_connect" #1 0x00005555555885ee in manager_send_request.lto_priv.92 (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:203 len = r = __PRETTY_FUNCTION__ = "manager_send_request" __func__ = "manager_send_request" #2 0x000055555557ce89 in manager_begin.lto_priv.90 (m=m@entry=0x61400000fc40) at src/timesync/timesyncd-manager.c:734 r = 0 __PRETTY_FUNCTION__ = "manager_begin" __func__ = "manager_begin" #3 0x0000555555573330 in manager_resolve_handler (q=, ret=, ai=0x0, userdata=0x61400000fc40) at src/timesync/timesyncd-manager.c:818 m = 0x61400000fc40 __PRETTY_FUNCTION__ = "manager_resolve_handler" __func__ = "manager_resolve_handler" #4 0x0000555555574a6c in res_query_done (q=) at src/libsystemd/sd-resolve/sd-resolve.c:1265 No locals. #5 complete_query (resolve=resolve@entry=0x61d00001ea80, q=0x60b00000ae30) at src/libsystemd/sd-resolve/sd-resolve.c:768 r = __PRETTY_FUNCTION__ = "complete_query" #6 0x000055555557575b in handle_response (length=, packet=, resolve=) at src/libsystemd/sd-resolve/sd-resolve.c:956 res_resp = resp = #7 sd_resolve_process (resolve=) at src/libsystemd/sd-resolve/sd-resolve.c:990 _dont_destroy_resolve = 0x61d00001ea80 __PRETTY_FUNCTION__ = "sd_resolve_process" #8 0x0000555555577951 in io_callback.lto_priv.96 (s=, fd=, revents=, userdata=) at src/libsystemd/sd-resolve/sd-resolve.c:1380 resolve = r = __PRETTY_FUNCTION__ = "io_callback" #9 0x000055555556c4fa in source_dispatch.lto_priv.60 (s=0x611000009c80) at src/libsystemd/sd-event/sd-event.c:2035 r = __PRETTY_FUNCTION__ = "source_dispatch" __func__ = "source_dispatch" #10 0x0000555555586450 in sd_event_run.constprop.32 (e=0x61500000fd00, timeout=) at src/libsystemd/sd-event/sd-event.c:2333 ev_queue = 0x7fffffffda80 p = r = i = m = 1 timedout = false #11 0x0000555555565f75 in sd_event_loop (e=) at src/libsystemd/sd-event/sd-event.c:2352 r = #12 main (argc=, argv=) at src/timesync/timesyncd.c:143 m = 0x61400000fc40 user = uid = gid = r = __func__ = "main" __PRETTY_FUNCTION__ = "main" (gdb) quit A debugging session is active. Inferior 1 [process 8874] will be killed. Quit anyway? (y or n) y