MozillaSecurity / funfuzz

A collection of fuzzers in a harness for testing the SpiderMonkey JavaScript engine.
Mozilla Public License 2.0
630 stars 115 forks source link

[funfuzz] Test whether Linux system is able to generate core dumps. If not, run jsfunfuzz within gdb instead #195

Open nth10sd opened 6 years ago

nth10sd commented 6 years ago

Ref https://github.com/MozillaSecurity/funfuzz/blob/1fc970fe0643a32a9aae4fa0d138ec11fbb53e8d/src/funfuzz/js/js_interesting.py#L133 we should have a mode to test whether the local Linux system is able to generate core dumps, early on. (i.e. whether ulimit -c unlimited is set and working properly)

If it cannot, we should run jsfunfuzz or the intended testcase within a debugger instead.

nth10sd commented 6 years ago

If it can, we might want to randomly consider this mode (with gdb) and without gdb (normal) and possibly with rr.