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

Panic => hang with -C codegen-units=2 #20184

Closed
kmcallister opened this issue Dec 24, 2014 · 7 comments · Fixed by #25806
Closed

Panic => hang with -C codegen-units=2 #20184

kmcallister opened this issue Dec 24, 2014 · 7 comments · Fixed by #25806
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@kmcallister
Copy link
Contributor

Building src/test/compile-fail/asm-src-loc-codegen-units.rs, I get

$ RUST_BACKTRACE=1 x86_64-unknown-linux-gnu/stage1/bin/rustc /home/keegan/rust/src/test/compile-fail/asm-src-loc-codegen-units.rs -L x86_64-unknown-linux-gnu/test/compile-fail --target=x86_64-unknown-linux-gnu -L x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage1-x86_64-unknown-linux-gnulibaux -C prefer-dynamic -o x86_64-unknown-linux-gnu/test/compile-fail/asm-src-loc-codegen-units.stage1-x86_64-unknown-linux-gnu --cfg rtopt --cfg debug -C rpath -O -L x86_64-unknown-linux-gnu/rt -C codegen-units=2  
thread 'codegen-1' panicked at 'Box<Any>', /home/keegan/rust/src/libsyntax/diagnostic.rs:144  
stack backtrace:  
   1:     0x7fa4c3cc6160 - sys::backtrace::write::h65ec9c5123795f5a7Et  
   2:     0x7fa4c3ce1560 - failure::on_fail::h57fab0e8dcfaeb44q5z  
   3:     0x7fa4c3c64d30 - rt::unwind::begin_unwind_inner::hfb3e098e3005b453qJz  
   4:     0x7fa4bf1b71d0 - rt::unwind::begin_unwind::h10618648795271420137  
   5:     0x7fa4bf1b7c70 - diagnostic::Handler::fatal::h4880a8481789b123GZF  
   6:     0x7fa4bf1b7e70 - diagnostic::Handler::abort_if_errors::h67ec7bdbe130dc33m1F  
   7:     0x7fa4c2b9b470 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h6510616859115949120  
   8:     0x7fa4c2b9a250 - rt::unwind::try::try_fn::h2108817931159087488  
   9:     0x7fa4c3d50080 - rust_try_inner  
  10:     0x7fa4c3d50070 - rust_try  
  11:     0x7fa4c2b9a4f0 - thunk::F.Invoke<A,$u{20}R$GT$::invoke::h6356295493119065651  
  12:     0x7fa4c3cd3870 - sys::thread::thread_start::h343c9a18cc8a2c6fxDw  
  13:     0x7fa4be9d0fe0 - start_thread  
  14:     0x7fa4c3911c99 - __clone  
  15:                0x0 - <unknown>  

at which point rustc hangs. Version: 96a3c7c (current master)

@kmcallister kmcallister added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 24, 2014
@kmcallister
Copy link
Contributor Author

