Skip to content

too many assert fail crashes makes the fuzzer unusable #2

@cutesmilee

Description

@cutesmilee

Hi, the problem is that every time I run the fuzzer, after some minutes it crashes on this:

../fuzz/fakes/mbuf.c: assert failed on line 65: false
==4628== ERROR: libFuzzer: deadly signal
#0 0x10ed7ab35 in __sanitizer_print_stack_trace+0x35 (libclang_rt.asan_osx_dynamic.dylib:x86_64h+0x51b35)
#1 0x10d5c7b72 in fuzzer::PrintStackTrace() FuzzerUtil.cpp:210
#2 0x10d575194 in fuzzer::Fuzzer::CrashCallback() FuzzerLoop.cpp:233
#3 0x10d57512d in fuzzer::Fuzzer::StaticCrashSignalCallback() FuzzerLoop.cpp:204
#4 0x10d5cf847 in fuzzer::CrashHandler(int, __siginfo*, void*) FuzzerUtilPosix.cpp:46
#5 0x7fff20677d7c in _sigtramp+0x1c (libsystem_platform.dylib:x86_64+0x3d7c)

NOTE: libFuzzer has rudimentary signal handlers.
Combine libFuzzer with AddressSanitizer or similar for better crash reports.
SUMMARY: libFuzzer: deadly signal
MS: 1 CustomCrossOver-; base unit: 584c597c6031e0f4d0a1a5dbbce6261f450c47b6
0xa,0xa,0xb2,0x2,0x7,0x8,0x2,0x10,0x3,0x18,0x80,0x2,0xa,0x0,0x12,0x0,
\x0a\x0a\xb2\x02\x07\x08\x02\x10\x03\x18\x80\x02\x0a\x00\x12\x00
artifact_prefix='./'; Test unit written to ./crash-7ead9ed8b17c3dad664b1fdc83d19fa0981ecf54
Base64: CgqyAgcIAhADGIACCgASAA==

so I looked at the source to see if AddressSanitizer was enabled, and seems like so (from cmake and ninja files), can this be fixed, since this makes the fuzzer almost unusable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions