implement Debug for EventManagerId
This commit is contained in:
parent
b4aa22458d
commit
9eba674467
@ -16,7 +16,7 @@ use libafl::{
|
|||||||
ondisk::OnDiskMetadataFormat, Corpus, IndexesLenTimeMinimizerCorpusScheduler, OnDiskCorpus,
|
ondisk::OnDiskMetadataFormat, Corpus, IndexesLenTimeMinimizerCorpusScheduler, OnDiskCorpus,
|
||||||
QueueCorpusScheduler,
|
QueueCorpusScheduler,
|
||||||
},
|
},
|
||||||
events::EventConfig,
|
events::{llmp::LlmpRestartingEventManager, EventConfig, HasEventManagerId},
|
||||||
executors::{
|
executors::{
|
||||||
inprocess::InProcessExecutor, timeout::TimeoutExecutor, Executor, ExitKind, HasObservers,
|
inprocess::InProcessExecutor, timeout::TimeoutExecutor, Executor, ExitKind, HasObservers,
|
||||||
ShadowExecutor,
|
ShadowExecutor,
|
||||||
@ -294,9 +294,13 @@ unsafe fn fuzz(
|
|||||||
|
|
||||||
let shmem_provider = StdShMemProvider::new()?;
|
let shmem_provider = StdShMemProvider::new()?;
|
||||||
|
|
||||||
let mut run_client = |state: Option<StdState<_, _, _, _, _>>, mut mgr, _core_id| {
|
let mut run_client = |state: Option<StdState<_, _, _, _, _>>,
|
||||||
|
mut mgr: LlmpRestartingEventManager<_, _, _, _>,
|
||||||
|
_core_id| {
|
||||||
// The restarting state will spawn the same process again as child, then restarted it each time it crashes.
|
// The restarting state will spawn the same process again as child, then restarted it each time it crashes.
|
||||||
|
|
||||||
|
// println!("{:?}", mgr.mgr_id());
|
||||||
|
|
||||||
let lib = libloading::Library::new(module_name).unwrap();
|
let lib = libloading::Library::new(module_name).unwrap();
|
||||||
let target_func: libloading::Symbol<
|
let target_func: libloading::Symbol<
|
||||||
unsafe extern "C" fn(data: *const u8, size: usize) -> i32,
|
unsafe extern "C" fn(data: *const u8, size: usize) -> i32,
|
||||||
|
@ -19,7 +19,7 @@ use crate::{
|
|||||||
|
|
||||||
/// A per-fuzzer unique `ID`, usually starting with `0` and increasing
|
/// A per-fuzzer unique `ID`, usually starting with `0` and increasing
|
||||||
/// by `1` in multiprocessed `EventManager`s, such as [`self::llmp::LlmpEventManager`].
|
/// by `1` in multiprocessed `EventManager`s, such as [`self::llmp::LlmpEventManager`].
|
||||||
#[derive(Clone, Copy, PartialEq, Eq)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||||
pub struct EventManagerId {
|
pub struct EventManagerId {
|
||||||
/// The id
|
/// The id
|
||||||
pub id: usize,
|
pub id: usize,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user