Skip to content

Commit 6385f91

Browse files
update FAQ
1 parent 1421a06 commit 6385f91

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/src/faq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Some rules if you are writing multithreaded code:
99
- You probably also need to call `PythonCall.GC.disable()` on the main thread before any
1010
threaded block of code. Remember to call `PythonCall.GC.enable()` again afterwards.
1111
(This is because Julia finalizers can be called from any thread.)
12+
- Julia intentionally causes segmentation faults as part of the GC safepoint mechanism.
13+
If unhandled, these segfaults will result in termination of the process. To enable signal handling,
14+
set `PYTHON_JULIACALL_HANDLE_SIGNALS=yes` before any calls to import juliacall. This is equivalent
15+
to starting julia with `julia --handle-signals=yes`, the default behavior in Julia. See discussion [here](https://github.com/cjdoris/PythonCall.jl/issues/219#issuecomment-1605087024) for more information.
1216
- You may still encounter problems.
1317

1418
Related issues: [#201](https://github.com/cjdoris/PythonCall.jl/issues/201), [#202](https://github.com/cjdoris/PythonCall.jl/issues/202)

0 commit comments

Comments
 (0)