Skip to content Skip to sidebar Skip to footer

Fatal Signal 11 (sigsegv), Code 2, Fault Addr 0xb3d5e488 In Tid 8058

I have a simple ndk code in my app and im keep getting this error in the logcat and app keep crashing. Here is the method where app is crashing: char VAL1[] = 'abcdef'; char VAL2[]

Solution 1:

char[] token = "";

This means that token[] is an array of length 1, and you've appended a number of string to it of total length much more than 1, so you've corrupted the memory beyond it.

Answer : declare it big enough for the data you're gout to put into it.

Post a Comment for "Fatal Signal 11 (sigsegv), Code 2, Fault Addr 0xb3d5e488 In Tid 8058"