ThreadTools.jl
ThreadTools.jl copied to clipboard
how to exit gracefully?
Whenever I Ctrl+C during a tmap call Julia crashes.
fatal: error thrown and no exception handler available.
InterruptException()
sigatomic_end at ./c.jl:425 [inlined]
task_done_hook at ./task.jl:440
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2214 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
jl_finish_task at /buildworker/worker/package_linux64/build/src/task.c:198
start_task at /buildworker/worker/package_linux64/build/src/task.c:717
unknown function (ip: (nil))
I'm afraid I don't have a good solution for this. I've never managed to understand Ctrl-c behavior of Julia, or how to predict when it will work, when it won't or when it will crash 😏
Fair enough!
Let's keep the issue open, maybe someone more knowledgeable than me sees it and chimes in 😃