I am trying to debug a loom test which is failing, but I am having issues using the checkpoint.
When I run:
$ RUST_BACKTRACE=full RUSTFLAGS='--cfg loom' cargo +nightly test --test loom --release
I get: " process didn't exit successfully: . . . (signal: 4, SIGILL: illegal instruction)"
When I try to run with checkpointing I get issues on resolving imports:
$ LOOM_CHECKPOINT_FILE=fpath.txt RUST_BACKTRACE=full RUSTFLAGS='--cfg loom --cfg feature="checkpoint"' cargo +nightly test --test loom --release
Compiling generator v0.7.0
Compiling loom v0.5.1
error[E0432]: unresolved import serde
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/object.rs:8:5
|
8 | use serde::{Deserialize, Serialize};
| ^^^^^ use of undeclared crate or module serde
error[E0432]: unresolved import serde
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:4:5
|
4 | use serde::{Deserialize, Serialize};
| ^^^^^ use of undeclared crate or module serde
error[E0432]: unresolved import serde
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/vv.rs:4:5
|
4 | use serde::{Deserialize, Serialize};
| ^^^^^ use of undeclared crate or module serde
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/object.rs:12:43
|
12 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/object.rs:12:54
|
12 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/object.rs:36:43
|
36 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/object.rs:36:54
|
36 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:8:43
|
8 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:8:54
|
8 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:28:43
|
28 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:28:54
|
28 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:45:43
|
45 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:45:54
|
45 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:58:43
|
58 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:58:54
|
58 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:63:47
|
63 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:63:58
|
63 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:71:43
|
71 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/path.rs:71:54
|
71 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Serialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/vv.rs:9:43
|
9 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error: cannot determine resolution for the derive macro Deserialize
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/rt/vv.rs:9:54
|
9 | #[cfg_attr(feature = "checkpoint", derive(Serialize, Deserialize))]
| ^^^^^^^^^^^
|
= note: import resolution is stuck, try simplifying macro imports
error[E0433]: failed to resolve: use of undeclared crate or module serde_json
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/model.rs:244:9
|
244 | serde_json::from_str(&contents).unwrap()
| ^^^^^^^^^^ use of undeclared crate or module serde_json
error[E0433]: failed to resolve: use of undeclared crate or module serde_json
--> /home/matan/.cargo/registry/src/github.com-1ecc6299db9ec823/loom-0.5.1/src/model.rs:248:26
|
248 | let serialized = serde_json::to_string(path).unwrap();
| ^^^^^^^^^^ use of undeclared crate or module serde_json
error: aborting due to 23 previous errors
Some errors have detailed explanations: E0432, E0433.
For more information about an error, try rustc --explain E0432
.
error: could not compile loom
To learn more, run the command again with --verbose.