Skip to content

Add script to symbolize android stacks, particularly for use with Asan. - #3673

Merged
bjacob merged 2 commits into
iree-org:mainfrom
bjacob:symbolize
Nov 2, 2020
Merged

bjacob merged 2 commits into
iree-org:mainfrom
bjacob:symbolize

Conversation

@bjacob

@bjacob bjacob commented Oct 30, 2020

Copy link
Copy Markdown
Collaborator

You just paste some ASan output to a text file and feed that to stdin to
this script. It will then pull the files out of the device and symbolize
them on the host using the NDK-provided host build of llvm-symbolizer.
Because it just pulls files from the device, there's no need to point
this script to any particular obj dir. It's easy to use.

ANDROID_NDK=~/android-ndk-r21d ~/android-symbolize.sh < ~/a

Discussion of alternatives: android/ndk#753

You just paste some ASan output to a text file and feed that to stdin to
this script. It will then pull the files out of the device and symbolize
them on the host using the NDK-provided host build of llvm-symbolizer.
Because it just pulls files from the device, there's no need to point
this script to any particular obj dir. It's easy to use.

ANDROID_NDK=~/android-ndk-r21d ~/android-symbolize.sh < ~/a

Discussion of alternatives: android/ndk#753
@bjacob
bjacob requested a review from benvanik October 30, 2020 18:35
@google-cla google-cla Bot added the cla: yes label Oct 30, 2020
@bjacob bjacob added the platform/android 🤖 Android-specific build, execution, benchmarking, and deployment label Oct 30, 2020
@@ -0,0 +1,65 @@
#!/bin/bash

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@bjacob
bjacob merged commit 32067b8 into iree-org:main Nov 2, 2020
@hanhanW hanhanW mentioned this pull request Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform/android 🤖 Android-specific build, execution, benchmarking, and deployment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants