什么“与信号9异常地退出:被杀死:9”意思 [英] what does "exited abnormally with signal 9: Killed: 9" mean

查看:2761
本文介绍了什么“与信号9异常地退出:被杀死:9”意思的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何读取控制台中出现的错误代码?

How to read error codes which appear in the console?

<Warning>:  ....... -exited abnormally with signal 9: Killed: 9
<Warning>:  ....... -1 err = Bad file descriptor (0x00000009)

这里信号9意味着什么,除此之外还有更多的信号。任何可用的文档。

Here what does signal 9 mean, are there any more signals apart from it. Any documentation available for it.

我在应用程序时遇到这种错误。从Xcode启动后,Xcode工具栏中的停止按钮终止。

I get this kind of error, when a App. launched from Xcode is terminated by "Stop" button in Xcode toolbar.

{获得此错误的另一种方法是,按主页按钮,然后双击主页按钮并关闭应用程序。
}

当我启动应用程序时情况会变得更糟。 再次,点按应用。 iPad屏幕上的图标,应用程序崩溃并抛出libMobileGestalt copySystemVersionDictionaryValue:无法从系统版本字典中查找ReleaseType

Things even get worse when I launch the App. again, by tapping on App. icon on iPad Screen, App crashes and throws "libMobileGestalt copySystemVersionDictionaryValue: Could not lookup ReleaseType from system version dictionary"

从查找堆栈溢出时,我看到发现此错误在iOS 6设备中。

From finding on stack overflow , I see that this error is found in iOS 6 devices.

url声明这是一个SIGKILL错误,它发生在应用程序立即终止,没有任何机会清理或捕获并处理信号

This url states that it's a SIGKILL error and it happens when "application is being terminated immediately, without any chance to clean up or catch and handle the signal"

所以,我认为在 - (void)didReceiveMemoryWarning中释放objets无助于解决它,那么什么可以是一个明确的解决方案?

So, I think releasing objets in "-(void) didReceiveMemoryWarning" would not help to solve it, then what could be a definite solution?

-(void) didReceiveMemoryWarning{
    [super didReceiveMemoryWarning];
    //release objects
    obj1=nil;
    [view1 removeFromSuperView];
    view1=nil;
    ........
}


推荐答案

这意味着应用程序收到了一个信号。有些信号可以由应用程序处理,有些则不是。信号9意味着应用程序需要被杀死,它不是由进程处理,而是由Linux调度程序处理。终止进程处理的进程的信号是SIGTERM(15),但是,如果进程没有处理它的属性,则进程继续生效。

It means that the application received a signal. Some signal could be handled by the applications, others, not. Signal 9 means that the application needs to be killed, it is not handled by the process, but by the Linux scheduler. The signal to terminate the process that is handled by the process is SIGTERM(15), but, if the process doesn't handle it property, then the process continues to live.

以下是主要信号:

   Signal     Value     Action   Comment
   ──────────────────────────────────────────────────────────────────────
   SIGHUP        1       Term    Hangup detected on controlling terminal
                                 or death of controlling process
   SIGINT        2       Term    Interrupt from keyboard
   SIGQUIT       3       Core    Quit from keyboard
   SIGILL        4       Core    Illegal Instruction
   SIGABRT       6       Core    Abort signal from abort(3)
   SIGFPE        8       Core    Floating point exception
   SIGKILL       9       Term    Kill signal
   SIGSEGV      11       Core    Invalid memory reference
   SIGPIPE      13       Term    Broken pipe: write to pipe with no
                                 readers
   SIGALRM      14       Term    Timer signal from alarm(2)
   SIGTERM      15       Term    Termination signal
   SIGUSR1   30,10,16    Term    User-defined signal 1
   SIGUSR2   31,12,17    Term    User-defined signal 2
   SIGCHLD   20,17,18    Ign     Child stopped or terminated
   SIGCONT   19,18,25    Cont    Continue if stopped
   SIGSTOP   17,19,23    Stop    Stop process
   SIGTSTP   18,20,24    Stop    Stop typed at terminal
   SIGTTIN   21,21,26    Stop    Terminal input for background process
   SIGTTOU   22,22,27    Stop    Terminal output for background process

这篇关于什么“与信号9异常地退出:被杀死:9”意思的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