Open amirmohammadeftekhar opened 2 months ago
Try running cargo build
in the dir. Output is suppressed by default, even if it fails.
Try running
cargo build
in the dir. Output is suppressed by default, even if it fails.
In the host? or inside the docker? I am a bit confused where.
Yeah it is a bit confusing. It's not polished. Generally I always built and ran the fuzzer on the host system, so yeah I meant run cargo build
on the host. The docker things are just to create the snapshot. (Ofc you can also run the fuzzer in docker if you pass in /dev/kvm
)
The error looks like this:
cargo build -r 2>&1
Compiling snapchange v0.1.0 (/home/amir/fuzzing/snapchange)
error[E0433]: failed to resolve: could not find `input_types` in the crate root
--> /home/amir/fuzzing/snapchange/src/lib.rs:1052:9
|
1052 | input_types::bytes::BytesMinimizeState,
| ^^^^^^^^^^^ could not find `input_types` in the crate root
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:96:1
|
96 | #![feature(exclusive_range_pattern)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:97:1
|
97 | #![feature(trait_alias)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:98:1
|
98 | #![feature(thread_id_value)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:99:1
|
99 | #![feature(map_try_insert)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:100:1
|
100 | #![feature(stdsimd)]
| ^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:101:1
|
101 | #![feature(avx512_target_feature)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/amir/fuzzing/snapchange/src/lib.rs:102:1
|
102 | #![feature(core_intrinsics)]
As the error says, you can't use stable rust, you need nightly rust. rustup override set nightly
should do the trick.
Still not solved completely:
error[E0433]: failed to resolve: could not find `input_types` in the crate root
--> /home/amir/fuzzing/snapchange/src/lib.rs:1052:9
|
1052 | input_types::bytes::BytesMinimizeState,
| ^^^^^^^^^^^ could not find `input_types` in the crate root
warning: unused import: `AtomicBool`
--> /home/amir/fuzzing/snapchange/src/commands/fuzz.rs:9:25
|
9 | use std::sync::atomic::{AtomicBool, Ordering};
| ^^^^^^^^^^
|
= note: `#[warn(unused_imports)]` on by default
warning: the feature `exclusive_range_pattern` has been stable since 1.80.0 and no longer requires an attribute to enable
--> /home/amir/fuzzing/snapchange/src/lib.rs:96:12
|
96 | #![feature(exclusive_range_pattern)]
| ^^^^^^^^^^^^^^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
error[E0635]: unknown feature `stdsimd`
--> /home/amir/fuzzing/snapchange/src/lib.rs:100:12
|
100 | #![feature(stdsimd)]
| ^^^^^^^
warning: use of deprecated method `indexmap::IndexMap::<K, V, S>::remove`: `remove` disrupts the map order -- use `swap_remove` or `shift_remove` for explicit behavior.
--> /home/amir/fuzzing/snapchange/src/fuzzvm.rs:902:25
|
902 | cov_bps.remove(addr);
| ^^^^^^
|
= note: `#[warn(deprecated)]` on by default
After running the install.sh in the main directory I tried to run the 4th example but I got this error:
The problem is it doesn't give more information for debugging.