signal各个数字含义

signal.h中是如下定义的:

#include <machine/signal.h>/* sigcontext; codes for SIGILL, SIGFPE */


#defineSIGHUP 1/* hangup */

#defineSIGINT 2/* interrupt */

#defineSIGQUIT 3/* quit */

#defineSIGILL 4/* illegal instruction (not reset when caught) */

#defineSIGTRAP 5/* trace trap (not reset when caught) */

#defineSIGABRT 6/* abort() */

#if  (defined(_POSIX_C_SOURCE) && !defined(_DARWIN_C_SOURCE))

#defineSIGPOLL 7/* pollable event ([XSR] generated, not supported) */

#else/* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */

#defineSIGIOT SIGABRT/* compatibility */

#defineSIGEMT 7/* EMT instruction */

#endif/* (!_POSIX_C_SOURCE || _DARWIN_C_SOURCE) */

#defineSIGFPE 8/* floating point exception */

#defineSIGKILL 9/* kill (cannot be caught or ignored) */

#defineSIGBUS 10/* bus error */

#defineSIGSEGV 11/* segmentation violation */

#defineSIGSYS 12/* bad argument to system call */

#defineSIGPIPE 13/* write on a pipe with no one to read it */

#defineSIGALRM 14/* alarm clock */

#defineSIGTERM 15/* software termination signal from kill */

#defineSIGURG 16/* urgent condition on IO channel */

#defineSIGSTOP 17/* sendable stop signal not from tty */

#defineSIGTSTP 18/* stop signal from tty */

#defineSIGCONT 19/* continue a stopped process */

#defineSIGCHLD 20/* to parent on child stop or exit */

#defineSIGTTIN 21/* to readers pgrp upon background tty read */

#defineSIGTTOU 22/* like TTIN for output if (tp->t_local&LTOSTOP) */

#if  (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))

#defineSIGIO 23/* input/output possible signal */

#endif

#defineSIGXCPU 24/* exceeded CPU time limit */

#defineSIGXFSZ 25/* exceeded file size limit */

#defineSIGVTALRM 26 /* virtual time alarm */

#defineSIGPROF 27/* profiling time alarm */

#if  (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))

#define SIGWINCH 28/* window size changes */

#define SIGINFO29 /* information request */

#endif

#define SIGUSR1 30/* user defined signal 1 */

#define SIGUSR2 31/* user defined signal 2 */


Exception codes

In the crash log is a line that starts with the text Exception Codes: followed by one or more hexadecimal values. These are processor-specific codes that may give you more information on the nature of the crash.

  • The exception code 0xbaaaaaad indicates that the log is a stackshot of the entire system, not a crash report. To take a stackshot, push the home button and any volume button. Often these logs are accidentally created by users, and do not indicate an error.

  • The exception code 0xbad22222 indicates that a VoIP application has been terminated by iOS because it resumed too frequently.

  • The exception code 0x8badf00d indicates that an application has been terminated by iOS because a watchdog timeout occurred. The application took too long to launch, terminate, or respond to system events. One common cause of this is doing synchronous networking on the main thread. Whatever operation is on Thread 0: needs to be moved to a background thread, or processed differently, so that it does not block the main thread.

  • The exception code 0xc00010ff indicates the app was killed by the operating system in response to a thermal event. This may be due to an issue with the particular device that this crash occurred on, or the environment it was operated in. For tips on making your app run more efficiently, see iOS Performance and Power Optimization with Instruments WWDC session.

  • The exception code 0xdead10cc indicates that an application has been terminated by iOS because it held on to a system resource (like the address book database) while running in the background.

  • The exception code 0xdeadfa11 indicated that an application has been force quit by the user. Force quits occur when the user first holds down the On/Off button until "slide to power off" appears, then holds down the Home button. It's reasonable to assume that the user has done this because the application has become unresponsive, but it's not guaranteed - force quit will work on any application.

    Note: Terminating a suspended app by removing it from the multitasking tray does not generate a crash log. Once an app has suspended, it is eligible for termination by iOS at any time, so no crash log will be generated.


  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值