简书链接:jni错误之信号6错误
文章字数:694,阅读全文大约需要2分钟
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| --- beginning of crash 04-10 01:00:09.410 3051-3051/com.example.myapplication A/libc: stack corruption detected 04-10 01:00:09.410 3051-3051/com.example.myapplication A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 3051 (e.myapplication) 04-10 01:00:09.462 15005-15005/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 04-10 01:00:09.462 15005-15005/? A/DEBUG: Build fingerprint: 'Xiaomi/rolex/rolex:6.0.1/MMB29M/9.3.28:user/release-keys' 04-10 01:00:09.462 15005-15005/? A/DEBUG: Revision: '0' 04-10 01:00:09.462 15005-15005/? A/DEBUG: ABI: 'arm' 04-10 01:00:09.462 15005-15005/? A/DEBUG: pid: 3051, tid: 3051, name: e.myapplication >>> com.example.myapplication <<< 04-10 01:00:09.463 15005-15005/? A/DEBUG: signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr -------- 04-10 01:00:09.481 15005-15005/? A/DEBUG: Abort message: 'stack corruption detected' 04-10 01:00:09.481 15005-15005/? A/DEBUG: r0 00000000 r1 00000beb r2 00000006 r3 f70ccb7c 04-10 01:00:09.481 15005-15005/? A/DEBUG: r4 f70ccb84 r5 f70ccb34 r6 00000058 r7 0000010c 04-10 01:00:09.482 15005-15005/? A/DEBUG: r8 00000000 r9 ab304d60 sl 12c39280 fp 12da40c0 04-10 01:00:09.482 15005-15005/? A/DEBUG: ip 00000006 sp ffbf28d8 lr f6e4af5d pc f6e4d358 cpsr 400b0010 04-10 01:00:09.483 15005-15005/? A/DEBUG: backtrace: 04-10 01:00:09.483 15005-15005/? A/DEBUG: #00 pc 00002358 /system/lib/libc.so (offset 0x42000) 04-10 01:00:09.483 15005-15005/? A/DEBUG: #01 pc 00027f59 /system/lib/libc.so (offset 0x1a000) 04-10 01:00:09.580 1466-1720/? W/qti_sensors_hal: timestampCalc: Adjusting timestamp for rollover: 346262831655235, -1 04-10 01:00:09.636 15005-15005/? A/DEBUG: Tombstone written to: /data/tombstones/tombstone_06 04-10 01:00:09.636 1466-3066/? W/ActivityManager: Force finishing activity com.example.myapplication/.MainActivity 04-10 01:00:09.636 15005-15005/? E/DEBUG: AM write failed: Broken pipe
|
错误原因,char[]给的大小空间不够,在linux不会崩溃,但是在手机上会。
1
| input is not valid Modified UTF-8: illegal start byte 0xff
|