what does a python process return code -9 mean?

半城伤御伤魂 提交于 2019-12-03 20:46:18

问题


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

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?

The problem is reproducible, operating system: linux 3.7.10


回答1:


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

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


来源:https://stackoverflow.com/questions/18529452/what-does-a-python-process-return-code-9-mean

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!