rustc crashes with SIGSEGV when compiling a 1000 nested inline const blocks. #138547
Labels
A-parser
Area: The parsing of Rust source code to an AST
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
P-low
Low priority
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have generated input file containing a 1000 nested inline const blocks with following python script:
Then called
rustc
:Which crashes with a SIGSEGV (backtrace below).
I expected to see this happen:
I don't know really. I was just being silly and wanted to see what would happen. I know that this is an unreasonable rust code, and I was prepared for some compiler error. However seeing not even an ICE, but a full compiler crash surprised me. Setting
$RUST_MIN_STACK
to suggested value helps, but still this seems to be some form of a compiler bug.I quickly searched for relevant issues, but I have not found anything similar. I have now idea if and how this should be fixed, but I thought that at least I can report it.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: