Test failed on linux
Created by: lucklove
The dialog show:
[lucklove@host libmalloc]$ cargo test
Running target/debug/libmalloc-4db87f0d18430e04
running 20 tests
test brk_box::test::test_box ... ok
error: Process didn't exit successfully: `/tmp/libmalloc/target/debug/libmalloc-4db87f0d18430e04` (signal: 11, SIGSEGV: invalid memory reference)
To learn more, run the command again with --verbose.
The gdb show:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055feaa4e3891 in libmalloc::ptr::write<libmalloc::testing::Dropper> (dst=0x55fec428a000, src=...)
at ../src/libcore/ptr.rs:161
161 ../src/libcore/ptr.rs: No such file or directory.
[Current thread is 1 (Thread 0x7f5513dfd700 (LWP 4516))]
(gdb) bt
#0 0x000055feaa4e3891 in libmalloc::ptr::write<libmalloc::testing::Dropper> (dst=0x55fec428a000, src=Dropper = {...})
at ../src/libcore/ptr.rs:161
#1 0x000055feaa4ea97f in libmalloc::brk_box::BrkBox<T>::new (inner=Dropper = {...}) at src/brk_box.rs:28
#2 0x000055feaa4e9b22 in libmalloc::brk_box::test::test_drop () at src/brk_box.rs:85
#3 0x000055feaa50bbf7 in boxed::F.FnBox$LT$A$GT$::call_box::h10925864461018816449 ()
#4 0x000055feaa50e2ec in sys_common::unwind::try::try_fn::h1648722189644361502 ()
#5 0x000055feaa5308ec in __rust_try ()
#6 0x000055feaa53087e in sys_common::unwind::inner_try::hb03b5ba803fe3846eGt ()
#7 0x000055feaa50e66b in boxed::F.FnBox$LT$A$GT$::call_box::h8960303290476843544 ()
#8 0x000055feaa5330e5 in sys::thread::Thread::new::thread_start::he757b2d54c3a38835Ey ()
#9 0x00007f5515f18424 in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f5515a41cbd in clone () from /usr/lib/libc.so.6