-
Notifications
You must be signed in to change notification settings - Fork 0
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 when running on_connection_complete from a sysimage #13
Comments
@vchuravy I would really appreciate it if you could take a short look at that MWE and reply with anything you noticed or thought of. This one has @IanButterworth and I stumped. Also, if you have any recommendations as to where I should direct my debugging efforts, or other things to try, that is also helpful. Thank you! |
Might be similar to JuliaGPU/CUDA.jl#1314 |
Dumps from the gather chat: Valentin C. This change might be the fix we need |
Specifically this reproducer JuliaGPU/CUDA.jl#1314 (comment) Look for |
Alternative strategy, only call the cfunctions during |
I rebuilt the base sysimage and the Foo sysimage on
|
|
|
It is called and I have seen values in it get cached in the past. I will do something else to lift the cfunctions out of the sysimage. |
Actually, I don't think I can get the cfunctions out of the sysimage because they depend on values created at runtime. E.g. function connect(
...
on_connection_interrupted::Union{OnConnectionInterrupted,Nothing} = nothing,
...
)
...
on_connection_interrupted_cb = @cfunction(on_connection_interrupted, Cvoid, (Ptr{aws_mqtt_client_connection}, Cint, Ptr{Cvoid})) It seems that we simply can't put AWSCRT.jl in the sysimage. |
There is no segfault when using JuliaLang/julia#45447 |
Should have closed this earlier but this is fixed in 1.9 |
When attempting to connect to an endpoint for which the client is not authorized, libawscrt internally invokes
on_connection_complete
which can go one of two ways.I have created an MWE here (though it requires some real cloud resources): https://github.com/Octogonapus/awscrt_segfault_mwe
The text was updated successfully, but these errors were encountered: