edef1c / libfringe

a Rust library implementing safe, lightweight context switches, without relying on kernel services
https://edef1c.github.io/libfringe
Apache License 2.0
512 stars 31 forks source link

Crash when run test on linux #75

Open Xudong-Huang opened 6 years ago

Xudong-Huang commented 6 years ago

Below is the output

$ cargo test --release
   Compiling fringe v1.2.1 (file:///home/ubuntu/Project/rust/libfringe)
    Finished release [optimized] target(s) in 5.91 secs
     Running target/release/deps/fringe-cfa403e779d7269b

running 5 tests
test arch::tests::context ... ok
test arch::tests::context_simd ... ok
test arch::tests::swap ... ok
error: process didn't exit successfully: `/home/ubuntu/Project/rust/libfringe/target/release/deps/fringe-cfa403e779d7269b` (signal: 4, SIGILL: illegal instruction)
cargo test --release  7.44s user 3.98s system 179% cpu 6.352 total

$ rustc --version
rustc 1.25.0-nightly (a0dcecff9 2018-01-24)

seems that could not hanle panic properly.

Amanieu commented 6 years ago

Can you try the branch in #70 to see if this fixes your issue?

Xudong-Huang commented 6 years ago

Thanks! the branch works!

Amanieu commented 6 years ago

We should probably keep this issue open until this is fixed in master.