Skip to content

Instantly share code, notes, and snippets.

@robcza
Created November 19, 2019 07:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robcza/5cfee5d46fe3af22c0f1512e680f83fd to your computer and use it in GitHub Desktop.
Save robcza/5cfee5d46fe3af22c0f1512e680f83fd to your computer and use it in GitHub Desktop.
prefill core dump
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 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-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"...
Reading symbols from /usr/sbin/kresd...done.
[New LWP 21]
[New LWP 23]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/kresd -f 1 -c /etc/kres/kres.conf /tty/'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007fe421afcea1 in knot_dname_is_equal (
d1=0x694092372 <error: Cannot access memory at address 0x694092372>,
d2=d2@entry=0x564d945adc2c "") at libknot/dname.c:648
648 libknot/dname.c: No such file or directory.
[Current thread is 1 (Thread 0x7fe420ca5dc0 (LWP 21))]
(gdb) bt full
#0 0x00007fe421afcea1 in knot_dname_is_equal (
d1=0x694092372 <error: Cannot access memory at address 0x694092372>,
d2=d2@entry=0x564d945adc2c "") at libknot/dname.c:648
No locals.
#1 0x00007fe421b552e0 in check_signer (pkt=0x564d94a30d28, ctx=0x7ffe06663930)
at ../lib/layer/validate.c:709
req = <optimized out>
qry = <optimized out>
ta_name = <optimized out>
signer = 0x564d945adc2c ""
req = <optimized out>
qry = <optimized out>
ta_name = <optimized out>
signer = <optimized out>
qtype = <optimized out>
qname = <optimized out>
q = <optimized out>
rplan = <optimized out>
next = <optimized out>
_qry = <optimized out>
rplan = <optimized out>
next = <optimized out>
#2 validate (ctx=0x7ffe06663930, pkt=0x564d94a30d28)
at ../lib/layer/validate.c:965
ret = 0
req = <optimized out>
qry = <optimized out>
pkt_rcode = <optimized out>
use_signatures = true
qtype = 48
has_nsec3 = false
an = 0x564d94a30d80
referral = <optimized out>
#3 0x00007fe421b59cee in kr_resolve_consume (request=request@entry=0x564d945ac350, src=src@entry=0x0, packet=packet@entry=0x564d94a30d28) at ../lib/resolve.c:933
layer = {state = 4, req = 0x564d945ac350, api = 0x7fe421b6dca0 <layer>, pkt = 0x0, dst = 0x0, is_stream = false}
mod = <optimized out>
i = 2
qname_raw = <optimized out>
rplan = 0x564d945ac400
qry = 0x564d945ad7f0
tried_tcp = false
#4 0x0000564d934bcd67 in zi_rrset_import (z_import=z_import@entry=0x564d940f9b90, rr=rr@entry=0x564d94625600) at ../daemon/zimport.c:440
query = <optimized out>
pool = <optimized out>
dname = <optimized out>
rrtype = <optimized out>
rrclass = <optimized out>
answer = 0x564d94a30d28
options = {NO_MINIMIZE = true, NO_THROTTLE = false, NO_IPV6 = false, NO_IPV4 = false, TCP = false, RESOLVED = false, AWAIT_IPV4 = false, AWAIT_IPV6 = false, AWAIT_CUT = false, SAFEMODE = false, CACHED = false, NO_CACHE = false, EXPIRING = false, ALLOW_LOCAL = false, DNSSEC_WANT = true, DNSSEC_BOGUS = false, DNSSEC_INSECURE = false, DNSSEC_CD = false, STUB = false, ALWAYS_CUT = false, DNSSEC_WEXPAND = false, PERMISSIVE = false, STRICT = false, BADCOOKIE_AGAIN = false, CNAME = false, REORDER_RR = false, TRACE = false, NO_0X20 = false, DNSSEC_NODS = false, DNSSEC_OPTOUT = false, NONAUTH = false, FORWARD = false, DNS64_MARK = false, CACHE_TRIED = false, NO_NS_FOUND = false, PKT_IS_SANE = false}
task = 0x564d945ac4d0
request = 0x564d945ac350
rplan = 0x564d945ac400
qry = <optimized out>
state = 8
origin_is_owner = <optimized out>
is_referral = <optimized out>
msgid = 20403
err = <optimized out>
#5 0x0000564d934bd134 in zi_zone_process (handle=<optimized out>) at ../daemon/zimport.c:521
z_import = 0x564d940f9b90
__PRETTY_FUNCTION__ = "zi_zone_process"
failed = 0
ns_imported = 0
other_imported = 0
zone_name_str = ".\000\263!\344\177\000\000\325.J\223MV\000\000W<\353{\000\000\000\000\270!J\223MV\000\000\361\254\357\001\000\000\000\000\020=f\006\376\177\000\000\000=f\006\376\177\000\000H<f\006\376\177\000\000p\276\373 \344\177\000\000\031", '\000' <repeats 23 times>, "\235Af\006\376\177\000\000W<\353{\000\000\000\000\360\344\272!\344\177\000\000\250=f\006\376\177\000\000\220\341\272!\344\177", '\000' <repeats 18 times>, "\217\363\270!\344\177\000\000\001", '\000' <repeats 15 times>, "\005", '\000' <repeats 15 times>, "\001\000\000\000\000\000\000\000"...
key = "000010004800048\000\240\200@\224MV\000\000\000\200@\224MV\000\000\250\271@\224MV\000\000\002", '\000' <repeats 15 times>, "\320\200@\224MV\000\000\000\200@\224MV\000\000~\361\257!\344\177\000\000\240\200@\224MV\000\000\250\271@\224\002\000\000\000\210\240@\224MV\000\000@\241@\224MV\000\000\002\000\000\000\000\000\000\000\024\000\000\000\000\000\000\000\020~@\224MV\000\000\345\260\265!\344\177\000\000\200;f\006\376\177\000\000\035\346\270!\344\177\000\000\001\000\000\000\000\000\000\000\376\000\000\000\000\000\000\000\000\360\267!\344\177\000\000\001\000\000\000\000\000\000\000\220\206\263!\344\177\000\000"...
err = <optimized out>
rr_key = 0x564d94625600
kname_str = ".\000\241A\001\000\000\000\360\266\241A\000\000\000\000\000@f\006\376\177\000\000\001\000\060\000\000\000E0\002\000\000\000\000\000\000\000\356\000\000\000\000\000\000\200", '\000' <repeats 56 times>, "\200\367\264!\344\177\000\000\000\000\000\000\000\t_ta-4f>\000\000\000\340@f\006\376\177\000\000\334@f\006\376\177\000\000\000\064f66\000\000E\000\302\017\224MV\000\000\000\302\v\224MV\000\000\000\302\v\224MV\000\000\000\302\v\224MV\000\000Y\364\264!\344\177\000\000\070\373\016\224MV\000\000"...
ktype_str = "DNSKEY\000\000\360\200@\224MV\000\000"
res = <optimized out>
elapsed = <optimized out>
import_state = <optimized out>
#6 0x00007fe421aafcb8 in uv.run_timers () from /usr/lib/x86_64-linux-gnu/libuv.so.1
No symbol table info available.
#7 0x00007fe421ab3ef5 in uv_run () from /usr/lib/x86_64-linux-gnu/libuv.so.1
No symbol table info available.
#8 0x0000564d934aaa45 in run_worker (engine=0x564d934cfe60 <engine>, args=0x7ffe06664920, leader=<optimized out>, ipc_set=0x7ffe066648e0, loop=0x7fe421acf240) at ../daemon/main.c:454
sock_file = <optimized out>
pipe = {data = 0x7ffe06664920, loop = 0x7fe421acf240, type = UV_NAMED_PIPE, close_cb = 0x0, handle_queue = {0x564d940f9be8, 0x564d94406790}, u = {fd = 0, reserved = {0x0, 0x0, 0x0, 0x0}}, next_closing = 0x0, flags = 8204, write_queue_size = 0, alloc_cb = 0x0, read_cb = 0x0, connect_req = 0x0, shutdown_req = 0x0, io_watcher = {cb = 0x7fe421abdd40 <uv.server_io>, pending_queue = {0x7ffe06664b60, 0x7ffe06664b60}, watcher_queue = {0x7ffe06664b70, 0x7ffe06664b70}, pevents = 1, events = 1, fd = 22}, write_queue = {0x7ffe06664b90, 0x7ffe06664b90}, write_completed_queue = {0x7ffe06664ba0, 0x7ffe06664ba0}, connection_cb = 0x564d934b24f0 <tty_accept>, delayed_error = 0, accepted_fd = -1, queued_fds = 0x0, ipc = 0, pipe_fname = 0x564d940a6880 "tty/21"}
sock_file = <optimized out>
pipe = <optimized out>
pipe_ret = <optimized out>
i = <optimized out>
#9 main (argc=<optimized out>, argv=<optimized out>) at ../daemon/main.c:851
args = {addrs = {at = 0x0, len = 0, cap = 0}, addrs_tls = {at = 0x0, len = 0, cap = 0}, fds = {at = 0x0, len = 0, cap = 0}, control_fd = -1, forks = 1, config = 0x7ffe06665c9a "/etc/kres/kres.conf", rundir = 0x7ffe06665cae "/tty/", interactive = false, quiet = false, tty_binary_output = false}
ret = <optimized out>
ipc_set = {at = 0x0, len = 0, cap = 0}
fork_id = <optimized out>
pool = {ctx = 0x564d940bb020, alloc = 0x564d934c0770 <mp_alloc>, free = 0x0}
engine = {resolver = {options = {NO_MINIMIZE = false, NO_THROTTLE = false, NO_IPV6 = true, NO_IPV4 = false, TCP = false, RESOLVED = false, AWAIT_IPV4 = false, AWAIT_IPV6 = false, AWAIT_CUT = false, SAFEMODE = false, CACHED = false, NO_CACHE = false, EXPIRING = false, ALLOW_LOCAL = false, DNSSEC_WANT = false, DNSSEC_BOGUS = false, DNSSEC_INSECURE = false, DNSSEC_CD = false, STUB = false, ALWAYS_CUT = false, DNSSEC_WEXPAND = false, PERMISSIVE = false, STRICT = false, BADCOOKIE_AGAIN = false, CNAME = false, REORDER_RR = false, TRACE = false, NO_0X20 = false, DNSSEC_NODS = false, DNSSEC_OPTOUT = false, NONAUTH = false, FORWARD = false, DNS64_MARK = false, CACHE_TRIED = false, NO_NS_FOUND = false, PKT_IS_SANE = false}, opt_rr = 0x564d940bb090, trust_anchors = {root = 0x564d940a0ae0, pool = 0x0}, negative_anchors = {root = 0x0, pool = 0x0}, root_hints = {name = 0x564d940bb100 "", key = 0x0, trust_anchor = 0x0, parent = 0x0, nsset = 0x564d940bb108, pool = 0x7ffe06664900}, cache = {db = 0x564d940f4f30, api = 0x7fe421b6dc00 <api>, stats = {open = 1, close = 0, count = 0, clear = 0, commit = 46, read = 1397, read_miss = 243, write = 71, remove = 0, remove_miss = 0, match = 0, match_miss = 0, read_leq = 0, read_leq_miss = 0}, ttl_min = 5, ttl_max = 518400, checkpoint_walltime = {tv_sec = 1574146861, tv_usec = 585435}, checkpoint_monotime = 8938653991}, cache_rtt = 0x7fe420aa4040, cache_rtt_tout_retry_interval = 1000, cache_rep = 0x7fe420a23040, modules = 0x564d934d0040 <engine+480>, cookie_ctx = {clnt = {enabled = false, current = {secr = 0x0, alg_id = 0}, recent = {secr = 0x0, alg_id = 0}}, srvr = {enabled = false, current = {secr = 0x0, alg_id = 0}, recent = {secr = 0x0, alg_id = 0}}}, cache_cookie = 0x564d940bc040, tls_padding = -1, pool = 0x7ffe06664900}, net = {loop = 0x7fe421acf240, endpoints = {root = 0x564d940a4dc1, pool = 0x0}, endpoint_kinds = 0x564d940bc190, missing_kind_is_error = true, tls_credentials = 0x0, tls_client_params = 0x0, tls_session_ticket_ctx = 0x564d940bc540, tcp = {in_idle_timeout = 10000, tls_handshake_timeout = 6000}, tcp_backlog = 511}, modules = {at = 0x564d940f6be0, len = 20, cap = 20}, backends = {at = 0x564d940bc370, len = 1, cap = 5}, ipc_set = {at = 0x0, len = 0, cap = 0}, pool = 0x7ffe06664900, hostname = 0x0, L = 0x41a00378}
loop = 0x7fe421acf240
sigint = {data = 0x0, loop = 0x7fe421acf240, type = UV_SIGNAL, close_cb = 0x7fe421654c40 <main_arena>, handle_queue = {0x7ffe06664a50, 0x564d940bc560}, u = {fd = 576, reserved = {0x240, 0x0, 0xe8, 0x0}}, next_closing = 0x0, flags = 12, signal_cb = 0x564d934b24b0 <signal_handler>, signum = 2, tree_entry = {rbe_left = 0x0, rbe_right = 0x7ffe06664a30, rbe_parent = 0x0, rbe_color = 0}, caught_signals = 0, dispatched_signals = 0}
sigterm = {data = 0x0, loop = 0x7fe421acf240, type = UV_SIGNAL, close_cb = 0x0, handle_queue = {0x564d940bf210, 0x7ffe066649b0}, u = {fd = 232, reserved = {0xe8, 0xd, 0xffffffffffffff80, 0x1fbf}}, next_closing = 0x0, flags = 12, signal_cb = 0x564d934b24b0 <signal_handler>, signum = 15, tree_entry = {rbe_left = 0x0, rbe_right = 0x0, rbe_parent = 0x7ffe06664990, rbe_color = 1}, caught_signals = 0, dispatched_signals = 0}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment