Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ICE: stack overflow in resolver #110164

Closed
matthiaskrgr opened this issue Apr 10, 2023 · 1 comment · Fixed by #110493
Closed

ICE: stack overflow in resolver #110164

matthiaskrgr opened this issue Apr 10, 2023 · 1 comment · Fixed by #110493
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@matthiaskrgr
Copy link
Member

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


.....

@matthiaskrgr matthiaskrgr added I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. C-bug Category: This is a bug. labels Apr 10, 2023
@compiler-errors compiler-errors added the E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc label Apr 10, 2023
@matthiaskrgr
Copy link
Member Author

Crashes since at least 3 years 🤷

@compiler-errors compiler-errors removed the E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc label Apr 11, 2023
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this issue May 18, 2023
…etrochenkov

fix(resolve): only disambiguate binding key during define

- close rust-lang#110164
- discussion: rust-lang#110264 (comment)

r? `@petrochenkov`
@bors bors closed this as completed in d3f416d May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
2 participants