cargo-fuzz icon indicating copy to clipboard operation
cargo-fuzz copied to clipboard

Cannot choose custom allocator

Open shahn opened this issue 7 years ago • 5 comments

Anything using a custom allocator cannot be fuzzed, even if the same allocator is chosen in the fuzzer script.

shahn avatar Apr 07 '17 19:04 shahn

Could you provide more information about the errors you see?

Manishearth avatar Apr 07 '17 19:04 Manishearth

Edit: added information about a different bug here, sorry :(

shahn avatar Apr 07 '17 21:04 shahn

Errors I get are these:

"cannot link together two allocators: custom_alloc and alloc_system". This happens even when I say "extern crate custom_alloc;" in the fuzzer_script. Somehow it always wants to pull in alloc_system

shahn avatar Apr 12 '17 13:04 shahn

Yeah, I see this error when I try to fuzz miri. I assume it has something to do with #![feature(rustc_private)].

dwrensha avatar May 08 '17 18:05 dwrensha

I think the new global_allocator attribute (RFC 1974) took care of it. Can you recheck?

whitequark avatar Oct 05 '17 02:10 whitequark