python进程返回代码-9是什么意思? [英] what does a python process return code -9 mean?

查看:552
本文介绍了python进程返回代码-9是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个python脚本,返回的退出状态为-9.

I have a python script which returns the exit status of -9.

我试图通过atexit模块找到问题的根源,但是没有得到解决.

I tried to get the root of the problem with the atexit module, but it does not get called.

有什么提示可以帮助我找到脚本终止的原因和位置?

Any hints to help me find why and where my script terminates?

问题是可重现的,操作系统:linux 3.7.10

The problem is reproducible, operating system: linux 3.7.10

推荐答案

该脚本已被操作系统杀死.负返回值是用于终止进程的信号号.

The script was killed by the operating system. Negative return values are the signal number which was used to kill the process.

该脚本需要太多内存.我在syslog中找到了它:

The script needed too much memory. I found this in syslog:

Out of memory: Kill process 26184 (python) score 439 or sacrifice child
Killed process 26184 (python) total-vm:628772kB, anon-rss:447660kB, file-rss:0kB

这篇关于python进程返回代码-9是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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