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

misc/cgo/test: Test9400 in TestCrossPackageTests hangs on ppc64le #49695

Open
pmur opened this issue Nov 19, 2021 · 1 comment
Open

misc/cgo/test: Test9400 in TestCrossPackageTests hangs on ppc64le #49695

pmur opened this issue Nov 19, 2021 · 1 comment
Labels
Milestone

Comments

@pmur
Copy link
Contributor

@pmur pmur commented Nov 19, 2021

While trying to reproduce some sporadic failures on seen on the ppc64le CI machines, I came across a hang in Test9400 on a POWER10 machine with GOMAXPROCS=2.

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

$ go version
go version devel go1.18-e8cda0a6c9 Fri Nov 19 00:05:59 2021 +0000 linux/ppc64le

What did you do?

cd $GOPATH/misc/cgo/test
go test -buildmode=pie -ldflags=-linkmode=internal -tags=internal,internal_pie -c
export GOMAXPROCS=2
while [ 1 ]; do ./test.test -test.v -test.short ; done

Eventually this hangs on TestCrossPackageTests running Test9400.

This kind of looks like it may be an untimely GC starting while issue9400.RewindAndSetgid is spinning on a condition.

I inserted a call to runtime.GC prior to the above call, and was unable to reproduce the hang.

@gopherbot
Copy link

@gopherbot gopherbot commented Nov 19, 2021

Change https://golang.org/cl/365836 mentions this issue: misc/cgo/test: reduce likeliness of hang in Test9400

Loading

@heschi heschi added this to the Go1.18 milestone Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants