Skip to content

fatal: error thrown and no exception handler available. #34184

@ghost

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

No one assigned

    Labels

    error handlingHandling of exceptions by Julia or the usermultithreadingBase.Threads and related functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions