-
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
os/exec: TestExtraFilesRace flake on plan9 since 2022-11-16 #57180
Comments
If I'm reading correctly, it's the opposite: we expect the subprocess to print an address for FD 3 (for the listener opened with |
The one on 2022-09-13 has a funky failure mode, which suggests the regression happened on or about 2022-11-16. |
(Note that I added the call to |
Errors like "/boot/workdir/... does not exist' are evidence of a flake in the underlying Plan 9 filesystem, not specifically relevant to this issue. |
The error returned from the attempt to wrap it is |
That suggests perhaps a problem in either |
Change https://go.dev/cl/457115 mentions this issue: |
You're right, a logic error was sometimes causing the newly dup'ed FD to be closed. |
That turned out to be off by 10½ years. 😅 (Based on the fix CL, it appears that FD forwarding on plan9 has been subtly broken ~forever, but the specific bug here was part of an attempted fix for a related bug in CL 6009046.) |
Found new dashboard test flakes for:
2022-12-01 21:00 plan9-arm go@cd133abc os/exec.TestExtraFilesRace (log)
2022-12-02 23:40 plan9-arm go@c0497d1a os/exec.TestExtraFilesRace (log)
2022-12-05 16:41 plan9-arm go@ad55b878 os/exec.TestExtraFilesRace (log)
2022-12-05 22:01 plan9-arm go@185e1a7b os/exec.TestExtraFilesRace (log)
2022-12-09 04:05 plan9-arm go@80f7484a os/exec.TestExtraFilesRace (log)
|
The above failures predate the fix (see #57632). |
On the plan9-arm builder the os/exec test sometimes fails like this:
This has been seen since 2022-11-16 (earliest log here).
The last change to TextExtraFilesRace before that date was the addition of
t.Parallel()
in CL 439196. The comment for that change says@bcmills, I haven't looked deeply into this but it does seem a FD is being opened during the test - is this a potential trouble spot?
I have managed to replicate the error by running
go tool dist test go_test:net/url go_test:os go_test:os/exec
enough times. If I remove thet.Parallel()
, the error seems not to occur.The text was updated successfully, but these errors were encountered: