Sunday, 15 June 2014

java - Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) from logcat debuging -



java - Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1) from logcat debuging -

i'm debugging android project c code, logcat message shows that:

i/debug (13509): backtrace: i/debug (13509): #00 pc 000106dc /system/lib/libc.so (dlmalloc+1463) i/debug (13509): #01 pc 0000cf3f /system/lib/libc.so (malloc+10) i/debug (13509): #02 pc 00011d0d /system/lib/libutils.so (android::sharedbuffer::alloc(unsigned int)+8) i/debug (13509): #03 pc 00014cf7 /system/lib/libutils.so (android::vectorimpl::setcapacity(unsigned int)+22) i/debug (13509): #04 pc 0007fd79 /system/lib/libandroid_runtime.so (android::textlayoutvalue::textlayoutvalue(unsigned int)+108) i/debug (13509): #05 pc 000811a9 /system/lib/libandroid_runtime.so (android::textlayoutcache::getvalue(skpaint const*, unsigned short const*, int, int, int, int)+184) i/debug (13509): #06 pc 00081589 /system/lib/libandroid_runtime.so (android::textlayoutengine::getvalue(skpaint const*, unsigned short const*, int, int, int, int)+36) i/debug (13509): #07 pc 0007f799 /system/lib/libandroid_runtime.so (android::textlayout::gettextrunadvances(skpaint*, unsigned short const*, int, int, int, int, float*, float*)+42) i/debug (13509): #08 pc 0007c60d /system/lib/libandroid_runtime.so i/debug (13509): #09 pc 0007c7f9 /system/lib/libandroid_runtime.so i/debug (13509): #10 pc 0001e690 /system/lib/libdvm.so (dvmplatforminvoke+112) i/debug (13509): #11 pc 0005100f /system/lib/libdvm.so (dvmcalljnimethod(unsigned int const*, jvalue*, method const*, thread*)+426) i/debug (13509): #12 pc 00027aa0 /system/lib/libdvm.so i/debug (13509): #13 pc 0002ce84 /system/lib/libdvm.so (dvminterpret(thread*, method const*, jvalue*)+232) i/debug (13509): #14 pc 000674bf /system/lib/libdvm.so (dvminvokemethod(object*, method const*, arrayobject*, arrayobject*, classobject*, bool)+374) i/debug (13509): #15 pc 0007066f /system/lib/libdvm.so i/debug (13509): #16 pc 00027aa0 /system/lib/libdvm.so i/debug (13509): #17 pc 0002ce84 /system/lib/libdvm.so (dvminterpret(thread*, method const*, jvalue*)+232) i/debug (13509): #18 pc 000671a1 /system/lib/libdvm.so (dvmcallmethodv(thread*, method const*, object*, bool, jvalue*, std::__va_list)+272) i/debug (13509): #19 pc 0004d2d7 /system/lib/libdvm.so i/debug (13509): #20 pc 0004d391 /system/lib/libandroid_runtime.so i/debug (13509): #21 pc 0004e22d /system/lib/libandroid_runtime.so (android::androidruntime::start(char const*, char const*)+540) i/debug (13509): #22 pc 00000e67 /system/bin/app_process i/debug (13509): #23 pc 000128b3 /system/lib/libc.so (__libc_init+38) i/debug (13509): #24 pc 00000b74 /system/bin/app_process

the message tell me problem malloc, seems bug libandroid_runtim.

how know problem in project? because message show nil code location, includes java , c.

please kindly help me prepare problem. it's bother me long time. much.

you got null dereference (that's 0x00000000 indicates). since it's in malloc, means corrupted memory allocator's internal structures writing outside malloc's returned area @ time before signal. suggest using valgrind observe exact point, think it's usable on android effort.

java android c android-ndk android-logcat

No comments:

Post a Comment