Open
Description
What version of Go are you using (go version
)?
581a822 in the Go 1.20 development tree
What operating system and processor architecture are you using (go env
)?
netbsd/arm, observed on the trybots for CL 448016 PS 2
What did you do?
I've been enabling dist tests for cgo on more architectures where it's not clear why they're disabled. One of the misc/cgo/testtls static build configurations crashes on netbsd/arm (but passes on netbsd/arm64). It's unfortunately not easy to extract tests from dist (something I'm hoping to improve), but I believe this is what the test is doing:
cd $GOROOT/misc/cgo/testtls
go test -short=true -count=1 -run= -ldflags=-linkmode=external -tags=static .
It appears all of the other misc/cgo tests pass once I skip that specific one.
What did you expect to see?
Test passes.
What did you see instead?
Test crashes with SIGABRT. See the trybot log.
/cc @golang/netbsd
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
gopherbot commentedon Nov 7, 2022
Change https://go.dev/cl/448016 mentions this issue:
cmd/dist: add curiously missing GOOS/GOARCH combinations
cmd/dist: add curiously missing GOOS/GOARCH combinations
qmuntal commentedon Nov 17, 2022
I've seen a similar failure mode when running
misc/cgo/testtls
with static linking in our (Microsoft) Go fork CI pipeline. Could be related to #52141, where it was concluded that the failure was due to an old and buggy glibc version installed on the host.