[Bug 283314] lang/go building go app immediately fails at compile "unexpected return pc for cmd/compile/internal/ssa.Compile"
Date: Sun, 15 Dec 2024 03:45:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283314 --- Comment #2 from Mike Watkins <git@mikewatkins.ca> --- Even using Go's own installation mechanism for itself will fail. ❯ go install golang.org/dl/go1.23.4@latest warning: GOPATH set to GOROOT (/home/mw/go) has no effect # crypto/x509 <unknown line number>: internal compiler error: panic: runtime error: invalid memory address or nil pointer dereference Clear the cache and try again: ❯ rm -rf ~/.cache/go-build [I] mw@bugs ~ ❯ go install golang.org/dl/go1.23.4@latest warning: GOPATH set to GOROOT (/home/mw/go) has no effect # os/user runtime: g 32: unexpected return pc for cmd/compile/internal/ssa.Compile called from 0xf40566bb51bfac66 stack: frame={sp:0x86cf0daf0, fp:0x86cf0daf8} stack=[0x86cf06000,0x86cf0e000) Whereas with the DEBUG flag define, it succeeds: ❯ GODEBUG=asyncpreemptoff=1 go install golang.org/dl/go1.23.4@latest ❯ ~/go/bin/go version go version go1.23.4 freebsd/amd64 Disabling asyncpreempt is probably not the answer but this is beyond my Go expertise. -- You are receiving this mail because: You are the assignee for the bug.