Open Maurdekye opened 3 years ago
When running scripts, Ctrl+C does not throw an exception but just sends a sigint as in normal executables. There might be another windows-specific bug here though.
I ran into this today on windows with Julia 1.6.7.
I thought julia -i
was only for REPL interaction.
I see now that if I am planning on
readline()
and supporting user input like Ctrl-C
to cancel out in my script,
then I need to enable the interactive mode, even though I don't need the REPL.
Minimum example require to recreate: Create a Julia file with the line
readline()
, run it directly from the command line withjulia read_bug.jl
, and attempt to interrupt it with Ctrl+C. Intead of throwing anInterruptException
, as it does in an interactive session, it produces this memory access violation:Tested with Julia 1.5.1 on Windows 10 64-bit.