matklad / once_cell

Rust library for single assignment cells and lazy statics without macros
Apache License 2.0
1.87k stars 109 forks source link

reentrant_init test failure with --all-targets #79

Closed tsipinakis closed 4 years ago

tsipinakis commented 4 years ago

Greetings, and happy new year!

The test suite appears to fail in the sync::reentrant_init test when run with cargo test --all-targets (but doesn't with just cargo test).

The stack trace is as follows:


---- sync::reentrant_init stdout ----
thread 'sync::reentrant_init' panicked at 'assertion failed: status.is_none()', tests/test.rs:350:9
stack backtrace:
   0:     0x55aa63377cf4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h6001c6574450335d
   1:     0x55aa6338d22d - core::fmt::write::h1371734f6a7c7bc2
   2:     0x55aa63331565 - std::io::Write::write_fmt::ha6d561f190cc5912
   3:     0x55aa633643c1 - std::io::impls::<impl std::io::Write for alloc::boxed::Box<W>>::write_fmt::h1de9f5ec2c74a780
   4:     0x55aa63364ede - std::panicking::default_hook::{{closure}}::h6b521085a6513c53
   5:     0x55aa63364b9c - std::panicking::default_hook::h3e3fe9b536fd99f6
   6:     0x55aa633655db - std::panicking::rust_panic_with_hook::h3d899269d6b7f8f7
   7:     0x55aa6335e4f3 - std::panicking::begin_panic::hc67d418dc3fe3d98
                               at /usr/src/rustc-1.40.0/src/libstd/panicking.rs:400
   8:     0x55aa632c0484 - test::sync::reentrant_init::h281713b044a4a0c1
                               at tests/test.rs:350
   9:     0x55aa632d4d4a - test::sync::reentrant_init::{{closure}}::h9a26eaa5659f3d87
                               at tests/test.rs:336
  10:     0x55aa632e881e - core::ops::function::FnOnce::call_once::h5b6b6c6f4f63e9b7
                               at /usr/src/rustc-1.40.0/src/libcore/ops/function.rs:227
  11:     0x55aa63331eef - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::hd586378c9bb2abbc
  12:     0x55aa6337abaa - __rust_maybe_catch_panic
  13:     0x55aa63321219 - test::run_test_in_process::h7de01b294f4e09d2
  14:     0x55aa6333bd94 - std::sys_common::backtrace::__rust_begin_short_backtrace::h077e61fe8bdd091e
  15:     0x55aa6333a4b6 - std::panicking::try::do_call::h191072eb013e1a97
  16:     0x55aa6337abaa - __rust_maybe_catch_panic
  17:     0x55aa6333c6b6 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h4f6d916d153df1e1
  18:     0x55aa63377a3f - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h7b37a6511d71662e
  19:     0x55aa633645e0 - std::sys_common::thread::start_thread::he871463c58c2bb1d
  20:     0x55aa63377116 - std::sys::unix::thread::Thread::new::thread_start::hed40406955dfe956
  21:     0x7f59d59b3fb7 - start_thread
  22:     0x7f59d58cb2df - __clone
  23:                0x0 - <unknown>

You can find the full build log here