JuliaPy / JuliaPy/PyCall.jl

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

Offen
#1,077 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Julia
Sterne
1.5k
Forks
186
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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](https://github.com/JuliaPy/PyCall.jl/files/14227059/log.txt)

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with the attached log.txt and compare the reported _Py_DECREF crash between Julia 1.10.0 and 1.9.3 with Python 3.10.10. Review init_julia and the --gcthreads=1 observation; done would require a reproducible diagnosis and a verified fix, but the issue provides no MWE or named source file.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
julia, python
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
18/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.