Skip to content

Instantly share code, notes, and snippets.

@elindsey
Created September 7, 2023 19:24
Show Gist options
  • Save elindsey/3959c40c20360d41a49f0bd3e6b5074b to your computer and use it in GitHub Desktop.
Save elindsey/3959c40c20360d41a49f0bd3e6b5074b to your computer and use it in GitHub Desktop.
(gdb) bt
#0 0x0000000000478186 in ?? ()
#1 0x0000000000476585 in runtime.morestack () at .goroot/1.21.1/src/runtime/asm_amd64.s:560
#2 0x000000000043a490 in runtime.netpoll (delay=<optimized out>, ~r0=...)
at .goroot/1.21.1/src/runtime/netpoll_kqueue.go:121
#3 0x000000000044633f in runtime.findRunnable (gp=<optimized out>, inheritTime=<optimized out>,
tryWakeP=<optimized out>) at .goroot/1.21.1/src/runtime/proc.go:3191
#4 0x0000000000448c56 in runtime.schedule () at .goroot/1.21.1/src/runtime/proc.go:3582
#5 runtime.park_m (gp=0xc000006ea0) at .goroot/1.21.1/src/runtime/proc.go:3745
#6 0x000000000047648e in runtime.mcall () at .goroot/1.21.1/src/runtime/asm_amd64.s:458
#7 0x0000000000000000 in ?? ()
(gdb) info f
Stack level 0, frame at 0xc00008ada8:
rip = 0x478186; saved rip = 0x476585
called by frame at 0xc00008adb0
Arglist at 0xc00008ad98, args:
Locals at 0xc00008ad98, Previous frame's sp is 0xc00008ada8
Saved registers:
rip at 0xc00008ada0
(gdb) info f 1
Stack frame at 0xc00008adb0:
rip = 0x476585 in runtime.morestack (.goroot/1.21.1/src/runtime/asm_amd64.s:560); saved rip = 0x43a490
called by frame at 0xc00008adb8, caller of frame at 0xc00008ada8
source language asm.
Arglist at 0xc00008ada0, args:
Locals at 0xc00008ada0, Previous frame's sp is 0xc00008adb0
Saved registers:
rip at 0xc00008ada8
(gdb) info f 2
Stack frame at 0xc00008adb8:
rip = 0x43a490 in runtime.netpoll (.goroot/1.21.1/src/runtime/netpoll_kqueue.go:121); saved rip = 0x44633f
called by frame at 0xc00008bf50, caller of frame at 0xc00008adb0
source language unknown.
Arglist at 0xc00008ada8, args: delay=<optimized out>, ~r0=...
Locals at 0xc00008ada8, Previous frame's sp is 0xc00008adb8
Saved registers:
rip at 0xc00008adb0
(gdb) info f 3
Stack frame at 0xc00008bf50:
rip = 0x44633f in runtime.findRunnable (.goroot/1.21.1/src/runtime/proc.go:3191); saved rip = 0x448c56
called by frame at 0xc00008bfb0, caller of frame at 0xc00008adb8
source language unknown.
Arglist at 0xc00008adb0, args: gp=<optimized out>, inheritTime=<optimized out>, tryWakeP=<optimized out>
Locals at 0xc00008adb0, Previous frame's sp is 0xc00008bf50
Saved registers:
rip at 0xc00008bf48
(gdb) info f 4
Stack frame at 0xc00008bfb0:
rip = 0x448c56 in runtime.schedule (.goroot/1.21.1/src/runtime/proc.go:3582); saved rip = 0x47648e
inlined into frame 5, caller of frame at 0xc00008bf50
source language unknown.
Arglist at unknown address.
Locals at unknown address, Previous frame's sp is 0xc00008bf50
Saved registers:
rip at 0xc00008bf48
(gdb) info f 5
Stack frame at 0xc00008bfb0:
rip = 0x448c56 in runtime.park_m (.goroot/1.21.1/src/runtime/proc.go:3745); saved rip = 0x47648e
called by frame at 0xc00008bfc8, caller of frame at 0xc00008bfb0
source language unknown.
Arglist at 0xc00008bf48, args: gp=0xc000006ea0
Locals at 0xc00008bf48, Previous frame's sp is 0xc00008bfb0
Saved registers:
rip at 0xc00008bfa8
(gdb) info f 6
Stack frame at 0xc00008bfc8:
rip = 0x47648e in runtime.mcall (.goroot/1.21.1/src/runtime/asm_amd64.s:458); saved rip = 0x0
called by frame at 0xc00008bfd0, caller of frame at 0xc00008bfb0
source language asm.
Arglist at 0x94c5ce, args:
Locals at 0x94c5ce, Previous frame's sp is 0xc00008bfc8
Saved registers:
rip at 0xc00008bfc0
(gdb) info f 7
Stack frame at 0xc00008bfd0:
rip = 0x0; saved rip = 0x0
caller of frame at 0xc00008bfc8
Arglist at 0xc00008bfc0, args:
Locals at 0xc00008bfc0, Previous frame's sp is 0xc00008bfd0
Saved registers:
rip at 0xc00008bfc8
(gdb) x/10a $r14
0xc0000071e0: 0xc00008a000 0xc00008c000
0xc0000071f0: 0xc00008a3a0 0xc00008a3a0
0xc000007200: 0x0 0x0
0xc000007210: 0xc000080800 0xc00008bfb8
0xc000007220: 0x443416 <runtime.mstart0+118> 0xc0000071e0
(gdb) p $sp
$1 = (void *) 0xc00008ada0
(gdb) f 2
#2 0x000000000043a490 in runtime.netpoll (delay=<optimized out>, ~r0=...)
at .goroot/1.21.1/src/runtime/netpoll_kqueue.go:121
121 .goroot/1.21.1/src/runtime/netpoll_kqueue.go: No such file or directory.
(gdb) p $sp
$2 = (void *) 0xc00008adb0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment