Thread Safety of PyCall with ibm db package
- Vorherrschende Sprache
- Julia
- Sterne
- 1.5k
- Forks
- 186
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I'm having an issue using threads with PyCall. I'm using [IBM's db2 python](https://pypi.org/project/ibm-db/#api) package trying to execute queries on multiple threads and it will crash 99% of the time (race condition?). Serial code always works. I've tried using Threads, Dagger, and Distributed and all have the same issue. I [read that disabling faulthandler](https://discourse.julialang.org/t/help-with-pycall-related-segfault/55998/2) might fix it but I think I'm properly disabling it and it still occurs for me? Any help is appreciated.
Example with `@spawn` crashing:

Minimalist example showing it crashing:


Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.