-
Notifications
You must be signed in to change notification settings - Fork 22
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 GC sometimes crashes in GAP #78
Comments
Indeed, I am getting this constantly when trying to load GAP from Julia. You can reproduce it by getting my minimal version of LibGAP.jl here: https://github.com/sebasguts/GAPJulia/tree/startup_segfault and then executing using Libdl
push!( DL_LOAD_PATH, "<path_to_gap>/.libs/" )
include("<path_to_gapjulia>/LibGAP.jl/src/initialization.jl")
libgap.initialize( [ ""
, "-l", "<path_to_gap>"
, "-T", "-r", "-A", "--nointeract"
, "-m", "512m" ], ["\0"] ) |
The following code snippet always crashes Julia with LibGAP.jl loaded, at least for me:
Here is the stack trace:
@rbehrends it would be great if you could have a look at this, too. |
This was improved a lot by |
There is a crash in the Julia-GC-integration in GAP, that sometimes occurs when running the GAP
testinstall
test suite several times in the row. @rbehrends and me reproduced it in the past, and could not track it down so far.In addition, recently we have been seeing crashes in the JuliaInterface test suite (e.g. here) that look like this:
Note that
ReadOnlyMemoryError
is actually a misnomer; this exception is also thrown when trying to read from memory we don't have access to. So my guess is thatGapTaskScanner
is scanning too much. Perhapsjl_task_stack_buffer
needs to be adjusted again on the Julia side.The text was updated successfully, but these errors were encountered: