Open jmid opened 5 years ago
I also run into the same problem. dune runtest
on macos, results in
15:39.20:[INFO]0 available cores detected!
I investigate it a bit, and this issue is because the command afl-getcpu
has different outputs for macos and Linux:
in macos:
$ afl-gotcpu
afl-gotcpu 2.52b by <lcamtuf@google.com>
[*] Measuring gross preemption rate (this will take 5.00 sec)...
>>> PASS: You can probably run additional processes. <<<
in Linux:
$ afl-gotcpu
afl-gotcpu 2.49b by <lcamtuf@google.com>
[*] Measuring per-core preemption rate (this will take 1.00 sec)...
Core #0: CAUTION (231%)
>>> CAUTION: You may still have 1 core available. <<<
You can also see this in the implementation of afl-gotcpu.
The problem is here:the number of cpu availables cannot be extracted from the output of the command.
The workaround is indeed to use the --single-core
option but this defeats the purpose of bun.
I'm Using opam with OCaml 4.07.1+afl on my MacBook Pro with macports. Crowbar (0.1) works. I can compile with
ocamlbuild -package crowbar firsttry.native
and runafl-fuzz
manually:I then got curious in giving bun a spin. I installed with
opam install bun
(installedbun.0.3.3
). But when I run:and I get back the prompt (after the 5sec delay). Adding verbose flags helps a bit on the output:
I can work around it by supplying
-s
though: