-
Notifications
You must be signed in to change notification settings - Fork 92
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
Segmentation fault when writing big arrays with zstd compression #599
Comments
Hi @ali-ramadhan, I'm afraid, the issue is a bit more subtle and JLD2 is not really at fault. I can reproduce your segfault but entirely without using JLD2:
I've opened a new issue over at CodecZstd JuliaIO/CodecZstd.jl#70 |
Thank you for looking into this @JonasIsensee and for reducing the MWE down to the core issue! Will track the issue you created in CodecZstd.jl. |
Confirming that my MWE works now and does not segfault now that JuliaIO/CodecZstd.jl#74 has been merged and will be in the next version of CodecZstd.jl 🎉 Thank you @nhz2 and @JonasIsensee! |
Trying to write large arrays to disk using zstd compression seems to consistently result in segmentation faults.
This could be an issue with CodecZstd.jl (see JuliaIO/CodecZstd.jl#25) and
unsafe_wrap
usage. I see someunsafe_wrap
usage in https://github.com/JuliaIO/JLD2.jl/blob/3647927e85d1fc832d460f7c05bb197c98eac3a4/src/data/writing_datatypes.jlShould they be wrapped around with a
GC.@preserve
block?Not sure if the issue really belongs here or in CodecZstd.jl but just thought to open it to discuss.
MWE:
Error:
Environment:
Packages:
The text was updated successfully, but these errors were encountered: