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

task '<unnamed>' panicked at 'no entry found for key' #885

Closed
sfackler opened this issue Nov 15, 2014 · 4 comments · Fixed by #893
Closed

task '<unnamed>' panicked at 'no entry found for key' #885

sfackler opened this issue Nov 15, 2014 · 4 comments · Fixed by #893

Comments

@sfackler
Copy link
Member

I'm running into this trying to make phf_mac depend on the external libtime: rust-phf/rust-phf#25

~/rust/rust-phf/phf ❯ env RUST_BACKTRACE=1 cargo test
   Compiling gcc v0.0.1 (https://github.com/alexcrichton/gcc-rs#f25b3ba9)
   Compiling xxhash v0.0.1 (https://github.com/Jurily/rust-xxhash#6027ce91)
task '<unnamed>' panicked at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:315
stack backtrace:
   1:        0x1049071ff - rt::backtrace::imp::write::h37f6e30fade15cb76mt
   2:        0x10490a346 - failure::on_fail::h4075de659ea4adb9VDt
   3:        0x10491d4b5 - unwind::begin_unwind_inner::h9e12d6856ac2af42j1c
   4:        0x10491d0ff - unwind::begin_unwind_fmt::h33dbc42dd8f8d8deLYc
   5:        0x10491cea2 - rust_begin_unwind
   6:        0x10493b23c - panicking::panic_fmt::h978eb48028f4b27068j
   7:        0x1046c8bf6 - ops::cargo_rustc::rustc::closure.26082
   8:        0x104677604 - ops::cargo_rustc::custom_build::prepare::closure.24499
   9:        0x10477a4e3 - ops::cargo_rustc::compile::closure.25910
  10:        0x1046a6c29 - ops::cargo_rustc::job_queue::JobQueue<'a, 'b>::run::closure.25521
  11:        0x1047775fa - util::pool::TaskPool::new::closure.29542
  12:        0x104593a3d - task::NativeSpawner.Spawner::spawn::closure.2551
  13:        0x10491dfdc - rust_try_inner
  14:        0x10491dfc6 - rust_try
  15:        0x10491b4b7 - unwind::try::h009a35089a5882701Pc
  16:        0x10491b38c - task::Task::run::h4878cb7b665069bf61b
  17:        0x104593863 - task::NativeSpawner.Spawner::spawn::closure.2475
  18:        0x10491c497 - thread::thread_start::h8e83ad43ae75daab3mc
  19:     0x7fff84eea2fc - _pthread_body
  20:     0x7fff84eea279 - _pthread_body
   Compiling phf v0.0.0 (file:///Users/sfackler/rust/rust-phf/phf)
task '<unnamed>' panicked at 'Poisoned Mutex - another task failed inside!', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsync/lock.rs:46
stack backtrace:
   1:        0x1049071ff - rt::backtrace::imp::write::h37f6e30fade15cb76mt
   2:        0x10490a346 - failure::on_fail::h4075de659ea4adb9VDt
   3:        0x10491d4b5 - unwind::begin_unwind_inner::h9e12d6856ac2af42j1c
   4:        0x10491d0ff - unwind::begin_unwind_fmt::h33dbc42dd8f8d8deLYc
   5:        0x10491cea2 - rust_begin_unwind
   6:        0x10493b23c - panicking::panic_fmt::h978eb48028f4b27068j
   7:        0x10491978c - lock::PoisonOnFail<'a>::new::h625ff057ce3c6d22P0e
   8:        0x1046c7382 - ops::cargo_rustc::rustc::closure.26082
   9:        0x104677604 - ops::cargo_rustc::custom_build::prepare::closure.24499
  10:        0x10477a4e3 - ops::cargo_rustc::compile::closure.25910
  11:        0x1046a6c29 - ops::cargo_rustc::job_queue::JobQueue<'a, 'b>::run::closure.25521
  12:        0x1047775fa - util::pool::TaskPool::new::closure.29542
  13:        0x104593a3d - task::NativeSpawner.Spawner::spawn::closure.2551
  14:        0x10491dfdc - rust_try_inner
  15:        0x10491dfc6 - rust_try
  16:        0x10491b4b7 - unwind::try::h009a35089a5882701Pc
  17:        0x10491b38c - task::Task::run::h4878cb7b665069bf61b
  18:        0x104593863 - task::NativeSpawner.Spawner::spawn::closure.2475
  19:        0x10491c497 - thread::thread_start::h8e83ad43ae75daab3mc
  20:     0x7fff84eea2fc - _pthread_body
  21:     0x7fff84eea279 - _pthread_body
^Cfish: Job 1, 'env RUST_BACKTRACE=1 cargo test' terminated by signal SIGINT (Quit request from job control (^C))
@reem
Copy link

reem commented Nov 16, 2014

This looks very similar to the bug fixed by #842: #838, which was a similar bug with a similar setup to rust-phf.

@alexcrichton
Copy link
Member

This is a tricky one and is definitely different than #838. I've figured out what the problem is locally and should hopefully get a fix soon.

alexcrichton added a commit to alexcrichton/cargo that referenced this issue Nov 17, 2014
This fixes a bug in cargo where target executables and libraries would be linked
to plugin native dependencies (not wanted!).

Closes rust-lang#885
bors added a commit that referenced this issue Nov 18, 2014
This fixes a bug in cargo where target executables and libraries would be linked
to plugin native dependencies (not wanted!).

Closes #885
@bors bors closed this as completed in #893 Nov 18, 2014
@SSheldon
Copy link

SSheldon commented Dec 6, 2014

This should be fixed in cargo 0.0.1-pre-nightly (da789a6 2014-11-30 08:14:16 +0000), right? I'm still seeing it:

$ RUST_BACKTRACE=1 cargo test
   Compiling gcc v0.1.0
task '<unnamed>' panicked at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:325
stack backtrace:
   1:        0x103659f22 - rt::backtrace::imp::write::hbe96aaedb9f233e5Tgt
   2:        0x10365ce36 - failure::on_fail::h00a79ab4c301b861MCt
   3:        0x10366ebe5 - unwind::begin_unwind_inner::h8917945a32f94139I2c
   4:        0x10366e82f - unwind::begin_unwind_fmt::had3b3ebf7d62a941TZc
   5:        0x10366e5d2 - rust_begin_unwind
   6:        0x10368dc7c - panicking::panic_fmt::h16b0ef2a4086fcd4WRl
   7:        0x103414422 - ops::cargo_rustc::rustc::closure.26228
   8:        0x1033c4a61 - ops::cargo_rustc::custom_build::prepare::closure.24604
   9:        0x1034dfec3 - ops::cargo_rustc::compile::closure.26073
  10:        0x1033f3f6d - ops::cargo_rustc::job_queue::JobQueue<'a, 'b>::run::closure.25657
  11:        0x1034dcd5a - util::pool::TaskPool::new::closure.29903
  12:        0x10366cc5d - task::Task::spawn::closure.5925
  13:        0x10366f76c - rust_try_inner
  14:        0x10366f756 - rust_try
  15:        0x10366ccf7 - unwind::try::h87a1bf4088a7340a3Qc
  16:        0x10366cb0c - task::Task::run::he655a378e4b8f8b893b
  17:        0x10366c86f - task::Task::spawn::closure.5901
  18:        0x10366dde7 - thread::thread_start::h83a5d756a5e3479fWnc
  19:     0x7fff8209e899 - _pthread_body
  20:     0x7fff8209e72a - _pthread_struct_init
   Compiling objc v0.0.1 (file:///Users/ssheldon/projects/rust-objc/core)
task '<unnamed>' panicked at 'Poisoned Mutex - another task failed inside!', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libsync/lock.rs:48
stack backtrace:
   1:        0x103659f22 - rt::backtrace::imp::write::hbe96aaedb9f233e5Tgt
   2:        0x10365ce36 - failure::on_fail::h00a79ab4c301b861MCt
   3:        0x10366ebe5 - unwind::begin_unwind_inner::h8917945a32f94139I2c
   4:        0x10366e82f - unwind::begin_unwind_fmt::had3b3ebf7d62a941TZc
   5:        0x10366e5d2 - rust_begin_unwind
   6:        0x10368dc7c - panicking::panic_fmt::h16b0ef2a4086fcd4WRl
   7:        0x10366a6ef - lock::PoisonOnFail<'a>::new::hf51d6bd4b0a51923uoe
   8:        0x103412bac - ops::cargo_rustc::rustc::closure.26228
   9:        0x1033c4a61 - ops::cargo_rustc::custom_build::prepare::closure.24604
  10:        0x1034dfec3 - ops::cargo_rustc::compile::closure.26073
  11:        0x1033f3f6d - ops::cargo_rustc::job_queue::JobQueue<'a, 'b>::run::closure.25657
  12:        0x1034dcd5a - util::pool::TaskPool::new::closure.29903
  13:        0x10366cc5d - task::Task::spawn::closure.5925
  14:        0x10366f76c - rust_try_inner
  15:        0x10366f756 - rust_try
  16:        0x10366ccf7 - unwind::try::h87a1bf4088a7340a3Qc
  17:        0x10366cb0c - task::Task::run::he655a378e4b8f8b893b
  18:        0x10366c86f - task::Task::spawn::closure.5901
  19:        0x10366dde7 - thread::thread_start::h83a5d756a5e3479fWnc
  20:     0x7fff8209e899 - _pthread_body
  21:     0x7fff8209e72a - _pthread_struct_init

I have a crate with a local dependency that has a build dependency on the crates.io gcc crate and uses a build script: https://github.com/SSheldon/rust-objc/tree/031a9ac91c7f272e73b2a3bef304e6dbbdaa5137

@alexcrichton
Copy link
Member

@SSheldon I believe I fixed that panic in this PR: #1020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants