-
-
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
task_done_hook has no InterruptException handler #19467
Comments
Which version are you using? And is it actually a segfault? |
julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell) No, I'm not sure it's a segfault, but it does end my julia session instead of just exiting the function, and it seems to be purely because of the presence of the |
This may help in identifying the problem. Adding a
Issue exists on 0.4 too. |
The yield simply makes the window this can happen much smaller. |
There may be something more. I couldn't crash it with the yield() before the sleep() even after many tries. A yield() after the sleep() has no effect.... |
Well, it shortens the window from 1 second to few micro second so you'll have a pretty hard time triggering it. |
@yuyichao, any ideas on how to fix this? |
This would be fixed by #14032 |
Does changing the behavior of ctrl-C count as breaking production code? |
This doesn't seem like it needs to be in the 1.0 milestone. Speak up otherwise. |
The Ctrl-C issue in the description is happening again, at least on Julia 1.9.0 and 1.8.3 (see #45055, not sure if we should close that one and reopen the current issue? Would probably need an updated title). |
Case 1:
Case 2:
In the successful case, run
try_no_segfault()
, then CTRL+c to see a successful interrupt and return to the julia prompt.To reproduce the segfault, run
try_segfault()
, then CTRL+c to see a segfault and end of the julia session.The text was updated successfully, but these errors were encountered: