-
Notifications
You must be signed in to change notification settings - Fork 420
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
File::create in gcc-shim sometimes fails with multiple test threads #419
Comments
I'm not really sure what's causing this. After looking around the |
Interesting note: If I replace |
FWIW all of the tests were written to be run single-threaded, so there's probably a lot of things lurking here and there... |
I see. But this is still a strange one. Do you have any idea why it might be happening? |
This in specific sorry no, no idea why it's happening :( |
Can you reproduce it?
|
Sorry I'm not currently trying since I'm busy elsewhere. |
No problem. I would appreciate it if you could try when you have time.
|
For the record, the problem appears to be due to hard-linking ( |
On reflection, this could be an Apple File System (APFS) issue. I didn't try any other file systems. |
As a follow-up for posterity's sake, I could reproduce the issue on an HFS+ file system but not on an exFAT file system (using a mounted disk image created by Disk Utility). |
On macOS 10.14.5 (Mojave) with
rustc
1.35.0 and 1.36.0, if I do the following withcc-rs
at d2ba46f:I eventually get the following:
I cannot reproduce the panic if I replace
cargo test
withcargo test -- --test-threads 1
.The panic comes arbitrarily from (a) one of the two uses of
File::create
insrc/bin/gcc-shim.rs
and (b) one of the stub executables (cc
,ar
, etc.)The text was updated successfully, but these errors were encountered: