Skip to content

Instantly share code, notes, and snippets.

@dminuoso
Created March 14, 2023 16:47
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 dminuoso/9785a1799216d8d376cf6f4d7d56795e to your computer and use it in GitHub Desktop.
Save dminuoso/9785a1799216d8d376cf6f4d7d56795e to your computer and use it in GitHub Desktop.
[nix-shell:/home/vnawothnig]# gdb --args /nix/store/1bdpnx05w94m6pf184b79k9w5d7bkayc-powerdns-gerd-exe-powerdns-gerd-x86_64-unknown-linux-musl-0.1.1/bin/powerdns-gerd +RTS -V0 -RTS server -c /nix/store/6rpbsdv7lk4f17xjyg34i65imxhan2j0-powerdns-gerd-config
GNU gdb (GDB) 12.1
Copyright (C) 2022 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-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 /nix/store/1bdpnx05w94m6pf184b79k9w5d7bkayc-powerdns-gerd-exe-powerdns-gerd-x86_64-unknown-linux-musl-0.1.1/bin/powerdns-gerd...
(gdb) run
Starting program: /nix/store/1bdpnx05w94m6pf184b79k9w5d7bkayc-powerdns-gerd-exe-powerdns-gerd-x86_64-unknown-linux-musl-0.1.1/bin/powerdns-gerd +RTS -V0 -RTS server -c /nix/store/6rpbsdv7lk4f17xjyg34i65imxhan2j0-powerdns-gerd-config
[New LWP 801119]
[New LWP 801120]
[New LWP 801121]
^C
Thread 1 "powerdns-gerd" received signal SIGINT, Interrupt.
0x0000000000b1be2f in sccp ()
(gdb) thread apply all bt
Thread 4 (LWP 801121 "powerdns-gerd:w"):
#0 0x0000000000b1be2f in sccp ()
#1 0x0000000000b2527a in __timedwait_cp ()
#2 0x0000000000b1c1ab in pthread_cond_timedwait ()
#3 0x0000000000ab9fa9 in waitCondition (pCond=pCond@entry=0x7ffff7fe6730, pMut=pMut@entry=0x7ffff7fe6768) at rts/posix/OSThreads.c:139
#4 0x0000000000a9af7b in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:706
#5 yieldCapability (pCap=pCap@entry=0x7ffff7f87a28, task=task@entry=0x7ffff7fe6720, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
#6 0x0000000000aa211d in scheduleYield (task=0x7ffff7fe6720, pcap=0x7ffff7f87a20) at rts/Schedule.c:705
#7 schedule (initialCapability=initialCapability@entry=0xcd3a40 <MainCapability>, task=task@entry=0x7ffff7fe6720) at rts/Schedule.c:315
#8 0x0000000000aa2f9d in scheduleWorker (cap=cap@entry=0xcd3a40 <MainCapability>, task=task@entry=0x7ffff7fe6720) at rts/Schedule.c:2645
#9 0x0000000000aa8222 in workerStart (task=0x7ffff7fe6720) at rts/Task.c:445
#10 0x0000000000b1c8cf in start ()
#11 0x0000000000b1d99c in __clone ()
#12 0x0000000000000000 in ?? ()
Thread 3 (LWP 801120 "powerdns-gerd:w"):
#0 0x0000000000b1be2f in sccp ()
#1 0x0000000000b17ca7 in poll ()
#2 0x0000000000a7c90b in ?? ()
#3 0x0000000000000000 in ?? ()
Thread 2 (LWP 801119 "powerdns-gerd:w"):
#0 0x0000000000b1be2f in sccp ()
#1 0x0000000000b09108 in epoll_pwait ()
#2 0x0000000000a763cd in base_GHCziEventziEPoll_new10_info ()
#3 0x0000000000000000 in ?? ()
Thread 1 (LWP 801116 "powerdns-gerd"):
#0 0x0000000000b1be2f in sccp ()
#1 0x0000000000b2527a in __timedwait_cp ()
#2 0x0000000000b1c1ab in pthread_cond_timedwait ()
#3 0x0000000000ab9fa9 in waitCondition (pCond=pCond@entry=0x7ffff7fe6250, pMut=pMut@entry=0x7ffff7fe6288) at rts/posix/OSThreads.c:139
#4 0x0000000000a9af7b in waitForWorkerCapability (task=<optimized out>) at rts/Capability.c:706
#5 yieldCapability (pCap=pCap@entry=0x7fffffffbe88, task=task@entry=0x7ffff7fe6240, gcAllowed=gcAllowed@entry=true) at rts/Capability.c:1011
#6 0x0000000000aa211d in scheduleYield (task=0x7ffff7fe6240, pcap=0x7fffffffbe80) at rts/Schedule.c:705
#7 schedule (initialCapability=initialCapability@entry=0xcd3a40 <MainCapability>, task=task@entry=0x7ffff7fe6240) at rts/Schedule.c:315
#8 0x0000000000aa2f6d in scheduleWaitThread (tso=0x4200406ce8, ret=ret@entry=0x0, pcap=pcap@entry=0x7fffffffbf18) at rts/Schedule.c:2628
#9 0x0000000000a9d3ca in rts_evalLazyIO (cap=cap@entry=0x7fffffffbf18, p=p@entry=0xbf9110, ret=ret@entry=0x0) at rts/RtsAPI.c:566
#10 0x0000000000a9fc5d in hs_main (argc=<optimized out>, argv=<optimized out>, main_closure=0xbf9110, rts_config=...) at rts/RtsMain.c:72
#11 0x0000000000400af2 in main ()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment