Skip to content

Infinite recursion crash with use _ #105353

Closed
@jruderman

Description

@jruderman

Found with a modified fuzz-rustc

Code

use _;
use crate::*;
fn main() {}

Crash

Infinite recursion between resolve_ident_in_module_unadjusted and resolve_ident_in_module_unadjusted_ext

crash-report.txt

The base of the stack is visible when running with RUST_MIN_STACK=100000: crash-report-with-small-stack.txt

Regression

Regression in nightly-2019-10-17, perhaps from #64623 (@matthewjasper, @petrochenkov)

Version

rustc 1.67.0-nightly (e1d819583 2022-12-05)
binary: rustc
commit-hash: e1d819583f0bf13b016b119c1c2c43e6d3979450
commit-date: 2022-12-05
host: x86_64-apple-darwin
release: 1.67.0-nightly
LLVM version: 15.0.4

@rustbot label +I-crash +T-compiler

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions