-
Notifications
You must be signed in to change notification settings - Fork 18.8k
Closed
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-illumos
Milestone
Description
Occasionally we seem to see a test failure in the illumos buildlet:
--- FAIL: TestExtraFiles (1.58s)
exec_test.go:696: Run: exit status 1
--- stdout:
leaked parent file. fd = 5; want 4
readlink("/proc/self/fd/4") = "", readlink /proc/self/fd/4: no such file or directory
* Displaying port information for all processes..
PID PROCESS IP PORT
-----------------------------------------------------------------
981987 ./buildlet.exe 165.225.148.197 36741
981987 ./buildlet.exe 107.178.219.46 443
981987 ./buildlet.exe 165.225.148.197 64726
981987 ./buildlet.exe 107.178.219.46 443
981987 ./buildlet.exe 165.225.148.197 33606
981987 ./buildlet.exe 107.178.219.46 443
993967 /var/tmp/workdir-host-i 127.0.0.1 64698
993967 /var/tmp/workdir-host-i 127.0.0.1 64698
993967 /var/tmp/workdir-host-i 127.0.0.1 64698
993967 /var/tmp/workdir-host-i 127.0.0.1 33969
--- stderr:
lsof -p 994152 failed: exit status 1
FAIL
FAIL os/exec 2.476s
The test in os/exec/read3.go is trying to execute lsof to get debugging information, but unfortunately at least in the distribution that the buildlet is running under that command is not terribly useful. The native tool for inspecting open file descriptors on illumos systems is pfiles, and I see some code in there to handle platform differences already so I will put up a CL to add our distinctiveness alongside. Hopefully it will then be easier to debug subsequent instances of this issue.
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.OS-illumos