Ndk-stack: Cannot open symbol file ... /../libutil.so. Error (9): invalid file descriptor

I am trying to use the ndk-stack utility to get some help while debugging my application that uses its own libraries. The problem is that all I use is a utility:

*** Reset Failure: *** . Create a fingerprint: 'tmobile / htc_vision / vision: 2.3.4 / GRJ22 / 82286: user / release keys / pid: 15769, tid: 15794 โ†’> us.ihmc.aci.dsproapp <signal 11 (SIGSEGV), code 1 (SEGV_MAPERR ), error addr 00000024 Stack frame # 00 pc 00063710 / data / data / us.ihmc.aci.dsproapp / lib / libutil.so: Unable to open the symbol file / home / enrico / CVSROOT / android / ACI / dsproapp / object / local /armeabi/libutil.so. Error (9): Bad File Descriptor

The command I'm using is this:

ndk-stack -sym ../ obj / local / armeabi -dump / home / enrico / stacktrace / crash _waypoint.txt

All my own libraries are compiled with

APP_OPTIM: = debug APP_STL: = gnustl_static

In Application.mk, therefore, debugging characters must be present. Have any of you had this problem before? Thanks Enrico

+6
source share
3 answers

It happened when I tried to debug a crash in my C code. He scratched my head for about 3 hours.

Perhaps you are using the .so file from {project_root}/libs/arm*/ . You should use one fron {project_root}/obj/local/arm*/ . It has symbolic information.

+3
source

I saw this error when the .so file is present, but the file does not contain symbolic information. I assume that your file did not have the characters generated for it.

+1
source

Let's pretend that

Your Application.mk should look like this:

 APP_STL := gnustl_static APP_ABI := armeabi APP_OPTIM := debug 

and your Android.mk should look like this:

 LOCAL_CFLAGS := -I <Your header files goes here> LOCAL_CFLAGS += -g LOCAL_CFLAGS += -ggdb LOCAL_CFLAGS += -O1 
+1
source

Source: https://habr.com/ru/post/897186/


All Articles