简体   繁体   English

C ++应用程序以143退出代码终止-这是什么意思?

[英]C++ application terminates with 143 exit code - what does it mean?

My C++ application crashes periodically. 我的C ++应用程序定期崩溃。 It writes Terminated in terminal and stops. 它在终端中写入Terminated ,然后停止。 I have no idea what is the reason ( gdb is not solution, it is mutithreaded application, and error appears on big amount of threads only that gdb can not process due to its low performance). 我不知道是什么原因( gdb不是解决方案,它是多线程应用程序,并且由于gdb性能低而在gdb无法处理的大量线程上出现错误)。 What does exit code 143 mean on CentOS Linux? 在CentOS Linux上,退出代码143是什么意思? Does it contain information about the reason of the crash? 它是否包含有关崩溃原因的信息?

143 usually means the application caught a SIGTERM signal, meaning the process was killed. 143通常表示应用程序捕获到SIGTERM信号,这意味着该进程已被终止。 This could be because another process killed it, or perhaps because the operating system killed it for using too much memory or some other resource, etc. Without more information, it's hard to know. 这可能是因为另一个进程杀死了它,或者可能是因为操作系统使用了过多的内存或其他资源而杀死了它。如果没有更多信息,很难知道。

There are some exit codes which have either defined or generally agreed upon meaning. 有一些退出代码已定义或已普遍同意。

In case of 143, which is 128 + 15, that means program died with signal 15, which is SIGTERM 如果是143(即128 + 15),则意味着程序死于信号15,即SIGTERM

According to the above table, exit codes 1 - 2, 126 - 165, and 255 have special meanings, and should therefore be avoided for user-specified exit parameters. 根据上表,退出代码1-2、126-165和255具有特殊含义,因此对于用户指定的退出参数应避免使用。

See the table at http://www.tldp.org/LDP/abs/html/exitcodes.html 请参阅http://www.tldp.org/LDP/abs/html/exitcodes.html上的表格

Error 143 means that the application is been killed by some other application or the OS itself. 错误143表示该应用程序已被某些其他应用程序或OS本身杀死。 this error is due to many reasons such as performing some unauthorized operation ie exploiting user privileges, or the system cannot provide the required drive or directory ,or problem in DNS configuration, or in rare cases inexact float point result..but without sufficient information exact cause is hard to tell... 此错误是由于多种原因引起的,例如执行一些未经授权的操作(例如,利用用户特权)或系统无法提供所需的驱动器或目录,或者DNS配置出现问题,或者在极少数情况下,浮点结果不准确。原因很难说...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM