dlangBugzillaToGithub / migration_test

0 stars 0 forks source link

std.process unit test sometimes fails #1303

Open dlangBugzillaToGithub opened 3 years ago

dlangBugzillaToGithub commented 3 years ago

snarwin+bugzilla (pbackus) reported this on 2021-10-02T21:09:54Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=22350

CC List

Description

Running the unit tests for std.process on FreeBSD sometimes fails, with the following message:

---
core.exception.AssertError@std/process.d(1645): Assertion failure
---

The assertion in question is here:

---
 // last resort, try lsof (not available on all Posix) 
 TestScript lsof = "lsof -p$$"; 
 auto lsofRes = execute(lsof.path, null); 
 if (lsofRes.status == 0) 
 { 
     assert(!lsofRes.output.canFind(path));
     // line 1645 
     assert(execute(lsof.path, null, Config.inheritFDs).output.canFind(path)); 
     return; 
 } 
---

This failure was observed in the auto-tester results for Phobos PR #8259 [1]. Restarting the auto-tester caused the test to pass.

[1] https://github.com/dlang/phobos/pull/8259
dlangBugzillaToGithub commented 3 years ago

snarwin+bugzilla commented on 2021-10-03T22:38:15Z

This may have been fixed by Phobos PR #8261 [1].

[1] https://github.com/dlang/phobos/pull/8261
dlangBugzillaToGithub commented 3 years ago

snarwin+bugzilla commented on 2021-10-19T14:14:23Z

Spotted again here:

https://github.com/dlang/druntime/pull/3593
https://auto-tester.puremagic.com/show-run.ghtml?projectid=1&runid=5016811&isPull=true
dlangBugzillaToGithub commented 3 years ago

snarwin+bugzilla commented on 2021-10-22T20:30:46Z

Spotted again here:

https://github.com/dlang/druntime/pull/3595
https://auto-tester.puremagic.com/show-run.ghtml?projectid=1&runid=5019269&isPull=true

This time the failure occured on Darwin_64_64, not FreeBSD.
dlangBugzillaToGithub commented 3 years ago

johan_forsberg_86 commented on 2021-10-24T22:59:05Z

Maybe fixed by https://github.com/dlang/dmd/pull/13210