klauspost/cpuid

Crash Samsung s9 arm64

SkyWar-design opened this issue · 1 comments

Hello I am using kcp-go v5.4.20, this library uses reedsolomon which links to cpuid v 1.3.0

I am getting the following error when trying to listen for a kcp connection when fecDecoder-> reedsolomon which calls the cpuid.initCPU function

--------- beginning of crash
2021-03-28 19:22:56.131 887-924/com.example.mobinet A/libc: Fatal signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x7e852c59f0 in tid 924 (example.mobinet), pid 887 (example.mobinet)
2021-03-28 19:22:56.166 933-933/? E/crash_dump64: unknown process state: t
2021-03-28 19:22:56.185 933-933/? I/crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
2021-03-28 19:22:56.186 4738-4738/? I//system/bin/tombstoned: received crash request for pid 924
2021-03-28 19:22:56.187 933-933/? I/crash_dump64: performing dump of process 887 (target tid = 924)
2021-03-28 19:22:56.197 933-933/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-03-28 19:22:56.197 933-933/? A/DEBUG: Build fingerprint: 'samsung/starlteser/starlte:10/QP1A.190711.020/G960FXXU8DTC5:user/release-keys'
2021-03-28 19:22:56.197 933-933/? A/DEBUG: Revision: '26'
2021-03-28 19:22:56.197 933-933/? A/DEBUG: ABI: 'arm64'
2021-03-28 19:22:56.201 933-933/? A/DEBUG: Timestamp: 2021-03-28 19:22:56+0600
2021-03-28 19:22:56.201 933-933/? A/DEBUG: pid: 887, tid: 924, name: example.mobinet >>> com.example.mobinet <<<
2021-03-28 19:22:56.201 933-933/? A/DEBUG: uid: 10350
2021-03-28 19:22:56.201 933-933/? A/DEBUG: signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr 0x7e852c59f0 (*pc=0xd5380400)
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x0 0000007e8587f300 x1 000000400010a3a0 x2 000000400010b5a0 x3 0000000000000000
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x4 0000000000000000 x5 0000000000000004 x6 0000007e8581bbe0 x7 0000000000000001
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x8 0000000000000002 x9 0000000000000004 x10 0000000000000000 x11 000000000000000d
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x12 0000000000000001 x13 0000007e851227e8 x14 0000000000000000 x15 000802aaaa00aaaa
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x16 0000000000000000 x17 0000000000000034 x18 0000007e840a8000 x19 0000000000000068
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x20 00000000000000d0 x21 0000004000146118 x22 fffffffffffffff7 x23 0000000000000008
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x24 ffffffffffffffa2 x25 0000007e85536a20 x26 0000007e8581bbe8 x27 fffffffffffffffb
2021-03-28 19:22:56.201 933-933/? A/DEBUG: x28 0000004000000180 x29 0000000000000000
2021-03-28 19:22:56.201 933-933/? A/DEBUG: sp 000000400010b570 lr 0000007e852c4a28 pc 0000007e852c59f0
2021-03-28 19:22:56.207 933-933/? A/DEBUG: backtrace:
2021-03-28 19:22:56.207 933-933/? A/DEBUG: #00 pc 000000000043f9f0 /data/app/com.example.mobinet-RRxiKLjoy_9misXpo2RfEw==/lib/arm64/libgojni.so (github.com/klauspost/cpuid.initCPU+192)

how can I avoid this error without changing the code of the libraries ?

Not without recompiling. I see they upgraded their dependencies already.