-
Notifications
You must be signed in to change notification settings - Fork 55
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
Julia crash when using fft_plan #277
Comments
The plan object contains a pointer: Lines 252 to 253 in ef8fc5b
You can't serialise a pointer in a session and then deserialise it in another session, the old pointer is garbage in the new session, hence the segmentation fault. Please read the documentation about module loading. |
Ah, ok, thanks. Did't realize that the module variables are stored in the precompiled cache. |
Global variables are, yes. You may find this blog post about what happens in top-level of Julia packages useful. |
Should FFTW check for C_NULL and provide a better error? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Filed this first in Julia issues 51249, but got directed here. My gut feeling was that Julia gives invalid memory to FFTW)
Julia 1.9.3 installed from Generic linux package on Ubuntu 22.04 system.
I get a crash when using the below code as a module with
using Test
, but not if I load the source directly in REPLinclude("Test.jl")
.Test.jl code below
view in
fft_out = fft(view(A, :, 1))
is not actually needed, alsofft_plan*A[:,1]
crashes. I just used the view when hit this the first time)I.e. below does not crash
but this crashes
The text was updated successfully, but these errors were encountered: