Git Product home page Git Product logo

Comments (9)

eugenis avatar eugenis commented on August 22, 2024

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.

DanAlbert avatar DanAlbert commented on August 22, 2024

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.

CNugteren avatar CNugteren commented on August 22, 2024

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.

edkimmel avatar edkimmel commented on August 22, 2024

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.

DanAlbert avatar DanAlbert commented on August 22, 2024

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.

DanAlbert avatar DanAlbert commented on August 22, 2024

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.

DanAlbert avatar DanAlbert commented on August 22, 2024

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.

DanAlbert avatar DanAlbert commented on August 22, 2024

Okay, a fix is checked in for r11b.

from ndk.

DanAlbert avatar DanAlbert commented on August 22, 2024

r11b is live with the fix: http://developer.android.com/ndk/downloads/index.html#download

from ndk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.