Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/link: crossbuild panic GOOS=openbsd GOARCH=mips64 #58596

Closed
sylr opened this issue Feb 19, 2023 · 2 comments
Closed

cmd/link: crossbuild panic GOOS=openbsd GOARCH=mips64 #58596

sylr opened this issue Feb 19, 2023 · 2 comments
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge

Comments

@sylr
Copy link

sylr commented Feb 19, 2023

What version of Go are you using (go version)?

$ go version
1.20.1

Does this issue reproduce with the latest release?

What operating system and processor architecture are you using (go env)?

go env Output
$ go env

What did you do?

See https://github.com/sylr/yage/actions/runs/4217364884/jobs/7321088119

CGO_ENABLED=0 GOOS=linux GOARCH=mips64 /opt/hostedtoolcache/go/1.20.1/x64/bin/go build -tags static,crossbuild -trimpath -ldflags '-s -w -X sylr.dev/yage/v2/cmd.Version=v1.2.0-11-g9d89744 -extldflags ""' -o dist/yage-v1.2.0-11-g9d89744-linux-mips64
CGO_ENABLED=0 GOOS=openbsd GOARCH=mips64 /opt/hostedtoolcache/go/1.20.1/x64/bin/go build -tags static,crossbuild -trimpath -ldflags '-s -w -X sylr.dev/yage/v2/cmd.Version=v1.2.0-11-g9d89744 -extldflags ""' -o dist/yage-v1.2.0-11-g9d89744-openbsd-mips64
# sylr.dev/yage/v2
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x55f086]

goroutine 1 [running]:
cmd/link/internal/ld.dynrelocsym(0xc000106000, 0x7f5cfb7c85a7?)
	/usr/local/go/src/cmd/link/internal/ld/data.go:917 +0x306
cmd/link/internal/ld.(*dodataState).dynreloc(0xc00074e500, 0xc000106000)
	/usr/local/go/src/cmd/link/internal/ld/data.go:935 +0x9b
cmd/link/internal/ld.(*Link).dodata(0xc000106000, {0xc001c80000, 0x2bd55, 0x2bd55})
	/usr/local/go/src/cmd/link/internal/ld/data.go:1566 +0x45d
cmd/link/internal/ld.Main(_, {0x8, 0x20, 0x1, 0x1d, 0x1f, 0x0, {0x0, 0x0}, {0x68cee3, ...}, ...})
	/usr/local/go/src/cmd/link/internal/ld/main.go:338 +0x153b
main.main()
	/usr/local/go/src/cmd/link/main.go:72 +0xedb
make: *** [Makefile:184: dist/yage-v1.2.0-11-g9d89744-openbsd-mips64] Error 1
Error: Process completed with exit code 2.

What did you expect to see?

What did you see instead?

@gopherbot gopherbot added the compiler/runtime Issues related to the Go compiler and/or runtime. label Feb 19, 2023
@sylr sylr changed the title cmd/link: crossbuild pani cmd/link: crossbuild panic GOOS=openbsd GOARCH=mips64 Feb 19, 2023
@ianlancetaylor
Copy link
Contributor

CC @thanm @cherrymui @golang/mips

@thanm
Copy link
Contributor

thanm commented Feb 21, 2023

This is a dup of #58240.

@thanm thanm closed this as completed Feb 21, 2023
@golang golang locked and limited conversation to collaborators Feb 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
compiler/runtime Issues related to the Go compiler and/or runtime. FrozenDueToAge
Projects
None yet
Development

No branches or pull requests

4 participants