This is an archive of the discontinued LLVM Phabricator instance.

[fuzzer] Script to detect unbalanced allocation in -trace_malloc output
ClosedPublic

Authored by vitalybuka on Oct 31 2017, 11:39 AM.

Event Timeline

vitalybuka created this revision.Oct 31 2017, 11:39 AM
vitalybuka retitled this revision from [fuzzer] Script for detect unbalanced allocation in -trace_malloc output to [fuzzer] Script to detect unbalanced allocation in -trace_malloc output.Oct 31 2017, 11:39 AM

fix file header

kcc edited edge metadata.Oct 31 2017, 11:50 AM

Not sure how frequently we will need this.
Also, if we do need it frequently, wouldn't it be better to put this functionality in libFuzzer itself?

compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
3

80 lines?

15

don't you need 2>&1 ?

vitalybuka marked 2 inline comments as done.Oct 31 2017, 11:54 AM
In D39466#912091, @kcc wrote:

Also, if we do need it frequently, wouldn't it be better to put this functionality in libFuzzer itself?

libFuzzer will need some functionality to store stack traces. Now it just calls __sanitizer_print_stack_trace

kcc accepted this revision.Oct 31 2017, 11:59 AM

LGTM

This revision is now accepted and ready to land.Oct 31 2017, 11:59 AM
This revision was automatically updated to reflect the committed changes.