-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Segfault in ccall #40164
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:codegen
Generation of LLVM IR and native code
Comments
|
JeffBezanson
added
bug
Indicates an unexpected problem or unintended behavior
compiler:codegen
Generation of LLVM IR and native code
labels
Mar 24, 2021
Just tried the code snippet on mac with Julia master (1.9-dev) and I don't get a segfault on mac. |
Fixed by #41827, but it didn't use any of the magic words for auto-closing |
Works for me thanks @troels and everybody else for fixing this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Indicates an unexpected problem or unintended behavior
compiler:codegen
Generation of LLVM IR and native code
From discourse. The following code segfaults for me:
I read the manual and in particular the section about closures, but I am still not sure where the error lies.
It works, if I do one of the following:
CParticle struct
smaller e.g. onlycharge + weight
fieldsmain
code globallypush!
in the callback@Gnimuc pointed out workarounds, but it is still unclear why this happens, and would be nice to fix it or document it. I can help with the latter.
The text was updated successfully, but these errors were encountered: