It's me again. I hate to tell you this, but pocketsphinx crash when obtaining
n-best again. This time it's pretty strange. It seems that pocketsphinx_batch
works well, but on Android it would crash now and then. Here's debug message
printed by android:
Unfortunately I have no idea what's going on there. You need to provide better
stacktrace with debug symbol or trace the exact location in the sources where
it crashes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I spent all my effort trying to use GDB on Android, but it keeps telling me
"no debugging symbols found". I know I should add -g option when compiling,
but I just couldn't find where to add properly. Could you give me some
suggestion?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Nickolay,
It's me again. I hate to tell you this, but pocketsphinx crash when obtaining
n-best again. This time it's pretty strange. It seems that pocketsphinx_batch
works well, but on Android it would crash now and then. Here's debug message
printed by android:
05-25 20:16:44.639: INFO/DEBUG(10123): signal 11 (SIGSEGV), fault addr
00000043
05-25 20:16:44.639: INFO/DEBUG(10123): r0 00000043 r1 001f9bd8 r2 00000000 r3
00000000
05-25 20:16:44.639: INFO/DEBUG(10123): r4 001e2178 r5 0169821b r6 00201b04 r7
00000002
05-25 20:16:44.639: INFO/DEBUG(10123): r8 00000003 r9 00000003 10 00000006 fp
00000000
05-25 20:16:44.639: INFO/DEBUG(10123): ip 001f5820 sp 48a8e9f8 lr 81834847 pc
818362c2 cpsr 00000030
05-25 20:16:44.709: INFO/DEBUG(10123): #00 pc 000362c2
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #01 pc 00034842
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #02 pc 00034968
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #03 pc 00010646
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #04 pc 000107d8
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #05 pc 00010a86
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #06 pc 0000c6aa
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #07 pc 0000b4f2
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.709: INFO/DEBUG(10123): #08 pc 000110f4 /system/lib/libdvm.so
05-25 20:16:44.709: INFO/DEBUG(10123): code around pc:
05-25 20:16:44.709: INFO/DEBUG(10123): 818362a0 46981c0e d1642a00 28004640
6923dd27
05-25 20:16:44.719: INFO/DEBUG(10123): 818362b0 22002700 dd152b00 009368a1
18c96830
05-25 20:16:44.719: INFO/DEBUG(10123): 818362c0 58c0680d 46ac3201 60084460
68316820
05-25 20:16:44.719: INFO/DEBUG(10123): 818362d0 18c94684 68084665 1ac358eb
6923600b
05-25 20:16:44.719: INFO/DEBUG(10123): 818362e0 dce94293 370168e2 1c513604
60e11c0a
05-25 20:16:44.719: INFO/DEBUG(10123): code around lr:
05-25 20:16:44.719: INFO/DEBUG(10123): 81834824 2d006ac2 2b00d006 2a01d004
2a02d00c
05-25 20:16:44.719: INFO/DEBUG(10123): 81834834 bd70d010 d0fc2a00 6b226be0
f0011c33
05-25 20:16:44.719: INFO/DEBUG(10123): 81834844 2d00fd29 e00ad0f5 6b226bc0
f7ff1c33
05-25 20:16:44.719: INFO/DEBUG(10123): 81834854 e7eefa41 6b226bc0 f0011c33
6be0fd1b
05-25 20:16:44.719: INFO/DEBUG(10123): 81834864 fd9af001 46c0e7e5 9d04b570
6b401c04
05-25 20:16:44.719: INFO/DEBUG(10123): stack:
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9b8 afd4173c /system/lib/libc.so
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9bc 000000dc
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9c0 00001414
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9c4 000001b8
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9c8 00000768
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9cc 000000b9
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9d0 00000000
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9d4 afd0be59 /system/lib/libc.so
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9d8 0054e930
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9dc 81829fa1
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9e0 00000000
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9e4 afd10410 /system/lib/libc.so
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9e8 afd4173c /system/lib/libc.so
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9ec 000000dc
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9f0 df002777
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9f4 e3a070ad
05-25 20:16:44.719: INFO/DEBUG(10123): #00 48a8e9f8 00000000
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8e9fc 001f9b38
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea00 00000000
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea04 00000003
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea08 00201afc
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea0c 81834847
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
05-25 20:16:44.719: INFO/DEBUG(10123): #01 48a8ea10 001f9b38
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea14 00000003
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea18 48a8ea70
05-25 20:16:44.719: INFO/DEBUG(10123): 48a8ea1c 8183496d
/data/data/zx.androsphinx/lib/libpocketsphinx_jni.so
And here is one of the raw file that lead to such crash.
https://rapidshare.com/files/2526396829/000000006.raw
Hello
Unfortunately I have no idea what's going on there. You need to provide better
stacktrace with debug symbol or trace the exact location in the sources where
it crashes.
I spent all my effort trying to use GDB on Android, but it keeps telling me
"no debugging symbols found". I know I should add -g option when compiling,
but I just couldn't find where to add properly. Could you give me some
suggestion?
Sorry, I have no idea. It's better to ask Android experts. For examples
symbols could be stripped during the build somewhere.