Fatal Signal 31 error 原因排查

Fatal Signal 31 error when upgrading android app from API 24 to 26

转载自 Stack Overflow ( upgrade - Fatal Signal 31 error when upgrading android app from API 24 to 26 - Stack Overflow )

Android 8 O (SDK 26) limits which system calls are allowed for security reasons by enabling a feature called secure computing in the Linux kernel.

This means only whitelisted calls can be executed and that any other call will result in signal 31 (SIGSYS), code 1 (SYS_SECCOMP), like you are experiencing.

You will need to examine the stack trace of this signal to find out which system call was not allowed (which was not listed completely in your question).

You can find a list of allowed calls here ( libc/SYSCALLS.TXT - platform/bionic.git - Git at Google (googlesource.com) ). Any other call is not allowed.

You can find what Google wrote about this here. ( Android Developers Blog: Seccomp filter in Android O (googleblog.com) )

原文地址:https://www.cnblogs.com/yshl-dragon/p/15494631.html