Open Bug 1229602 Opened 9 years ago Updated 2 years ago

Evaluate clang SanitizerCover for gathering coverage of Firefox tests

Categories

(Testing :: Code Coverage, defect)

defect

Tracking

(Not tracked)

People

(Reporter: chmanchester, Unassigned)

References

Details

Clang's new SanitizerCoverage tool looks very promising: http://clang.llvm.org/docs/SanitizerCoverage.html

I'm particularly interested in http://clang.llvm.org/docs/SanitizerCoverage.html#sudden-death -- the problem of losing coverage when a process is signalled is a problem in multi-process gecko.
FYI: For processes that use sandboxing, there's a hook for the sandboxing code to call so the coverage runtime can pre-open any files it needs, etc., before permissions are reduced.   I set that up for Linux (GeckoMediaPlugin) and B2G (content) a while ago, ifdef MOZ_ASAN, but I never tested it.  Mac and Windows I think don't have it at all yet, so there might be breakage there.
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.