This is an archive of the discontinued LLVM Phabricator instance.

[lsan] Allow suppression of "unknown module"
ClosedPublic

Authored by vitalybuka on Mar 15 2022, 12:33 AM.

Details

Summary

If sanitizer cannot determine name of the module it
will use "<unknown module>". Then it can be suppressed
if needed.

Diff Detail

Event Timeline

vitalybuka created this revision.Mar 15 2022, 12:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 12:33 AM
vitalybuka requested review of this revision.Mar 15 2022, 12:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 15 2022, 12:33 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kda accepted this revision.Mar 15 2022, 11:12 AM
kda added inline comments.
compiler-rt/lib/lsan/lsan_common.cpp
140

nit: would it be easier to match without whitespace? (perhaps use underbar instead of space?)

This revision is now accepted and ready to land.Mar 15 2022, 11:12 AM
vitalybuka added inline comments.Mar 15 2022, 11:47 AM
compiler-rt/lib/lsan/lsan_common.cpp
140

What kind of problem do you expect from space?

Out stack trace code dumps "(<unknown module>)"
So I assume "<unknown module>" is more intuitive to use here. I assume we don't need these "()" here.

Also "leak:<unknown module>" is exactly from the internal feature request, but I have no strong preference.

This revision was automatically updated to reflect the committed changes.