-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ctrl-C interrupts not working inside python execution #527
Comments
It's true that Python code is not currently interruptible when called from PythonCall. That requires some signal handling magic that I think isn't currently possible in Python and Julia. In your example you threw SIGINT by holding down Ctrl-C, I'm not surprised this would crash things as it's generally intended as a last resort to stop a program. What happens if you just press Ctrl-C once and wait? |
I can reliably get a segfault on one Ctrl-C, which looks like this:
I can't share the exact code unfortunately, but there's no multi-threading happening in julia and the python code that is executing is a call to This is with
|
Affects: PythonCall / JuliaCall
Describe the bug
Interrupting during python execution is not working properly (not even on one thread).
Keeping ctrl+c pressed interrupts the execution, but the next python call segfaults julia.
This applies to both, PythonCall and PyCall.
Your system
Please provide detailed information about your system:
The text was updated successfully, but these errors were encountered: