-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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/go: test timeouts waiting for os/exec copying goroutines #50187
Comments
The underlying hang seems likely to be related to #50138, but we should still fix the |
2022-02-03T22:55:24-248ad85/netbsd-amd64-9_0 |
|
Found new matching dashboard test flakes for:
2022-09-19 13:56 linux-amd64-longtest go@fc1cddcf cmd/go.TestScript (log)
|
Found new dashboard test flakes for:
2022-10-24 15:56 linux-amd64-longtest go@decdad35 cmd/go.TestScript (log)
|
Change https://go.dev/cl/445357 mentions this issue: |
…ocesses The Cancel and WaitDelay fields recently added to exec.Cmd are intended to support exactly the sort of cancellation behavior that we need for script tests. Use them, and simplify the cmd/go tests accordingly. The more robust implementation may also help to diagose recurring test hangs (#50187). For #50187. Updates #27494. Change-Id: I7817fca0dd9a18e18984a252d3116f6a5275a401 Reviewed-on: https://go-review.googlesource.com/c/go/+/445357 Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
…ocesses The Cancel and WaitDelay fields recently added to exec.Cmd are intended to support exactly the sort of cancellation behavior that we need for script tests. Use them, and simplify the cmd/go tests accordingly. The more robust implementation may also help to diagose recurring test hangs (golang#50187). For golang#50187. Updates golang#27494. Change-Id: I7817fca0dd9a18e18984a252d3116f6a5275a401 Reviewed-on: https://go-review.googlesource.com/c/go/+/445357 Run-TryBot: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org>
Fixed by CL 445357. |
greplogs --dashboard -md -l -e '(?ms)\Anetbsd-[a-z0-9_-]+-n2 .*cmd/go_test\.waitOrStop' --since=2021-11-01
This looks superficially like #48789, but the goroutine containing
os/exec.(*Cmd).Wait
has made it past the call toc.Process.Wait
, and is blocked waiting for the copying goroutines:https://cs.opensource.google/go/go/+/master:src/os/exec/exec.go;l=515;drc=2580d0e08d5e9f979b943758d3c49877fb2324cb
That makes this actually an instance of #23019, which we probably need to work around in order to figure out why the
cmd/go
subprocess seems to be deadlocked. (cmd/go
doesn't intentionally forwardstdout
orstderr
to any subprocess, so there may be some other issue here as well, but we should at least get what we can out of the subprocess to help diagnose it.)2021-12-14T01:48:22-1afa432/netbsd-amd64-9_0-n2
The text was updated successfully, but these errors were encountered: