-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
tests/stdlib/tfdleak is flaky on windows + netbsd #14090
Comments
(moving from timotheecour#190) it's not just netbsd; happens at least on windows as well (at least) so I've changed title /cc @alaviss since you've added this test in #13201 :-) history: https://dev.azure.com/nim-lang/Nim/_test/analytics?definitionId=1&contextType=build example:
other example: FAIL: tests/stdlib/tfdleak.nim C https://dev.azure.com/nim-lang/255dfe86-e590-40bb-a8a2-3c0295ebdeb1/_apis/build/builds/5123/logs/66
@euantorano it's important to distinguish "failing" from "flaky" (as it helps fixing bugs); for netbsd is it flaky or always-failing? also is there a way to avoid this: when running locally on windows? |
I can’t 100% reliably say whether it’s flaky or failing based on the limited number of times I’ve ran the tests locally (probably about 3 times). It’s failed every time there, but I’ll need to gather more results. |
You can't, the test spawned a simple TCP server to do leak checking.
It's pretty much NetBSD fault actually: The Lines 640 to 644 in 278b458
|
For reference: the OpenBSD code uses /*
* If reopening something that was open before on a real file, try
* to maintain the descriptor. Various C library routines (perror)
* assume stderr is always fd STDERR_FILENO, even if being freopen'd.
*/
if (wantfd >= 0 && f != wantfd) {
if (dup3(f, wantfd, oflags & O_CLOEXEC) >= 0) {
(void) close(f);
f = wantfd;
}
} |
The test
tests/stdlib/tfdleak.nim
fails on NetBSD with the following output:The text was updated successfully, but these errors were encountered: