Skip to content

misc/cgo/testtls: static test fails #56629

Open
@aclements

Description

@aclements

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

Activity

added
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.
on Nov 7, 2022
added this to the Backlog milestone on Nov 7, 2022
gopherbot

gopherbot commented on Nov 7, 2022

@gopherbot
Contributor

Change https://go.dev/cl/448016 mentions this issue: cmd/dist: add curiously missing GOOS/GOARCH combinations

qmuntal

qmuntal commented on Nov 17, 2022

@qmuntal
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-NetBSDarch-armIssues solely affecting the 32-bit arm architecture.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @aclements@qmuntal@gopherbot

        Issue actions

          misc/cgo/testtls: static test fails · Issue #56629 · golang/go