This is preventing me from running the test suite :(

@kmcallister
Copy link
Contributor Author

I'm seeing this hang with the stage1 compiler but not the stage2. Perhaps these changes need to be cfg(not(stage0)). Anyway this means the issue will probably disappear after the next snapshot.

kmcallister added a commit to kmcallister/rust that referenced this issue Jan 5, 2015
@tamird
Copy link
Contributor

tamird commented Apr 21, 2015

triage: still reproduces.

$ DYLD_LIBRARY_PATH=../rust-build/x86_64-apple-darwin/stage1/lib \
  ../rust-build/x86_64-apple-darwin/stage1/bin/rustc -C codegen-units=2 \
  src/test/compile-fail/asm-src-loc-codegen-units.rs
thread 'codegen-1' panicked at 'Box<Any>', /Users/tamird/src/rust/src/libsyntax/diagnostic.rs:192
<rustc is hung here>

tamird added a commit to tamird/rust that referenced this issue May 12, 2015
We don't have any pending snapshot-requiring changes. Closes rust-lang#20184.
tamird added a commit to tamird/rust that referenced this issue May 12, 2015
We don't have any pending snapshot-requiring changes. Closes rust-lang#20184.
tamird added a commit to tamird/rust that referenced this issue May 13, 2015
We don't have any pending snapshot-requiring changes. Closes rust-lang#20184.
bors added a commit that referenced this issue May 14, 2015
We don't have any pending snapshot-requiring changes. Closes #20184.

Works toward #3965.
@tamird
Copy link
Contributor

tamird commented May 14, 2015

bah this should be reopened

@huonw huonw reopened this May 14, 2015
@dotdash
Copy link
Contributor

dotdash commented May 26, 2015

@nrc You wondered on irc why there's a hang on stage 1 but not on stage 2, and I'm not sure it's related, but stage 0 (which builds the compiler used during stage 1) compiles without landing pads, maybe that breaks something?

@nrc
Copy link
Member

nrc commented May 26, 2015

I'm 99% sure this is because we build stage1 without landing pads.

nrc added a commit to nrc/rust that referenced this issue May 26, 2015
@nrc
Copy link
Member

nrc commented May 26, 2015

See #16373, this led to a 19% improvement in build time, so we should not re-enable this test.

Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
Manishearth added a commit to Manishearth/rust that referenced this issue May 27, 2015
XMPPwocky pushed a commit to XMPPwocky/rust that referenced this issue May 29, 2015
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 16, 2020
…atsakis

Remove some `ignore-stage1` annotations.

These tests appear to no longer need the `ignore-stage1` marker.

- `run-make-fulldeps/issue-37839` and `run-make-fulldeps/issue-37893`: I believe these were due to the use of proc-macros, and probably were just missed in rust-lang#49219 which fixed the proc-macro compatibility.

- `compile-fail/asm-src-loc-codegen-units.rs`: This was due to an old issue with landing pads (as mentioned in the linked issue rust-lang#20184). `-Zno-landing-pads` was an option when building the first stage (it was much faster), but somewhere along the way (I think the switch from makefiles to rustbuild), the option was removed.
  - NOTE: This test doesn't actually test what it was originally written for, and is probably mostly pointless now. This test was asserting the message "build without -C codegen-units for more exact errors", but that was removed in rust-lang#42682. It is now in essence identical to `asm-src-loc.rs`.
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 16, 2020
…atsakis

Remove some `ignore-stage1` annotations.

These tests appear to no longer need the `ignore-stage1` marker.

- `run-make-fulldeps/issue-37839` and `run-make-fulldeps/issue-37893`: I believe these were due to the use of proc-macros, and probably were just missed in rust-lang#49219 which fixed the proc-macro compatibility.

- `compile-fail/asm-src-loc-codegen-units.rs`: This was due to an old issue with landing pads (as mentioned in the linked issue rust-lang#20184). `-Zno-landing-pads` was an option when building the first stage (it was much faster), but somewhere along the way (I think the switch from makefiles to rustbuild), the option was removed.
  - NOTE: This test doesn't actually test what it was originally written for, and is probably mostly pointless now. This test was asserting the message "build without -C codegen-units for more exact errors", but that was removed in rust-lang#42682. It is now in essence identical to `asm-src-loc.rs`.
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 16, 2020
…atsakis

Remove some `ignore-stage1` annotations.

These tests appear to no longer need the `ignore-stage1` marker.

- `run-make-fulldeps/issue-37839` and `run-make-fulldeps/issue-37893`: I believe these were due to the use of proc-macros, and probably were just missed in rust-lang#49219 which fixed the proc-macro compatibility.

- `compile-fail/asm-src-loc-codegen-units.rs`: This was due to an old issue with landing pads (as mentioned in the linked issue rust-lang#20184). `-Zno-landing-pads` was an option when building the first stage (it was much faster), but somewhere along the way (I think the switch from makefiles to rustbuild), the option was removed.
  - NOTE: This test doesn't actually test what it was originally written for, and is probably mostly pointless now. This test was asserting the message "build without -C codegen-units for more exact errors", but that was removed in rust-lang#42682. It is now in essence identical to `asm-src-loc.rs`.
Manishearth added a commit to Manishearth/rust that referenced this issue Jul 16, 2020
…atsakis

Remove some `ignore-stage1` annotations.

These tests appear to no longer need the `ignore-stage1` marker.

- `run-make-fulldeps/issue-37839` and `run-make-fulldeps/issue-37893`: I believe these were due to the use of proc-macros, and probably were just missed in rust-lang#49219 which fixed the proc-macro compatibility.

- `compile-fail/asm-src-loc-codegen-units.rs`: This was due to an old issue with landing pads (as mentioned in the linked issue rust-lang#20184). `-Zno-landing-pads` was an option when building the first stage (it was much faster), but somewhere along the way (I think the switch from makefiles to rustbuild), the option was removed.
  - NOTE: This test doesn't actually test what it was originally written for, and is probably mostly pointless now. This test was asserting the message "build without -C codegen-units for more exact errors", but that was removed in rust-lang#42682. It is now in essence identical to `asm-src-loc.rs`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants