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

Nightly: thread '<unnamed>' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13 #56867

Closed
sstangl opened this issue Dec 16, 2018 · 15 comments
Assignees
Labels
A-linkage Area: linking into static, shared libraries and binaries P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@sstangl
Copy link
Contributor

sstangl commented Dec 16, 2018

Our Rocket-based code is failing since this morning (2018-12-15). It's using the Nightly rust Docker image as a base.

The backtrace is available here: https://gitlab.com/openpowerlifting/opl-data/-/jobs/135130101

It seems to be failing in a doctest. The code wasn't changed recently; the change is likely in rustc since yesterday or the day before that.

To reproduce, you should be able to git clone https://gitlab.com/openpowerlifting/opl-data.git and then cd modules/opltypes and cargo test.

---- src/event.rs - event::Event::sd (line 67) stdout ----
error: linking with `cc` failed: exit code: 1
  |
  = note: "cc" "-Wl,--as-needed" "-Wl,-z,noexecstack" "-m64" "-L" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.0.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.1.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.10.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.11.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.12.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.13.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.14.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.2.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.3.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.4.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.5.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.6.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.7.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.8.rcgu.o" "/tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.9.rcgu.o" "-o" "/tmp/rustdoctestvHfhvp/rust_out" "/tmp/rustdoctestvHfhvp/rust_out.33dyzt1ekirinwy8.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/builds/openpowerlifting/opl-data/target/debug/deps" "-L" "/builds/openpowerlifting/opl-data/target/debug/build/backtrace-sys-ab9883be4cf29b13/out" "-L" "/builds/openpowerlifting/opl-data/target/debug/build/ring-3ef0e65adf8c5eff/out" "-L" "/builds/openpowerlifting/opl-data/target/debug/deps" "-L" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/builds/openpowerlifting/opl-data/target/debug/deps/libopltypes-4a9187ba4ef56f30.rlib" "/builds/openpowerlifting/opl-data/target/debug/deps/libstrum-d22f46e956b7b8a9.rlib" "/builds/openpowerlifting/opl-data/target/debug/deps/libserde-9db5e99214d56f64.rlib" "-Wl,--start-group" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-635e0ff12adf0a0e.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-6e856946e5dde60c.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-5db8f2a07b5e4a3f.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-67bc42cf8da35f06.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-f6364059e4ec22fe.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-52c0b8a76b5c5e7d.rlib" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-34032f5d0b4c1746.rlib" "-Wl,--end-group" "/usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-2df59bcd1656c57e.rlib" "-Wl,-Bdynamic" "-ldl" "-lrt" "-lpthread" "-lgcc_s" "-lc" "-lm" "-lrt" "-lpthread" "-lutil" "-lutil"
  = note: /tmp/rustdoctestvHfhvp/rust_out.rust_out.7rcbfp3g-cgu.9.rcgu.o: In function `std::panicking::begin_panic':
          rust_out.7rcbfp3g-cgu.9:(.text._ZN3std9panicking11begin_panic17h5b12128523b7d438E+0x40): undefined reference to `std::panicking::rust_panic_with_hook'
          collect2: error: ld returned 1 exit status
          

thread '<unnamed>' panicked at 'couldn't compile the test', src/librustdoc/test.rs:326:13
@ghost
Copy link

ghost commented Dec 16, 2018

I'm witnessing very similar linking errors in doctests of crossbeam-channel:

https://travis-ci.org/crossbeam-rs/crossbeam/jobs/468644578#L1083

@Centril Centril added the A-linkage Area: linking into static, shared libraries and binaries label Dec 16, 2018
@Centril
Copy link
Contributor

Centril commented Dec 16, 2018

cc @nagisa

@nagisa nagisa added the regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. label Dec 16, 2018
@nagisa
Copy link
Member

nagisa commented Dec 16, 2018

There are quite a few rollups in the regression-range that it is hard see which one exactly could be to blame.

@nagisa
Copy link
Member

nagisa commented Dec 16, 2018

Observations:

@alexcrichton alexcrichton added this to Triaged in 1.33 regressions via automation Dec 18, 2018
@pnkfelix
Copy link
Member

T-compiler triage: P-high

@pnkfelix pnkfelix added P-high High priority T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Dec 20, 2018
@pnkfelix
Copy link
Member

triage: assigning to @nagisa

@nagisa
Copy link
Member

nagisa commented Dec 20, 2018

@stjepang can you confirm that crossbeam-rs/crossbeam#268 fixes the issue in crossbeam?

@ghost
Copy link

ghost commented Dec 20, 2018

@nagisa Unfortunately, it doesn't.

That PR only affects crossbeam-skiplist, not crossbeam-channel (whose doctests are failing).

@nagisa
Copy link
Member

nagisa commented Jan 10, 2019

I would like an issue for crossbeam to be filled separately. It appears that at least from the reproducibility standpoint these two issues are different and I wouldn’t want for the crossbeam issue to get lost in case we end up closing this ticket as “cannot reproduce and author has never responded”.

@ghost
Copy link

ghost commented Jan 10, 2019

@nagisa It seems the issue in crossbeam has resolved itself with a nightly update a few weeks ago.

@nikomatsakis
Copy link
Contributor

Discussed in the @rust-lang/compiler meeting. Some notes:

  • We'd like to separate out the crossbeam issue, which seems separate (and maybe fixed, @nagisa wants to confirm).
  • @sstangl -- are you still having a problem? are you able to produce a smaller test case at all? @nagisa was unable to reproduce.

@nagisa
Copy link
Member

nagisa commented Jan 10, 2019

Hey @sstangl, could you try seeing if the issue has also fixed itself on your project as well? If it hasn’t, then we would love a more thorough list of reproduction steps and/or description of environment in which the issue could be reproduced.

@sstangl
Copy link
Contributor Author

sstangl commented Jan 10, 2019

@nagisa It seems to have been fixed in our project also, and hasn't reproduced for a while.

@nagisa
Copy link
Member

nagisa commented Jan 11, 2019

Okay, I have confirmed that indeed the crossbeam issue is fixed in the most recent nightly and is not reproducible in beta, although I could not bisect what exactly fixed this because of lacking tooling support for inverted statuses.

@nagisa nagisa closed this as completed Jan 11, 2019
@nagisa
Copy link
Member

nagisa commented Jan 11, 2019

This has been fixed by 01c6ea2.

@jonas-schievink jonas-schievink moved this from Triaged to Fixed in 1.33 regressions Apr 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries P-high High priority regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
No open projects
Development

No branches or pull requests

5 participants