ispc: Launching compiler without arguments and quitting via Ctrl-C leads to crash
When I launch the compiler without arguments it seems to be waiting for input (which is kind of a weird default). When I try to exit via Ctrl+C then Windows Error Reporting (WER) kicks in because it crashed.
$>ispc.exe
Warning: No output file or header file name specified. Program will be compiled and warnings/errors will be issued, but no output will be generated.
Warning: No --target specified on command-line. Using default system target "avx2-i32x8".
C:\iusers\ispc_builder\ispc\src\main.cpp(357): FATAL ERROR: Unhandled signal sent to process; terminating.
***
*** Please file a bug report at https://github.com/ispc/ispc/issues
*** (Including as much information as you can about how to reproduce this error).
*** You have apparently encountered a bug in the compiler that we'd like to fix!
***
<stdin>:1:1: Error: Premature end of file: syntax error, unexpected end of file.
version: v1.12.0, windows, 32bit, downloaded from here: https://ispc.github.io/downloads.html
$ >ispc.exe --version
Intel(r) SPMD Program Compiler (ispc), 1.12.0 (build date Aug 15 2019, LLVM 8.0.0)
Supported Visual Studio versions: Visual Studio 2015 and later.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 17 (3 by maintainers)
I think waiting for standard input is fine, but crashing when interrupted/canceled is not.
βI vote to admitting that ISPC not an interactive tool and changing this behavior.β
I concur.