I encounter this problem almost always when i am working on a python-pygame project. Every second time when i evaluate the whole buffer with C-c C-c or with C-c C-l the pygame window open for a very short time and then every thing crashes including the python interpreter, and i get this error message:

Process Python segmentation fault (core dumped)

Does anyone know what the reason is and how can i fix it? I am on ubuntu 16.04 and using the default python-mode of emacs24.

1 Answer 1


This doesn't seem to be a problem with python-mode but with your python instance. This link goes into more detail, but it boils down to something has crashed. From the description you've given it sounds like your python instance is the crashing element. Double check that your python installed right. Considering that it is ubuntu, it should be fine. Next try reinstalling pygame. If your code is using a c compiled module make sure that it compiled right, and reinstall it. Sorry that this is rather vague answer, if you provide code for evaluation I can go more in depth.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.