This is an archive of the discontinued LLVM Phabricator instance.

[ASan] Allow the users of SymbolizationLoop to make use of the -dsym_hint option in llvm-symbolizer
AbandonedPublic

Authored by glider on Nov 18 2014, 9:17 AM.

Details

Reviewers
earthdok
Summary

Let the users of SymbolizationLoop define a function that produces the list of .dSYM hints (possible path to the .dSYM bundle) for the given binary.
Because the hints can't be added to an existing llvm-symbolizer process, we spawn a new symbolizer process ones each time a new hint appears.
Those can only appear for binaries that we haven't seen before.

Diff Detail

Event Timeline

glider updated this revision to Diff 16338.Nov 18 2014, 9:17 AM
glider retitled this revision from to [ASan] Allow the users of SymbolizationLoop to make use of the -dsym_hint option in llvm-symbolizer.
glider updated this object.
glider edited the test plan for this revision. (Show Details)
glider added a reviewer: earthdok.
glider added a subscriber: kubamracek.
glider added a subscriber: Unknown Object (MLST).

Adding llvm-commits

glider abandoned this revision.Nov 18 2014, 9:25 AM
earthdok added inline comments.Nov 20 2014, 5:42 AM
projects/compiler-rt/lib/asan/scripts/asan_symbolize.py
73

how about "os"?

86

for consistency this should be "--dsym-hint"

357

I think those comments should be moved into the code.

361

Needs a comment on why we don't want to just use the last symbolizer always.

363

...which has the full set of hints.

370

"if dsym_hint and (dsym_hint not in self.dsym_hints)" would be more readable I think

Addressed the comments.
Please note that this revision has been abandoned before you've started adding the comments.
I've uploaded a new one: http://reviews.llvm.org/D6310

projects/compiler-rt/lib/asan/scripts/asan_symbolize.py
73

The same property of SymbolizationLoop is already called "system"

86

Done.

357

Not sure they'll become easier to follow then.

361

Done.

363

Done.

370

Done. However this code has changed a bit in http://reviews.llvm.org/D6310