-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃悰 fix bus error on smaller readonly file in unix #44354
Conversation
This seems clearer to me. But don' t know if it would have any performance issue. |
f2671ad
to
9ffac42
Compare
Tests are extremely unhappy on |
We may be able to emulate (aka greatly accelerate) the filesize test by doing a seekend instead and checking the position? |
As |
@vtjnash, could you take another look at this? |
Tests are still failing, so there is not much more I can really do here for review. My previous suggestion for a fix seems to have been unsuccessful, since the seekend is failing.
|
Actually, IIUC, this is a very weird file on macOS (from shm_open). I can read and write, but not seek the fd. And stat is a bit awkward, as Julia cannot return it:
implemented here: https://github.com/apple/darwin-xnu/blob/a1babec6b135d1f35b2590a1990af3c5c5393479/bsd/kern/posix_shm.c#L695-L700 This seems to be an implementation quality issue with Unrelatedly, there appears to be a minor issue in SharedArrays forgetting to close the |
Not sure whether the InteractiveUtils test failure is related. Would it be fine to fix it only for linux first like this and wait for macOS solution later? Guess not many would encounter this bug on macOS. |
Co-authored-by: Jameson Nash <[email protected]>
Co-authored-by: Jameson Nash <[email protected]>
Co-authored-by: Stefan Karpinski <[email protected]>
CI is all green on this. @vtjnash Is this good to merge? |
Fixes: #28245 Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Stefan Karpinski <[email protected]> (cherry picked from commit ead627e)
As reported in #54203 this fix introduced another issue since |
Fixes: JuliaLang#28245 Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Stefan Karpinski <[email protected]> (cherry picked from commit ead627e)
fix #28245 in unix