Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2024 03:45:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        go@FreeBSD.org
Subject:   [Bug 283314] lang/go building go app immediately fails at compile "unexpected return pc for cmd/compile/internal/ssa.Compile"
Message-ID:  <bug-283314-42334-SW3dyRYoxJ@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-283314-42334@https.bugs.freebsd.org/bugzilla/>
References:  <bug-283314-42334@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283314

--- Comment #2 from Mike Watkins <git@mikewatkins.ca> ---
Even using Go's own installation mechanism for itself will fail.

=E2=9D=AF 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: inval=
id
memory address or nil pointer dereference

Clear the cache and try again:

=E2=9D=AF rm -rf ~/.cache/go-build
[I] mw@bugs ~=20
=E2=9D=AF 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 ca=
lled
from 0xf40566bb51bfac66
stack: frame=3D{sp:0x86cf0daf0, fp:0x86cf0daf8} stack=3D[0x86cf06000,0x86cf=
0e000)

Whereas with the DEBUG flag define, it succeeds:

=E2=9D=AF GODEBUG=3Dasyncpreemptoff=3D1  go install golang.org/dl/go1.23.4@=
latest
=E2=9D=AF ~/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.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-283314-42334-SW3dyRYoxJ>