Skip to content

os/exec: TestExtraFilesRace flake on plan9 since 2022-11-16 #57180

@millerresearch

Description

@millerresearch
#!watchflakes
post <- pkg == "os/exec" && test == "TestExtraFilesRace" && goos == "plan9"

On the plan9-arm builder the os/exec test sometimes fails like this:

--- FAIL: TestExtraFilesRace (0.50s)
    exec_test.go:850: iteration 2, process B got:
        
        want:
        fd3: listener 127.0.0.1:40881
        
FAIL
FAIL	os/exec	1.262s

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

Tests that use Setenv or Chdir or check for FDs opened during the test
still cannot be parallelized,

@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 the t.Parallel(), the error seems not to occur.

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.OS-Plan9

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions