JuliaPy / PyCall.jl

Package to call Python functions from the Julia language
MIT License
1.45k stars 186 forks source link

julia-1.10.0 _Py_DECREF segmentation faults (not present in 1.9.3) #1077

Open takbal opened 4 months ago

takbal commented 4 months ago

I am experiencing random segfaults with julia 1.10.0 and python 3.10.10 at _Py_DECREF calls. An example crash dump is attached.

The issue is not present when downgrading julia to 1.9.3.

Julia changed its GC to be multi-threaded between these versions. Using --gcthreads=1 in init_julia has no effect.

I cannot produce an MWE, as the code triggering it is complex, flips through GBs of data, communicates a lot, and the crash happens completely random, but always after far into execution. The julia code is single-threaded.

log.txt