How To Get Rid Of “Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)” in Pychar+Django

ε祈祈猫儿з 提交于 2021-02-11 15:30:08

问题


When I run my test suite using pycharm for a django app in my local machine, at certain test I got:

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

If I run that test in isolation using pycharm, it succeeds, which means there's not a problem in the app or test. If I disable that particular test, down the line I get the same error, in a different test, this one a dummy test! This seems to indicate that it's a problem with pycharm itself. The full test suite succeeds in the CI environment.

I tried some suggestion from other stackoverflow questions, which didn't solve the issue:

  • Unticking the Qt box in PyCharm Settings (Build, Ex... -> Python Debugger)
  • Uninstalling python3-pyqt5 (same link as above): Pyqt is not installed in my local machine.
  • Ticking gevent compatible in Pycharm Settings

My Environment: python 3.7.3, djando 2.2.8, Pycharm 2019.2.4 (professional edition)


回答1:


Finally, I solve it. This entry gave me the clue. It wasn't a pycharm issue, but a bug in python itself. I discovered when running flake8 itself failed.

I was using python 3.7.3 in ubuntu, which seems to have have SIGSEGV Error (Address boundary error). After upgrading to python 3.7.5, the issue was fixed.



来源:https://stackoverflow.com/questions/59251531/how-to-get-rid-of-process-finished-with-exit-code-139-interrupted-by-signal-11

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