0

I am using pygame and random modules and often when i evaluate the code this Process Python segmentation fault (core dumped) shows up and every thing breaks down! Is this because either of these modules have been written in C? How can i get this fixed?

  • You could use `gdb` to debug the python process ( take a look [here](https://wiki.python.org/moin/DebuggingWithGdb) ). While you may not understand everything that's going on, you may get a hint on where the problem is. I once found a bug in pygame (some versions ago) this way (I think empty filenames crashed pygame when it should simply use a standard font IIRC). – sloth Mar 23 '16 at 20:05
  • My code crashes almost allways the first time i run it, then the second time it just works fine without any problem! –  Mar 23 '16 at 20:25

0 Answers0