My julia code has segfault only on exit - is there a way to simply stop julia without calling into this finalization stuff

I just opened an issue for a segmentation fault with RCall which only happens on exit

I would like to find a workaround, i.e. somehow kill Julia without running into those finalizers which cause segmentation fault.

It is really funny that everything works, only exiting Julia is the difficult part


Crashing on exit is not unheard of when interoperating with other languages. For example loading pytorch causes invalid pointer crash on free() · Issue #973 · JuliaPy/PyCall.jl · GitHub was probably caused by clashing dependencies loaded by Julia and Python. Your backtrace looks different but maybe you can find some ideas for investigation in the issue comments.