Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EXCEPTION_ACCESS_VIOLATION when interrupting a non-interactive readline #39699

Open
Maurdekye opened this issue Feb 17, 2021 · 1 comment
Open

Comments

@Maurdekye
Copy link

Maurdekye commented Feb 17, 2021

Minimum example require to recreate:
Create a Julia file with the line readline(), run it directly from the command line with julia read_bug.jl, and attempt to interrupt it with Ctrl+C. Intead of throwing an InterruptException, as it does in an interactive session, it produces this memory access violation:

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 0x668c70ea -- jl_mutex_unlock at /cygdrive/d/buildbot/worker/package_win64/build/src\locks.h:143 [inlined]
jl_get_binding_ at /cygdrive/d/buildbot/worker/package_win64/build/src\module.c:294
in expression starting at C:\Users\<me>\Desktop\read_bug.jl:1

Tested with Julia 1.5.1 on Windows 10 64-bit.

@JeffBezanson
Copy link
Sponsor Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants