Thread Safety of PyCall with ibm db package
- Dominant language
- Julia
- Stars
- 1.5k
- Forks
- 186
- PR merge metrics
- No merged PRs in 30d
Description
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:


Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.