Closed
Description
https://go-review.googlesource.com/c/go/+/147361 broke ppc64le.
https://build.golang.org/log/cee992f2c28faffaa1c9526349f4923f9cb16c83
##### GOMAXPROCS=2 runtime -cpu=1,2,4 -quick
--- FAIL: TestGdbPython (0.58s)
runtime-gdb_test.go:66: gdb version 7.7
runtime-gdb_test.go:213: gdb output: Loading Go Runtime support.
Loaded Script
Yes /tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/runtime-gdb.py
Breakpoint 1 at 0x92cac: file /tmp/go-build132537636/main.go, line 15.
hi
Breakpoint 1, main.main () at /tmp/go-build132537636/main.go:17
17 gslice = slicevar
BEGIN info goroutines
* 1 running syscall.Syscall
2 runnable runtime.forcegchelper
17 waiting runtime.gopark
18 runnable runtime.runfinq
END
BEGIN print mapvar
$1 = map[string]string = {["abc"] = "def", ["ghi"] = "jkl"}
END
BEGIN print strvar
$2 = "abc"
END
BEGIN info locals
mapvar = map[string]string = {["abc"] = "def", ["ghi"] = "jkl"}
strvar = "abc"
slicevar = []string
END
BEGIN goroutine 1 bt
#0 main.main () at /tmp/go-build132537636/main.go:17
END
BEGIN goroutine 2 bt
#0 runtime.forcegchelper () at /tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/proc.go:242
#1 0x0000000000092cac in fmt.Println (a=..., n=<optimized out>, err=...) at /tmp/workdir-host-linux-ppc64le-osu/go/src/fmt/print.go:275
#2 main.main () at /tmp/go-build132537636/main.go:14
Traceback (most recent call last):
File "/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/runtime-gdb.py", line 536, in invoke
gdb.parse_and_eval('$sp = $save_sp')
gdb.error: Attempt to assign to an unmodifiable value.
Error occurred in Python command: Attempt to assign to an unmodifiable value.
END
Breakpoint 2 at 0x92ce0: file /tmp/go-build132537636/main.go, line 18.
runtime: newstack sp=0xc000032fc0 stack=[0xc000064000, 0xc000065000]
morebuf={pc:0x92cac sp:0xc000032fc0 lr:0x0}
sched={pc:0x38bb4 sp:0xc000032fc0 lr:0x92cac ctxt:0x0}
runtime: gp=0xc000000180, goid=1, gp->status=0x2
runtime: split stack overflow: 0xc000032fc0 < 0xc000064000
fatal error: runtime: split stack overflow
runtime stack:
runtime.throw(0xd4b34, 0x1d)
/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/panic.go:608 +0x5c
runtime.newstack()
/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/stack.go:995 +0x7a4
runtime.morestack()
/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/asm_ppc64x.s:333 +0x60
goroutine 1 [running]:
runtime.forcegchelper()
/tmp/workdir-host-linux-ppc64le-osu/go/src/runtime/proc.go:242 +0x14 fp=0xc000032fc0 sp=0xc000032fc0 pc=0x38bb4
runtime: unexpected return pc for main.main called from 0x0
stack: frame={sp:0xc000032fc0, fp:0xc000033080} stack=[0xc000064000,0xc000065000)
fmt.Println(...)
/tmp/workdir-host-linux-ppc64le-osu/go/src/fmt/print.go:275
main.main()
/tmp/go-build132537636/main.go:14 +0x1ec fp=0xc000033080 sp=0xc000032fc0 pc=0x92cac
[Inferior 1 (process 11715) exited with code 02]
BEGIN goroutine 1 bt at the end
No such goroutine: 1
END
runtime-gdb_test.go:286: goroutine 1 bt at the end failed: No such goroutine: 1
FAIL
FAIL runtime 36.282s