Skip to content

ICE: stack overflow in resolver #110164

Closed
@matthiaskrgr

Description

@matthiaskrgr

Code

use crate::*;

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

Meta

rustc --version --verbose:

rustc 1.70.0-nightly (696aaad58 2023-04-09)
binary: rustc
commit-hash: 696aaad58c57a589f6fb2ecff5bae2eec581cb71
commit-date: 2023-04-09
host: x86_64-unknown-linux-gnu
release: 1.70.0-nightly
LLVM version: 16.0.2

Error output

<output>
Backtrace

error: expected identifier, found reserved identifier `_`
 --> /tmp/treereduce.out:4:9
  |
4 |     use _::*;
  |         ^ expected identifier, found reserved identifier


Thread 2 "rustc" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffe9dff6c0 (LWP 3656741)]
0x00007ffff534e571 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
(gdb) bt
#0  0x00007ffff534e571 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#1  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#2  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#3  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#4  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#5  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#6  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#7  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#8  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#9  0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#10 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#11 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#12 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#13 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#14 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#15 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#16 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#17 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#18 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#19 0x00007ffff534fcb0 in <rustc_resolve[a2234260a32b12fb]::Resolver>::resolve_ident_in_module_unadjusted_ext () from /home/matthias/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/librustc_driver-e24c3287901edaff.so
#20 0


.....

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️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