jni错误之信号6错误

--- 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不会崩溃,但是在手机上会。

input is not valid Modified UTF-8: illegal start byte 0xff
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值