Running HWAsan
#2182
Replies: 3 comments
-
|
I ve solved my issue. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I had the same error and same stack as case 2. It was because my |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@jnbmoffa |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I try to run HWAsan on my project, to check some native C code. But I can't get it running (using https://developer.android.com/ndk/guides/hwasan).
My build is in command line, "wrap.sh" isn't automatically included. So I have to add it manually in the .apk / re-sign / re-align.
but, currently, it doesn't seems to make any difference.
In short, my app is a Java Activity, that uses System.loadlibray() to load a shared object library.
Here's the issue :
it cannot load the libclang_rt.hwasan-aarch-64-android.so because "TLS symbol (NULL)" in dlopen ... using IE access model"
(seem similar to https://stackoverflow.com/questions/78983648/failing-to-run-hwasan-build-on-android-dlopen-failed-tls-symbol-null )
readelfsays there is a TLS headerthere is a tombstone, at:
__hwasan_init+180then__register_atfork+44(no TLS header in the lib from NDK-r28c)
(I cannot use a full Arm64, because of
Avd's CPU Architecture 'arm64' is not supported by the QEMU2 emulator on x86_64 host.)Not sure what I should do now. Any help is welcome
the full stack trace of case (2).
Beta Was this translation helpful? Give feedback.
All reactions