这里有一个明显的信息.出现了一个包名,那么知道是哪个apk崩溃的,我这里我知道是走哪里崩溃的,是jni方法调用成功之后后面没有代码才崩溃的,我这里崩溃的原因是java 本地方法没有返回值但是在c层我加了返回值。
相关参考
root@manu-hacks:~/Dropbox/Note/signal#
root@manu-hacks:~/Dropbox/Note/signal# ./test_order.sh 1
./signal_delivery_order:PID is 31403
sigaction for signo(32) failed (Invalid argument)
sigaction for signo(33) failed (Invalid argument)
I will sleep 30 second
root@manu-hacks:~/Dropbox/Note/signal# signo(2) :Interrupt
signo(3) :Quit
signo(4) :Illegal instruction
signo(5) :Trace/breakpoint trap
signo(7) :Bus error
signo(8) :Floating point exception
signo(10) :User defined signal 1
signo(11) :Segmentation fault
signo(12) :User defined signal 2
signo(24) :CPU time limit exceeded
signo(31) :Bad system call
signo(36) :Real-time signal 2
signo(37) :Real-time signal 3
signo(38) :Real-time signal 4
signo(39) :Real-time signal 5
https://teamtreehouse.com/community/fatal-signal-4-sigill-code-2-fault-addrhttps://blog.csdn.net/fybon/article/details/68067148