This is an archive of the discontinued LLVM Phabricator instance.

[compiler-rt] PR#39514 Support versioned llvm-symbolizer binaries
ClosedPublic

Authored by ahunt on Mar 1 2021, 6:09 AM.

Details

Summary

Some linux distributions produce versioned llvm-symbolizer binaries,
e.g. my llvm-11 installation puts the symbolizer binary at
/usr/bin/llvm-symbolizer-11.0.0 . However if you then try to run
a binary containing ASAN with
ASAN_SYMBOLIZER_PATH=..../llvm-symbolizer-FOO , it will fail on startup
with "isn't a known symbolizer".

Although it is possible to work around this by setting up symlinks,
that's kindof ugly - supporting versioned binaries is a nicer solution.
(There are now multiple stack overflow and blog posts talking about
this exact issue :) .)

Originally added in:
https://reviews.llvm.org/D8285

Diff Detail

Event Timeline

ahunt requested review of this revision.Mar 1 2021, 6:09 AM
ahunt created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMar 1 2021, 6:09 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
ahunt edited the summary of this revision. (Show Details)Mar 1 2021, 6:11 AM
ahunt retitled this revision from Support versioned llvm-symbolizer binaries to PR#39514 Support versioned llvm-symbolizer binaries.
ahunt edited the summary of this revision. (Show Details)
ahunt retitled this revision from PR#39514 Support versioned llvm-symbolizer binaries to [compiler-rt] PR#39514 Support versioned llvm-symbolizer binaries.Mar 1 2021, 6:14 AM
ahunt edited reviewers, added: kcc; removed: samsonov.Mar 10 2021, 2:23 AM
ahunt added a subscriber: llvm-commits.
eugenis accepted this revision.Mar 10 2021, 12:24 PM
eugenis added a subscriber: eugenis.

LGTM

Do you have commit access? I can land this for you.

This revision is now accepted and ready to land.Mar 10 2021, 12:24 PM
ahunt added a comment.Mar 11 2021, 7:07 AM

Do you have commit access? I can land this for you.

Yes please - I would appreciate if you could commit this. I do not have commit access - thank you for offering!

This revision was automatically updated to reflect the committed changes.