-
Notifications
You must be signed in to change notification settings - Fork 35
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
Intermittent segfaults with Julia 1.11.2, possibly architecture-specific (AMD Zen 4), possibly alignment ? #135
Comments
I cannot reproduce this on macOS (arm64-apple-darwin24.0.0). The problem might be architecture-specific. |
I'm seeing other segfaults as well with SIMD on this PC (AMD Ryzen 5 7600) and julia version 1.11.2 as above, so this doesn't look like it's anything to do with Ref A possibly simpler MWE, again this sometimes gives a segfault, sometimes OK:
|
And possibly an even simpler MWE... looks like this is perhaps alignment ? Is this just user error ? (should I be using some explicit way to align array allocations ?)
|
Testing the same MWE on same PC, but with Julia 1.10.7 seems to consistently give a 64-byte aligned array, and no segfault:
|
Perhaps another clue to alignment issue ? Same PC (AMD Ryzen 5 7600) and julia version 1.11.2 as above, intermittent AssertionError while trying
where the assertion is from Line 127 in 53c9476
|
There were changes to how arrays were implemented in 1.11. If you can reproduce it consistently, perhaps you could do a bisect to see where it started to fail? |
- use netcdf files for output - tidy up yaml files and remove old versions - bugfix for ReactionOceanTransportTMM: workaround SIMD issue, see eschnett/SIMD.jl#135
This looks like JuliaLang/julia#56937 to me... ? I'm not sure about the proposed fix JuliaLang/julia#56938 though, which if I understand it correctly means that Julia will at least be consistent in the sense it no longer overpromises about the alignment it provides, but will not guarantee alignment larger than 16-byte alignment ? |
I'm seeing intermittent segfaults with Julia 1.11.2, for code that works fine on Julia 1.10
This is using SIMD v3.7.0 (not tested other versions)
Attempt at a MWE (this only generates intermittent segfaults, the full code always fails with Julia 1.11.2):
The behaviour of the MWE above seems to be intermittent: the first few runs with a fresh julia repl generate a segfault, subsequent runs on the same PC then work (whereas the full code always fails with Julia 1.11.2).
(rbuf is uninitialized in the MWE above, the full code of course does initialise the equivalent of rbuf[] and still fails with a segfault)
The text was updated successfully, but these errors were encountered: