Git Product home page Git Product logo

Comments (15)

DanAlbert avatar DanAlbert commented on July 21, 2024 2

No, but we should prioritize this. We have a new hire coming soon, and this would make a good starter project.

from ndk.

luoqii avatar luoqii commented on July 21, 2024 1

cool!!!! r16 has fixed this.

from ndk.

slavasav avatar slavasav commented on July 21, 2024

Still the same problem with r13

from ndk.

silentnuke avatar silentnuke commented on July 21, 2024

@DanAlbert is there any updates on that?

from ndk.

silentnuke avatar silentnuke commented on July 21, 2024

bitmoji

from ndk.

enh avatar enh commented on July 21, 2024

i suspect the best way forward here is to kill the existing ndk-stack and switch to the "stack" script we use internally (suitably adjusted to work with the NDK rather than the platform tools). anyone good at python can probably take stack, stack_core.py, and symbol.py from https://android.googlesource.com/platform/development.git/+/master/scripts/ and send us the diff.

obviously if you're on Windows there's probably a bit more work involved, .

other than this regular expression (which doesn't seem like it would lead to the error folks are seeing)...

static const char _frame_header[] = "\\#[0-9]+[ |\t]+[pc|eip]+:*[ |\t]+([0-9a-f]{8})*";

https://cs.corp.google.com/android/ndk/sources/host-tools/ndk-stack/ndk-stack-parser.c?l=74
...i took another look at ndk-stack and still don't see any obvious problem (unless somehow the libbfd it's linking against doesn't contain the LP64 arches, but i also didn't see where anything like that was configured).

anyway, anyone with a bit of time and some python ought to be able to switch us over to the platform tool (which even has tests!).

from ndk.

silentnuke avatar silentnuke commented on July 21, 2024

@DanAlbert is there any updates on that?

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

No, unfortunately. We're still working on actually filling that new hire slot. It might happen in the r16 time frame, but almost certainly not for beta 1.

from ndk.

DoDoENT avatar DoDoENT commented on July 21, 2024

Any updates/progress on that? Have you filled a new hire slot? Are there any workarounds I could use until official fix comes? I currently have a stack trace reported by a client on 64-bit samsung device and I am unable to symbolificate it using ndk-stack. Any help would be appreciated!

from ndk.

enh avatar enh commented on July 21, 2024

see "anyone with a bit of time and some python ought to be able to switch us over to the platform tool (which even has tests!)" above. we should have someone starting next month, and what better introduction to the life than deleting ancient ndk-specific cruft and replacing it with the thing we use in the platform?

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

Yep, should be able to make this happen for r16.

from ndk.

rprichard avatar rprichard commented on July 21, 2024

FWIW: On my 64-bit Linux machine, ndk-stack already handles ARM64.

I see these lines in build-ndk-stack.sh:

if [ "$HOST_OS" != "darwin" -a "$DARWIN" != "yes" ]; then
    LDFLAGS=$LDFLAGS" -Wl,-gc-sections"
else
    # In darwin libbfd has to be built with some *linux* target or it won't understand ELF
    # Disable -Werror because binutils uses deprecated functions (e.g. sbrk).
    EXTRA_CONFIG="-target=arm-linux-androideabi --disable-werror"
fi

I think the Linux ndk-stack is being configured to work with host binaries, which are 64-bit. Maybe the 32-bit triple arm-linux-androideabi configures the macOS ndk-stack to handle only 32-bit binaries, so changing the target (to aarch64-linux-android?) might fix this issue on macOS?

I wonder about the Windows ndk-stack.

I'm still looking at replacing ndk-stack with the platform stack script, though.

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

Fix was merged into r16.

from ndk.

DanAlbert avatar DanAlbert commented on July 21, 2024

Yes.

from ndk.

hyUrbanManager avatar hyUrbanManager commented on July 21, 2024

r16b can do it

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.