0

I am using some local HTML5 files within an embedded WebView in an Android app. This is built with only SDK, not NDK. When the WebView loads, there is a segmentation fault on HTC One X (not on any other phones), and the app crashes. I've read that the ndk-stack can be used to see the stack trace of the where the problem might arise. But without the obj directory, ie. with the sdk-only project, is it possible to use the ndk-stack?

01-11 12:19:40.286: I/DEBUG(139): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-11 12:19:40.286: I/DEBUG(139): Build fingerprint: 'htc_europe/endeavoru/endeavoru:4.0.3/IML74K/56722.9:user/release-keys'
01-11 12:19:40.286: I/DEBUG(139): pid: 7062, tid: 7078  >>> com.bose.sample.android <<<
01-11 12:19:40.286: I/DEBUG(139): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0000014c
01-11 12:19:40.286: I/DEBUG(139):  r0 00000000  r1 50a8d210  r2 43b40000  r3 505406cd
01-11 12:19:40.286: I/DEBUG(139):  r4 025c1ad8  r5 00000000  r6 023c0738  r7 02339588
01-11 12:19:40.286: I/DEBUG(139):  r8 51fa5aa0  r9 51fa5a34  10 51fa5ab8  fp 00000001
01-11 12:19:40.286: I/DEBUG(139):  ip 000000a0  sp 51fa5920  lr 505406d9  pc 50540342  cpsr a0000030
01-11 12:19:40.286: I/DEBUG(139):  d0  0000000000000000  d1  000001680000000c
01-11 12:19:40.286: I/DEBUG(139):  d2  3f80000000000000  d3  0000000000000000
01-11 12:19:40.286: I/DEBUG(139):  d4  8000000000000000  d5  000000003f800000
01-11 12:19:40.286: I/DEBUG(139):  d6  0000000000000000  d7  4140000043b40000
.............
01-11 12:19:40.286: I/DEBUG(139):  scr 20000013
01-11 12:19:40.436: I/DEBUG(139):          #00  pc 001b4342  /system/lib/libwebcore.so
01-11 12:19:40.436: I/DEBUG(139):          #01  pc 001b46d4  /system/lib/libwebcore.so
01-11 12:19:40.436: I/DEBUG(139):          #02  pc 003c8fbc  /system/lib/libwebcore.so
01-11 12:19:40.436: I/DEBUG(139):          #03  pc 003c9e32  /system/lib/libwebcore.so
...............

Thanks,
Rajath

4

1 回答 1

1

在这种情况下,您需要的目标文件位于设备上/system/lib/libwebcore.so,但您可能无权访问它。即使您设法得到它,该文件也被剥夺了调试符号 - 这意味着它不会告诉您任何有价值的东西。

于 2013-01-11T23:41:44.357 回答