Slide 22
Slide 22 text
2017/8/31 Debugging Go with GDB
http://go-talks.appspot.com/github.com/Kooooya/slides/2017/0827_golang_tokyo/gdb.slide#1 22/28
info command
goroutine
一覧
(gdb) info goroutines
* 1 running syscall.Syscall6 ← * 先頭 現在実行中
2 waiting runtime.gopark
3 waiting runtime.gopark
4 waiting runtime.gopark
(gdb) goroutine 3 bt
#0 runtime.gopark (unlockf={void (struct runtime.g *, void *, bool *)} 0xc420024f38, lock=0xf7d80 , reason="GC sweep wait", traceEv
at /usr/local/go/src/runtime/proc.go:265
#2 0x000000000001baa6 in runtime.bgsweep (c=0xc42004c000) at /usr/local/go/src/runtime/mgcsweep.go:63
#3 0x00000000000517e1 in runtime.goexit () at /usr/local/go/src/runtime/asm_amd64.s:2086
#4 0x000000c42004c000 in ?? ()
#5 0x0000000000000000 in ?? ()
(gdb) goroutine 3 info locals
mp = 0xc42002a800
gp = 0xc420000b60