This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Move internal_symbolizer "inline" option
ClosedPublic

Authored by vitalybuka on Dec 22 2021, 9:36 PM.

Details

Summary

This option is per process anyway. I'd like to add more options, but
having them as parameters of __sanitizer_symbolize_code looks
inconvenient.

Diff Detail

Unit TestsFailed

Event Timeline

vitalybuka created this revision.Dec 22 2021, 9:36 PM
vitalybuka requested review of this revision.Dec 22 2021, 9:36 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 22 2021, 9:36 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

Test case that exercises __sanitizer_symbolize_set_inline_frames?

compiler-rt/lib/sanitizer_common/symbolizer/sanitizer_symbolize.cpp
116

Demangle should be InlineFrames ?

fix internal symbolizer

vitalybuka marked an inline comment as done.Dec 23 2021, 10:40 AM
browneee accepted this revision.Dec 23 2021, 10:40 AM

LGTM but would like a test case added.

This revision is now accepted and ready to land.Dec 23 2021, 10:40 AM

LGTM but would like a test case added.

The flag is already covered by compiler-rt/test/sanitizer_common/TestCases/symbolize_pc_inline.cpp The patch is almost NFC, it just changes how we pass the flag into internal symbolizer. Almost, because we change sanitizer_common_interface_posix.
We don't run/build for any tests by default.
https://lab.llvm.org/buildbot/#/builders/37/builds/9407 "test standalone compiler-rt with symbolizer" runs all tests with internal symbolizer, including symbolize_pc_inline.cpp. It should be able to catch "Demangle" issue you spotted.

This revision was landed with ongoing or failed builds.Dec 23 2021, 11:28 AM
This revision was automatically updated to reflect the committed changes.