Skip to content

Crash when running tests

Hi,

I got the following crash when running tests. Arch linux kernel 6.15.1-arch1-2

--- test_trace_self_memory_operations stdout ----
Starting self-trace for PID: 401298

thread 'test_trace_self_memory_operations' panicked at tests/integration_test.rs:45:5:
assertion `left == right` failed
  left: 3
 right: 5
stack backtrace:
   0:     0x5623c44dbf32 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::h3f8c3dd932aac897
   1:     0x5623c44ffe03 - core::fmt::write::hd6ab3a20c1c5f4bd
   2:     0x5623c44d9403 - std::io::Write::write_fmt::hd8dd301166f1dc93
   3:     0x5623c44dbd82 - std::sys::backtrace::BacktraceLock::print::h41974ddf0501771c
   4:     0x5623c44dd46c - std::panicking::default_hook::{{closure}}::h44b88da2fab8c7a1
   5:     0x5623c44dd2c2 - std::panicking::default_hook::hbce059d0e0b156ee
   6:     0x5623c441a104 - test::test_main_with_exit_callback::{{closure}}::h59c128e87dcb9af2
   7:     0x5623c44ddee3 - std::panicking::rust_panic_with_hook::h22cab234247135f5
   8:     0x5623c44ddbba - std::panicking::begin_panic_handler::{{closure}}::h219b9bc76e1576a5
   9:     0x5623c44dc439 - std::sys::backtrace::__rust_end_short_backtrace::hc992ddca6284c9fe
  10:     0x5623c44dd84d - __rustc[12f4a3d4a4a186a5]::rust_begin_unwind
  11:     0x5623c43df550 - core::panicking::panic_fmt::h1edc4af72b2f91de
  12:     0x5623c43df8a3 - core::panicking::assert_failed_inner::h9f890822b2c0af56
  13:     0x5623c43df7c5 - core::panicking::assert_failed::h6afa345d3bc1a7a0
  14:     0x5623c43e0e6e - integration_test::test_trace_self_memory_operations::hb855bdad9785f21f
                               at /home/aurel/work/cvstrees/emt/tests/integration_test.rs:45:5
  15:     0x5623c43e1637 - integration_test::test_trace_self_memory_operations::{{closure}}::hc28ed77727bced92
                               at /home/aurel/work/cvstrees/emt/tests/integration_test.rs:26:39
  16:     0x5623c43e1466 - core::ops::function::FnOnce::call_once::h83b9f383f72db6af
                               at /usr/src/debug/rust/rustc-1.88.0-src/library/core/src/ops/function.rs:250:5
  17:     0x5623c441f8db - test::__rust_begin_short_backtrace::h7f65a6eb660c4089
  18:     0x5623c441eb12 - test::run_test::{{closure}}::h8999d94395ea3333
  19:     0x5623c43e3204 - std::sys::backtrace::__rust_begin_short_backtrace::h2dc5537b62323550
  20:     0x5623c43e6afa - core::ops::function::FnOnce::call_once{{vtable.shim}}::h3df0acb6196a0f80
  21:     0x5623c44df6cb - std::sys::pal::unix::thread::Thread::new::thread_start::h5625c067a36a7978
  22:     0x7f080f98e7eb - <unknown>
  23:     0x7f080fa1218c - <unknown>
  24:                0x0 - <unknown>


failures:
    test_trace_self_memory_operations

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.48s

error: test failed, to rerun pass `--test integration_test`