Closed
Description
Just saw this TestGdbPython flake on linux-amd64:
https://storage.googleapis.com/go-build-log/149e81d1/linux-amd64_fd28318f.log
--- FAIL: TestGdbPython (3.49s)
runtime-gdb_test.go:59: gdb version 7.7
runtime-gdb_test.go:193: gdb output: Loading Go Runtime support.
Loaded Script
Yes /tmp/workdir/go/src/runtime/runtime-gdb.py
Breakpoint 1 at 0x47c190: file /tmp/workdir/go/src/fmt/print.go, line 263.
Breakpoint 1, fmt.Println (a=..., err=..., n=<optimized out>) at /tmp/workdir/go/src/fmt/print.go:263
263 func Println(a ...interface{}) (n int, err error) {
BEGIN info goroutines
* 1 running runtime.systemstack_switch
* 2 running runtime.forcegchelper
3 waiting runtime.gopark
4 runnable runtime.runfinq
END
#1 0x00000000004828a0 in main.main () at /tmp/go-build461513624/main.go:14
14 fmt.Println("hi")
BEGIN print mapvar
$1 = map[string]string = {["ghi"] = "jkl", ["abc"] = "def"}
END
BEGIN print strvar
$2 = "abc"
END
BEGIN info locals
mapvar = map[string]string = {["ghi"] = "jkl", ["abc"] = "def"}
slicevar = []string = {"def"}
strvar = "abc"
END
#0 fmt.Println (a=..., err=..., n=<optimized out>) at /tmp/workdir/go/src/fmt/print.go:263
263 func Println(a ...interface{}) (n int, err error) {
BEGIN goroutine 1 bt
#0 fmt.Println (a=..., err=..., n=<optimized out>) at /tmp/workdir/go/src/fmt/print.go:263
#1 0x00000000004828a0 in main.main () at /tmp/go-build461513624/main.go:14
END
BEGIN goroutine 2 bt
No such goroutine: 2
END
Breakpoint 2 at 0x4828cd: file /tmp/go-build461513624/main.go, line 18.
hi
Breakpoint 2, main.main () at /tmp/go-build461513624/main.go:19
19 } // END_OF_PROGRAM
BEGIN goroutine 1 bt at the end
#0 main.main () at /tmp/go-build461513624/main.go:19
END
runtime-gdb_test.go:258: goroutine 2 bt failed: No such goroutine: 2
FAIL
FAIL runtime 28.524s
/cc @aclements