debugging - How to debug crashed android native library? -
i runing junit test native library(c++), native library process crashed , logcat shows:
i/activitymanager( 161): force stopping package xxxxx uid=10043 i/activitymanager( 161): start proc xxxxx added application xxxx: pid=1656 uid=10043 gids={1015} i/testrunner( 1656): started: testaddressbook(xxxxx.addressbooktest) f//system/bin/app_process( 1656): stack corruption detected: aborted i/activitymanager( 161): process xxxxx (pid 1656) has died.
where xxxxx process name.
i try follow instruction on http://source.android.com/porting/debugging_native.html , instruction confusing:
if crashes, connect aproto , run logcat on device
what aproto? can't find it. nor "stack" tool.
any suggestion appreciated!
-henry
f//system/bin/app_process( 1656): stack corruption detected: aborted
that sounds you're trashing local variable. here's popular way that:
char localvar[16]; sprintf(localvar, "and why sprintf devil");
that's not asked for, hope helps anyway.
Comments
Post a Comment