Comments (9)
Couldyou provide some more info?
- adb version
- ndk version
- android version on the device
Does it help to do asan_device_setup --revert ?
from ndk.
Yikes.
We don't actually modify asan_device_setup
at all, it's direct from the ASAN repository, so I've opened a bug over there. Should move discussion to that bug, but I'll leave this open to track that we don't have the fix yet.
from ndk.
Saw a similar problem today with NDK 11 and the --use-su
option. Even after I fixed the indicated issues such as /system/bin/sh: can't create "/system/lib/libclang_rt.asan-arm-android.so/libclang_rt.asan-arm-android.so": No such file or directory
for my device, the script would still brick the device. I didn't try the revert option.
I've tested this on Android 4.4.4 on a Sony Z1C and subsequently with a custom ROM (also Android 4.4.4). The old script (without the useful --use-su
option) of the NDK 10e still works on this device. This is on ADB version 1.0.32.
from ndk.
I was using NDK 11 as well.
Device was a Samsung Galaxy S3, android version 4.4.2
I didn't know that I had to do anything extra while rooted to get ADB working in recovery mode, so I'm not able to even try to revert option. Reflashing does nothing, Samsung kies fails. Guess I have a nice looking paperweight.
It's honestly silly that we need a rooted device to access a lot of useful debugging tools, but there's no official support for rooting. I'd even settle for bringing back rooted dev only phones.
from ndk.
Does this only happen with --use-su
? I'm going to see if I can brick a Nexus 5 really quick...
I'm not quite sure how this script could make a device unrecoverable even after reflashing... All it does is modify the system and data partitions.
from ndk.
So, I was able to render a Nexus 5 (KTU84P) unbootable, but I was also able to recover it. By reflashing.
Looks like this isn't unique to --use-su
. It repros on a userdebug KTU84P hammerhead just fine. Still not sure what's going on yet though.
from ndk.
Looks like this was actually fixed by llvm-mirror/compiler-rt@bd58cbc
The version of clang we shipped was a couple months before that CL.
So, this will be fixed in r12, but given that this is pretty damn harmful I'm going to see if I can rig our build to include a newer asan_device_setup
...
from ndk.
Okay, a fix is checked in for r11b.
from ndk.
r11b is live with the fix: http://developer.android.com/ndk/downloads/index.html#download
from ndk.
Related Issues (20)
- [Bug]: Segmentation Fault trying to run an LLVM pass HOT 2
- [Bug] clang frontend crashes on NDK 28.0.11617993 HOT 11
- [BUG] Building Library\Bee\artifacts\Android\a7sem\2b6k1szry106.o failed [RAM ISSUE?] HOT 9
- [FR] remove superfluous LLVM libraries HOT 10
- [BUG] clang frontend crashes on both r26d and canary version HOT 5
- [Bug] ndk clang building release raise error `declaration does not match` while llvm upstream compiles HOT 8
- [FR] improve bad diagnostic for `__REMOVED_IN` on `ALooper_pollAll` HOT 8
- [BUG] With Compose AndroidView on API 29, ANativeWindow_fromSurface with SurfaceView without an additional ViewGroup makes AndroidViewsHandle go black HOT 3
- [FR] Update Vulkan headers in sysroot of NDK r27 to enable FFmpeg's Vulkan integration HOT 19
- [Feature request] consider to provide libc.a for each API level HOT 6
- [BUG] using thread_local in x64 Android 12L/13 desktop simulator for release build generates invalid init function for thread_local variable that leads to SIGSEGV HOT 1
- [BUG] 23.1.77 Build errors on Unity 2022.3.21f1 HOT 7
- [BUG] Prebuilt clang and ld.lld fail to load compatible pass plugin HOT 1
- [BUG] clang frontend crashes on NDK 27.0.11718014 HOT 9
- [BUG] gettid() optimization HOT 2
- [DOC] cherry-pick changelog update to r27 HOT 3
- [BUG] ndk 27's `lib.a` does not support 16k page size HOT 1
- [FR] [simpleperf] ./app_profiler.py --system_wide should work on rooted "user" phones HOT 1
- [BUG] `std::isblank( charT c, const locale& loc)` is missing from `<locale>` HOT 3
- [BUG] Clang++ Segmentation fault when building AOSP branch android-14.0.0_r35 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ndk.