Go version
go 1.26.5, go 1.25.12, tip
Output of go env in your module/workspace:
What did you do?
Note, this was originally reported to security@golang.org, but the policy has changed and I was told to create a public issue.
package main
//go:noinline
func faultAt(p *[1 << 32]byte) byte {
return p[0xdeadbeef] + p[0]
}
func main() {
defer func() { recover() }()
_ = faultAt(nil)
}
What did you see happen?
$ go run .
unexpected fault address 0xdeadbeef
fatal error: fault
[signal SIGSEGV: segmentation violation code=0x1 addr=0xdeadbeef pc=0x47a785]
What did you expect to see?
No SIGSEGV (doesn't happen on unoptimized builds).
Go version
go 1.26.5, go 1.25.12, tip
Output of
go envin your module/workspace:What did you do?
Note, this was originally reported to security@golang.org, but the policy has changed and I was told to create a public issue.
What did you see happen?
What did you expect to see?
No SIGSEGV (doesn't happen on unoptimized builds).