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

Internal compiler error: trait A: { fn f(&r/self) { }} #5170

Closed
nielsle opened this issue Feb 28, 2013 · 1 comment
Closed

Internal compiler error: trait A: { fn f(&r/self) { }} #5170

nielsle opened this issue Feb 28, 2013 · 1 comment
Labels
A-traits Area: Trait system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@nielsle
Copy link
Contributor

nielsle commented Feb 28, 2013

The following program causes a compiler error

#[crate_type = "lib"];
trait A: { fn f(&r/self) { }}

niels@ellegaard:/slettes $ rustc --version
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/rustc 0.5 (8554d5e 2012-12-19 21:52:03 -0700)
host: x86_64-unknown-linux-gnu
niels@ellegaard:
/slettes $ cat tests.rs

[crate_type = "lib"];

trait A: { fn f(&r/self) { }}

niels@ellegaard:~/slettes $ rustc tests.rs
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues

niels@ellegaard:/slettes $ export RUST_LOG=rustc=1,::rt::backtrace
niels@ellegaard:
/slettes $ rustc tests.rs
rust: task failed at 'index out of bounds: the len is 0 but the index is 0', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/librustc/middle/liveness.rs:1867
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4f)[0x7f28e512683f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x2bb11)[0x7f28e5139b11]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x1d3)[0x7f28e5129d93]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1f3b)[0x7f28e68d5f3b]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x3724e)[0x7f28e686b24e]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN2rt20rt_fail_bounds_check17_6e1eda81bf4aba343_05E+0x19b)[0x7f28e6872bab]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle8liveness14__extensions__10meth_6341211should_warn16_24a83c96d5deae13_05E+0xc7)[0x7f28e591b7b7]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle8liveness14__extensions__10meth_6328617warn_about_unused15_2acc7738e5250f3_05E+0xb1)[0x7f28e5917cd1]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x5b2871)[0x7f28e591b871]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x5d7f6f)[0x7f28e5940f6f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libsyntax-84efebcb12c867a2-0.5.so(_ZN8ast_util8walk_pat17_67db41e557becd313_05E+0x43)[0x7f28e5faa083]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x599967)[0x7f28e5902967]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x1cc311)[0x7f28e5535311]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x1cd8b4)[0x7f28e55368b4]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x3b989f)[0x7f28e572289f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7834ec)[0x7f28e5aec4ec]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x3b8b94)[0x7f28e5721b94]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6middle8liveness11check_crate16_91cbd12ce821b753_05E+0x425)[0x7f28e58fa045]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x74b3c6)[0x7f28e5ab43c6]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver12compile_upto16_2b485a272c743d53_05E+0x1cbf)[0x7f28e5ab2a4f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7834ec)[0x7f28e5aec4ec]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN6driver6driver13compile_input17_14b7675443fceb433_05E+0xbb)[0x7f28e5ab57eb]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN12run_compiler16_2977651ce4ea1243_05E+0x2459)[0x7f28e5ae5269]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7834ec)[0x7f28e5aec4ec]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x782203)[0x7f28e5aeb203]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x78126c)[0x7f28e5aea26c]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7b360)[0x7f28e68af360]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb2650)[0x7f28e68e6650]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f28e5127864]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/librustc/rustc.rc:425
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4f)[0x7f28e512683f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x2bb11)[0x7f28e5139b11]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x1d3)[0x7f28e5129d93]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1f3b)[0x7f28e68d5f3b]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x3724e)[0x7f28e686b24e]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb2650)[0x7f28e68e6650]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN7monitor17_b0fffbf1e4d4325c3_05E+0x29de)[0x7f28e5ae922e]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(+0x7834ec)[0x7f28e5aec4ec]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustc-c84825241471686d-0.5.so(_ZN4main16_2fb85b4a659c4103_05E+0x86)[0x7f28e5aec0f6]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f28e5127864]
rust: domain main @0xc381f0 root task failed
rust: task failed at 'killed', /home/rustbuild/src/rustbot/workspace-snap-stage3-x86_64-unknown-linux-gnu/src/src/libcore/task/mod.rs:570
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x4f)[0x7f28e512683f]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(+0x2bb11)[0x7f28e5139b11]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(upcall_fail+0x1d3)[0x7f28e5129d93]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xa1f3b)[0x7f28e68d5f3b]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x3724e)[0x7f28e686b24e]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN4task5yield17_56812fae66173efd3_05E+0xbd)[0x7f28e6897f5d]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x90d06)[0x7f28e68c4d06]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb2650)[0x7f28e68e6650]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(_ZN7private11weaken_task16_d215ceff51755b63_05E+0xd9)[0x7f28e68c4b49]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x90a3b)[0x7f28e68c4a3b]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x8b61e)[0x7f28e68bf61e]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0x7b360)[0x7f28e68af360]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/libcore-c3ca5d77d81b46c1-0.5.so(+0xb2650)[0x7f28e68e6650]
/home/niels/local/src/rust/build/x86_64-unknown-linux-gnu/stage0/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7f28e5127864]
niels@ellegaard:~/slettes $

@catamorphism
Copy link
Contributor

Doesn't ICE as of 33e7a1f ; I suggest upgrading your Rust compiler, then if you still run into issues, file a new bug; thanks!

bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
Fix false positive in `zero_prefixed_literal`

Fixes rust-lang#5169

changelog: Fix false positive in `zero_prefixed_literal`
bors added a commit to rust-lang-ci/rust that referenced this issue May 2, 2020
…shearth,llogiq,flip1995

I like to move it, move it

GHA now runs in the background for 6 days (rust-lang#5088)

Since then ~~15~~ 19 PRs were successfully merged and Travis+Appveyor agreed on the status in every case. ([GitHub PR search query](https://github.com/rust-lang/rust-clippy/pulls?utf8=%E2%9C%93&q=is%3Apr+is%3Amerged+merged%3A%3E%3D2020-02-12T15%3A42%3A00+sort%3Aupdated-desc+NOT+%5Bgh-pages%5D+in%3Atitle))

Some PRs were:
- rust-lang#5163
- rust-lang#5170
- rust-lang#5168
- rust-lang#5173
- rust-lang#5171
- rust-lang#5156
- rust-lang#4809
- rust-lang#5177
- rust-lang#5182
- rust-lang#5183
- rust-lang#5184
- rust-lang#5185
- rust-lang#5186
- rust-lang#5181
- rust-lang#5189

Bug with GHA:
- When a rustc PR gets merged between the `integration_build` and the `integration` job, the `integration` job will fail. This happened once in rust-lang#5162, but not in the past 6 days. Even if it would happen every 4th PR we would save time, since splitting up the integration build and tests saves 5-7 minutes per run and a complete run takes 15-17 minutes
- Sometimes the MacOS build takes up to an hour to download the master toolchain. Until now, this happend 2 or 3 times and can be resolved by a `@bors r3try`+canceling the previous run (restarting single jobs is not supported yet)

## Before merging this, rust-lang/rust-central-station#578 has to get merged

This PR is for starting the discussion and to get consensus (@rust-lang/clippy) on a final move to GHA. If we're ready, I'll contact Pietro, to finalize the move.

changelog: Clippy completely runs on GHA now 🎉

---

BTW: The deployment already runs on GHA, instead of Travis.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-traits Area: Trait system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants