You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cmd/compile: plan9/amd64 programs crash since CL 801860 #80709
CL 548317 changed the epilogue of Go functions on AMD64 to restore SP from BP with the LEAVE instruction. It was reverted in CL 801740, then relanded in CL 801860.
However, on Plan 9, BP holds the system call number, and the system call stubs are frameless, so neither the assembler nor the kernel restores it. A function making a system call now returns with a system call number in SP, and jumps to an arbitrary address.
Since then, no plan9/amd64 program built by the toolchain runs. Running make.rc stops as soon as the new compiler has produced one:
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
Building Go toolchain2 using go_bootstrap and Go toolchain1.
go_bootstrap 3276: suicide: sys: trap: fault read addr=0x17 pc=0x17
The crash happens before the note handler is installed, so the kernel reports it rather than the Go runtime. The gotip-plan9-amd64 builder has produced no result since 22 July.
plan9/386 is not affected, since the 386 port has no frame pointer.
Activity
0intro commentedon Aug 4, 2026
Will be fixed by #80710.
gopherbot commentedon Aug 4, 2026
Change https://go.dev/cl/809960 mentions this issue:
cmd/internal/obj/x86: fix breaking change in ABI0 NOFRAME BP expectationsgabyhelp commentedon Aug 4, 2026
Related Issues
Related Code Changes
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
cmd/internal/obj/x86: fix breaking change in ABI0 NOFRAME BP expectat…