编译安卓arm64-v8a的库,运行时,会报错,同样的代码编译armeabi-v7a时,不会报错,报错如下:
--------- beginning of crash
2022-03-08 10:02:22.166 24209-24209/com.ulucu.play A/libc: stack corruption detected (-fstack-protector)
2022-03-08 10:02:22.166 24209-24209/com.ulucu.play A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 24209 (com.ulucu.play), pid 24209 (com.ulucu.play)
2022-03-08 10:02:22.317 32575-32575/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-03-08 10:02:22.318 32575-32575/? A/DEBUG: Build fingerprint: 'HUAWEI/EML-AL00/HWEML:10/HUAWEIEML-AL00/10.0.0.176C00:user/release-keys'
2022-03-08 10:02:22.318 32575-32575/? A/DEBUG: Revision: '0'
2022-03-08 10:02:22.318 32575-32575/? A/DEBUG: ABI: 'arm64'
2022-03-08 10:02:22.321 32575-32575/? A/DEBUG: SYSVMTYPE: Maple
APPVMTYPE: Art
2022-03-08 10:02:22.322 32575-32575/? A/DEBUG: Timestamp: 2022-03-08 10:02:22+0800
2022-03-08 10:02:2