-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Open
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the usermultithreadingBase.Threads and related functionalityBase.Threads and related functionality
Description
I'm getting this in a program employing Threads.@Spawn and Channel communication between the threads when ^C is pressed. I have an InterruptException catch block in the main thread, but when the program crashes, it never gets called (It should printstyled("\rUser interrupt—finishing up.\n", bold=true, color=202) if it were.)
Normally things crash, when they do, after a single ^C press, but this time things hung and I had to press ^C a second time to cause the crash:
^Cfatal: error thrown and no exception handler available.
InterruptException()
^C
sigatomic_end at ./c.jl:425 [inlined]
task_done_hook at ./task.jl:399
jl_apply at /Users/sabae/buildbot/worker/package_macos64/build/src/./julia.h:1631 [inlined]
jl_finish_task at /Users/sabae/buildbot/worker/package_macos64/build/src/task.c:181
start_task at /Users/sabae/buildbot/worker/package_macos64/build/src/task.c:669
julia> versioninfo()
Julia Version 1.3.0
Commit 46ce4d7933 (2019-11-26 06:09 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.0.0)
CPU: Intel(R) Core(TM) i5-4308U CPU @ 2.80GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-6.0.1 (ORCJIT, haswell)
Environment:
JULIA_NUM_THREADS = 5
Metadata
Metadata
Assignees
Labels
error handlingHandling of exceptions by Julia or the userHandling of exceptions by Julia or the usermultithreadingBase.Threads and related functionalityBase.Threads and related functionality