前不久一个项目在调用so库的时候出现了tombstone,一开始看打印也是一头雾水,无从下手。但是后面经过分析发现log信息已经将问题说明得很清楚了。
01-06 22:55:44.029 7654 7654 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-06 22:55:44.029 7654 7654 F DEBUG : Build fingerprint: 'HiDPT/Hi3751V811_DMO/Hi3751V811:8.0.0/OPR6.170623.013/0704:eng/release-keys'
01-06 22:55:44.029 7654 7654 F DEBUG : Revision: '0'
01-06 22:55:44.029 7654 7654 F DEBUG : ABI: 'arm64'
01-06 22:55:44.029 7654 7654 F DEBUG : pid: 7634, tid: 7634, name: com.android.tp >>> com.android.tp <<<
01-06 22:55:44.029 7654 7654 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
01-06 22:55:44.032 7654 7654 F DEBUG : Abort message: 'FORTIFY: write: prevented 21-byte read from 18-byte buffer'
01-06 22:55:44.032 7654 7654 F DEBUG : x0 0000000000000000 x1 0000000000001dd2 x2 0000000000000006 x3 0000000000000008