Getting "Unable to open symbol file xxx. Error (9): Bad file descriptor" when using ndk-stack from NDK R6

1,148 views
Skip to first unread message

cmarkle

unread,
Jul 26, 2011, 11:47:15 PM7/26/11
to android-ndk
Trying the new ndk-stack tool in NDK R6... When I run it I get "Unable
to open symbol file libs/armeabi/libfaspapijni.so. Error (9): Bad file
descriptor" on each line related to my libxxx.so file. As in:

$ cat out7 | /Users/xxx/Devel/android/android-ndk-r6/ndk-stack -sym
libs/armeabi
********** Crash dump: **********
Build fingerprint: 'MOTO/olyatt/olympus/olympus:2.2.2/
OLYFR_U4_1.8.3/1301957996:user/ota-rel-keys,release-keys'
pid: 3225, tid: 3765 >>> com.asperasoft <<<
signal 11 (SIGSEGV), fault addr 00000044
Stack frame #00 pc 00191296 /data/data/com.asperasoft/lib/
libfaspapijni.so: Unable to open symbol file libs/armeabi/
libfaspapijni.so. Error (9): Bad file descriptor
Stack frame #01 pc 001915dc /data/data/com.asperasoft/lib/
libfaspapijni.so: Unable to open symbol file libs/armeabi/
libfaspapijni.so. Error (9): Bad file descriptor
Stack frame #02 pc 0008f63c /data/data/com.asperasoft/lib/
libfaspapijni.so: Unable to open symbol file libs/armeabi/
libfaspapijni.so. Error (9): Bad file descriptor
Stack frame #03 pc 000112d8 /system/lib/libc.so
Stack frame #04 pc 00010dac /system/lib/libc.so

I tried both absolute an relative paths for the -sym argument and it
failed the same way for both cases.

libs/armeabi has the lib in it:

$ ls -l libs/armeabi/
total 6712
-rwxr-xr-x 1 xxx staff 3433724 Jul 26 09:35 libfaspapijni.so

and if I "strings" the lib, it's readable.

Any thoughts about what I might be doing wrong here? Thanks in
advance!

Chris

David Turner

unread,
Aug 3, 2011, 6:44:20 AM8/3/11
to andro...@googlegroups.com
The error message is misleading. It really should say that it could not find any symbols in the library files
That's because you are pointing to libs/armeabi/ which contains +stripped+ binaries.
You should instead point to obj/local/armeabi/ which contains the same libraries with all symbols.

Hope this helps.


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


GJTorikian

unread,
Aug 31, 2011, 8:48:57 PM8/31/11
to android-ndk
Actually, I get the same error even when pointing to obj/local:

> ndk-stack -sym ./obj/local/armeabi -dump stack-dump.txt

Nitzan Weidenfeld

unread,
Oct 23, 2013, 10:15:44 AM10/23/13
to andro...@googlegroups.com
You are so right.... Thanks
Reply all
Reply to author
Forward
0 new messages