-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Segfault with SIGINT #19222
Comments
This isn't really fixable |
why is it not fixable ? |
(Also, It is not fixable without either not guaranteeing exit on signal, or not doing any cleanup on signal. |
(yes, my bad, I never get the default signal right for Is it not possible to do something like in python and ruby: throw an exception when receiving a "stop" (INT/TERM...) signal ? Cleanup would be deferred to the exception handling process if the exception isn't caught. |
We do that in the repl for |
And that's what I mean by not guaranteeing exit. The process can wait for a arbitrarily long time before the exception is delivered. |
Why not do the same for SIGTERM ?
"Transforming" the signal into exception seems to work fine for ruby and python (I never had any problem with |
I don't think python does it either. And I think
Native code. The interpreter for python and ruby are also slow enough that periodically checking a flag does not slow it down by too much. |
you can "trap" a SIGTERM and ignore it (you shouldn't but it's possible). Stopping the execution without cleaning is a better way to handle signals than raising a segfault. Some languages don't clean after a |
Is there any news on this (see also #25308)? running julia 0.6.x btw. |
I was not able to reproduce https://docs.julialang.org/en/v1/base/c/#Base.exit_on_sigint with CTRL-C on sleep nor readline.
Only with Julia 1.7, I get this stacktrace, but the "catch" clause is never executed.
With "readline", the "finally" clause is only executed when I press return after the CTRL-C. thanks |
Will be closed by #49541 |
Hi,
When I send a SIGINT to julia (
kill <julia's pid>
for the REPL orCTRL+C
orkill ...
for a script), there is a segfault:I'm on manjaro linux (distribution based on arch linux) and I'm using
julia 0.5.0
(version on pacman on manjaro).I will try with a debug build built from the github repository as soon as possible.
[EDIT]: add error message.
The text was updated successfully, but these errors were encountered: