Skip to content

A lightweight WebAssembly runtime that is fast, secure, and standards-compliant

Disable mach ports during fuzzing (#11990)

Alex Crichton6b1c0dfc3f7e
diff --git a/crates/fuzzing/src/generators/config.rs b/crates/fuzzing/src/generators/config.rs
index defa348b28..ea1ca020b8 100644
--- a/crates/fuzzing/src/generators/config.rs
+++ b/crates/fuzzing/src/generators/config.rs
@@ -448,6 +448,15 @@ impl Config {
self.wasmtime.async_config.configure(&mut cfg);
}
+ // Fuzzing on macOS with mach ports seems to sometimes bypass the mach
+ // port handling thread entirely and go straight to asan's or fuzzing's
+ // signal handler. No idea why and for me at least it's just easier to
+ // disable mach ports when fuzzing because there's no need to use that
+ // over signal handlers.
+ if cfg!(target_vendor = "apple") {
+ cfg.macos_use_mach_ports(false);
+ }
+
return cfg;
}