Skip to content

misc/cgo/test: static test fails #56623

@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)?

linux/loong64, observed on the trybots for CL 448016 PS 1

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/test static build configurations crashes on linux/loong64. 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/test
CGO_LDFLAGS="-static -pthread" go test -short=true -count=1 -run= -tags=static .

What did you expect to see?

Test passes.

What did you see instead?

Test crashes with "signal: bus error" (trybot log)

/cc @golang/loong64

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-loong64Issues solely affecting the loongson architecture.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions