Python 子进程返回 -11

Python subprocess returned -11

我正在做一个测试用例,每当我调用子流程时,我都会收到以下错误。

  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/python', 'TestRunner/TestRunner.py', '-r', '1000000']' returned non-zero exit status -11

问题是,我应该如何提取实际的错误消息?

我没有从退出状态 -11 中得到任何信息。

是否有存储错误详细信息的临时文件?

谢谢。

手动尝试 运行 命令:

/usr/bin/python TestRunner/TestRunner.py -r 1000000

如果 -11 return 被解释为 "exited with signal 11 (Seg fault)",shell 应该打印一条这样的消息。

详细说明我的评论:

基于link I provided, it looks like you're running into a segfault because a thread did something it wasn't supposed to. Perhaps it would be helpful to check out this link as well: https://wiki.python.org/moin/CrashingPython

您也可以尝试 this 问题中投票最高的答案。我在 Python 中调试段错误的经验很少,但这就是我开始寻找的地方。