Terminated due to signal X

今天遇到的问题,所以查了下

当Xcode闪退提示“Message from debugger: Terminated due to signal 9”时,意思是程序收到信号9主动退出应用。收到信号9的原因有:内存不足,或CPU使用率过高时,程序主动终止了运行。

signal 是Linux/Unix 中的 signal 。来着:https://www.lifewire.com/signal-linux-command-4094016

Term: Default action is to terminate the process.//默认终止进程

Ign: Default action is to ignore the signal.//默认忽略信号

Core: Default action is to terminate the process and dump core.//默认终止进程并且内核转储

Stop: Default action is to stop the process.//默认停止进程

SignalValueActionComment

or death of controlling process

SIGINT2TermInterrupt from

SIGQUIT3CoreQuit from

SIGILL4Coreillegal

SIGABRT6CoreAbort signal

SIGFPE8CoreFloating point

SIGKILL9TermKill signal

SIGSEGV11CoreInvalid memory

SIGPIPE13TermBroken pipe: write to pipe with no readers

SIGALRM14TermTimer signal

SIGTERM15TermTermination signal

SIGUSR130,10,16TermUser-defined signal 1

SIGUSR231,12,17TermUser-defined signal 2

SIGCHLD20,17,18IgnChild stopped or terminated

SIGCONT19,18,25Continue if stopped

SIGSTOP17,19,23StopStop process

SIGTSTP18,20,24StopStop typed at tty

SIGTTIN21,21,26Stoptty input for background process

SIGTTOU22,22,27Stoptty output for background process

你可能感兴趣的:(Terminated due to signal X)