Reputation: 1243
I'm running some native code, and there are many JNI calls Application crashes without a clue on why its crashing except for the message /system/bin/app_process stack corruption detected: aborted in logcat if I try to debug
How to go about nailing culprit in this case? Any one ou there who can help here
Upvotes: 1
Views: 4056
Reputation: 756
I am not an expert of C/C++, and ran into a similar problem in NDK.(App crash with a log: "/system/bin/app_process stack corruption detected: aborted").
I find out the cause of my error is array access violation.
Just in case someone new like me run into this issue, following are some common mistakes:
1.
char aa[6];
strcpy(aa,"abcdefghijk123457890");//out of bounds
2.
char aa[6];
sprintf(aa,“the value is : %d”, 123);//out of bounds
Upvotes: 1