Minimal example: ``` $ python -c 'import juliacall; import torch; print("Done.")' Segmentation fault (core dumped) ``` The segfault happens at 0x00007fffa673c342 in __kmp_env_blk_init () in libgomp.so.1 Importing only one of the two modules does not result in an error. Note that this issue is related but different from [#215](https://github.com/JuliaPy/PythonCall.jl/issues/215): here `juliacall` is imported before `torch`, and there `torch` is imported before `juliacall`. Environment details: * Fedora release 37 (Thirty Seven) * Python 3.10.11 (installed using a mamba environment) * Torch version `1.11.0.post202` (pytorch-gpu, build cuda112py310h68407e5_202) * JuliaCall version 0.9.15 (build pypi_0) * Julia version 1.9.4 Similar issues: * [JuliaPy.#215: Heap corruption on Python when `torch` is imported before `juliacall`, but not the reverse](https://github.com/JuliaPy/PythonCall.jl/issues/215) [FAQ](https://docs.juliahub.com/PythonCall/WdXsa/0.9.8/faq/) * [JuliaPy.#518: Segmentation Fault When Using PyJulia Inside of PyTorch Custom Autograd Function](https://github.com/JuliaPy/pyjulia/issues/518)