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

panicked at 'called `Option::unwrap() during tests #211

Open
quentinlesceller opened this issue May 27, 2019 · 0 comments
Open

panicked at 'called `Option::unwrap() during tests #211

quentinlesceller opened this issue May 27, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@quentinlesceller
Copy link
Member

Rigs with CUDA installed and NVIDIA GPUs so I guess cargo test --all should pass.
However seems like there an unwrap on a None value and mine_cuckaroo_cuda_29/mine_cuckatoo_lean_cuda_19 tests never stop. Not sure if the first is related to the second.

quentin@quentin-rig:~/grin-miner$ cargo test --all
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running target/debug/deps/cuckoo_miner-9a5e3b31612b198e

running 2 tests
test miner::consensus::tests::proof_difficulty ... ok
test miner::consensus::tests::proof_hash ... ok

test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out

     Running target/debug/deps/miner-6f2e3bc6a6612052

running 11 tests
test mine_cuckaroo_mean_cpu_compat_19 ... ignored
test mine_cuckatoo_lean_compat_cpu_31 ... ignored
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', src/libcore/option.rs:345:21
stack backtrace:
   0:     0x556fdbd4ef93 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h50ebfb8734a81144
                               at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39
   1:     0x556fdbd4a8ab - std::sys_common::backtrace::_print::hc7fdae4fb6b58d2d
                               at src/libstd/sys_common/backtrace.rs:71
   2:     0x556fdbd4dcd6 - std::panicking::default_hook::{{closure}}::hc55d0892611a29ff
                               at src/libstd/sys_common/backtrace.rs:59
                               at src/libstd/panicking.rs:197
   3:     0x556fdbd4da69 - std::panicking::default_hook::h3c8a3df5d3469668
                               at src/libstd/panicking.rs:211
   4:     0x556fdbd4e3df - std::panicking::rust_panic_with_hook::h24c9a1c35b1f49cc
                               at src/libstd/panicking.rs:474
   5:     0x556fdbd4df61 - std::panicking::continue_panic_fmt::h8ed9632bdd4b9299
                               at src/libstd/panicking.rs:381
   6:     0x556fdbd4de45 - rust_begin_unwind
                               at src/libstd/panicking.rs:308
   7:     0x556fdbd63b8c - core::panicking::panic_fmt::h0d6d5c8b201e3246
                               at src/libcore/panicking.rs:85
   8:     0x556fdbd63acb - core::panicking::panic::h5137ce59069236b2
                               at src/libcore/panicking.rs:49
   9:     0x556fdbbfb6ff - core::option::Option<T>::unwrap::hb54de68d212c5c4e
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libcore/macros.rs:12
  10:     0x556fdbbe3226 - cuckoo_miner::miner::miner::CuckooMiner::solver_thread::he1507456e1d5642e
                               at cuckoo-miner/src/miner/miner.rs:95
  11:     0x556fdbbfbd40 - cuckoo_miner::miner::miner::CuckooMiner::start_solvers::{{closure}}::h188e28cb2ac3d0bb
                               at cuckoo-miner/src/miner/miner.rs:226
  12:     0x556fdbbfd5b4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h7737ceae7328ff2b
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/sys_common/backtrace.rs:136
  13:     0x556fdbbe8733 - std::thread::Builder::spawn_unchecked::{{closure}}::{{closure}}::h86c1fc240dc884cb
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/thread/mod.rs:470
  14:     0x556fdbbf74e3 - <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::he9fab614b15935de
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/panic.rs:309
  15:     0x556fdbbff18f - std::panicking::try::do_call::he7067a733177cdcb
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/panicking.rs:293
  16:     0x556fdbd51469 - __rust_maybe_catch_panic
                               at src/libpanic_unwind/lib.rs:87
  17:     0x556fdbbfef45 - std::panicking::try::h06b46f4a301dc1c2
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/panicking.rs:272
  18:     0x556fdbbf7525 - std::panic::catch_unwind::h7c61aa97e8b4a9f2
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/panic.rs:388
  19:     0x556fdbbe84c5 - std::thread::Builder::spawn_unchecked::{{closure}}::h61fcee6fade9a71b
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libstd/thread/mod.rs:469
  20:     0x556fdbbc4e43 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hbdfc3648374f0644
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/libcore/ops/function.rs:231
  21:     0x556fdbd4188e - <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once::h4cac16ae2114a837
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/liballoc/boxed.rs:702
  22:     0x556fdbd50b0f - std::sys::unix::thread::Thread::new::thread_start::h2adc1b80820f790e
                               at /rustc/3c235d5600393dfe6c36eeed34042efad8d4f26e/src/liballoc/boxed.rs:702
                               at src/libstd/sys_common/thread.rs:14
                               at src/libstd/sys/unix/thread.rs:80
  23:     0x7f08647b26da - start_thread
  24:     0x7f08642c388e - __clone
  25:                0x0 - <unknown>
test mine_cuckatoo_lean_compat_cpu_19 ... ok
test mine_cuckatoo_lean_cuda_31 ... ignored
test mine_cuckatoo_mean_compat_cpu_31 ... ignored
test mine_cuckaroo_mean_cpu_compat_29 ... ok
test mine_cuckatoo_mean_cpu_compat_19 ... ok
test mine_cuckatoo_mean_cuda_31 ... ignored
test mine_cuckatoo_mean_cuda_19 ... ok
test mine_cuckaroo_cuda_29 ... test mine_cuckaroo_cuda_29 has been running for over 60 seconds
test mine_cuckatoo_lean_cuda_19 ... test mine_cuckatoo_lean_cuda_19 has been running for over 60 seconds
@quentinlesceller quentinlesceller added the bug Something isn't working label May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant