Skip to content

CTRL-C in julia on windows 10 #50325

@fps

Description

@fps

Julia crashes quite often when interrupting loops with ctrl-c. This happens to me only in windows, linux is seemingly fine. The simplest NWE being this one:

julia> while true; end
WARNING: Force throwing a SIGINT

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x7ffcd4ea0a65 -- jl_throw_in_ctx at C:/workdir/src\signals-win.c:130
in expression starting at REPL[1]:1
Allocations: 2998 (Pool: 2986; Big: 12); GC: 0

C:\Users\fschmidt\AppData\Local\Programs\Julia-1.9.1\bin>

But it also happens during more elaborate loops with plotting, optimizing a neural network and printing some terminal output. There's a ca. 50/50 chance of julia crashing. Here's one corresponding crash output:

fatal: error thrown and no exception handler available.
InterruptException()
sigatomic_end at .\c.jl:452 [inlined]
task_done_hook at .\task.jl:670
jfptr_task_done_hook_49669.clone_1 at C:\Users\fschmidt\AppData\Local\Programs\Julia-1.9.1\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1879 [inlined]
jl_finish_task at C:/workdir/src\task.c:320
start_task at C:/workdir/src\task.c:1103

If you need more debugging info, please let me know..

julia> versioninfo()
Julia Version 1.9.1
Commit 147bdf428c (2023-06-07 08:27 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 4 × Intel(R) Core(TM) i5-7600 CPU @ 3.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 2 on 4 virtual cores
Environment:
  JULIA_NUM_THREADS = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions