I am using Emacs 24.5.1 for writing something in pygame in python 2.7.11. Very often (precisely speaking every second time!) when I try to evaluate the buffer (the whole file) with
C-c C-c everything crashes and in the shell I get this message:
Process Python[/path/to/the/file.py] segmentation fault (core dumped)
Why is this happening and what is the way to get rid of it?
I should also mention that this only happens when I try things in Emacs, if I run the program in terminal or other editors like geany every thing works fine. But I would like to work in Emacs on my python projects. I am using Ubuntu 16.04 LTS.