-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workaround #988 the default wrap.sh.
This can't help users of the static STL, but it does help those using the shared STL. Also clean up by merging these into a single wrap.sh. There should never be more than one ASan library in the directory, so we can just use a wildcard. Test: https://github.com/DanAlbert/asan-wrap-sh-exceptions-crash-repro Bug: android/ndk#988 Change-Id: I890ba18faaebcdafe61f2800cc062ec7b5d9502e
- Loading branch information
Showing
7 changed files
with
15 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/system/bin/sh | ||
HERE="$(cd "$(dirname "$0")" && pwd)" | ||
export ASAN_OPTIONS=log_to_syslog=false,allow_user_segv_handler=1 | ||
ASAN_LIB=$(ls $HERE/libclang_rt.asan-*-android.so) | ||
if [ -f "$HERE/libc++_shared.so" ]; then | ||
# Workaround for https://github.com/android-ndk/ndk/issues/988. | ||
export LD_PRELOAD="$ASAN_LIB $HERE/libc++_shared.so" | ||
else | ||
export LD_PRELOAD="$ASAN_LIB" | ||
fi | ||
"$@" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.