SIGSEGV when compiling criterion benchmark with large const generic array #136739
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
I-crash
Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
S-has-mcve
Status: A Minimal Complete and Verifiable Example has been found for this issue
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
Reproduction code can be found here hang_or_crash.rs
The culprit seems to be this:
in combination with criterion
iter_batched
, when using a very large const generic:I tried this with criterion 0.4.0 and 0.5.1
Meta
rustc --version --verbose
:rustc +nightly --version --verbose
:Error output
When running
cargo +stable bench --profile=dev
I get the following, but note that the issue is present even when specifying-Znext-solver
and-Znext-solver=coherence
.Backtrace
Possibly related issues
#136282
The text was updated successfully, but these errors were encountered: