Segmentation Faults are not something that you see very often when programming in Python. Python almost always has a much higher level Exception raised when encountering an error. However, when dealing with C extension libraries it is possible to see the dreaded "Segmentation Fault" error.
How can I debug this? Since the error is encountered in C, you have to use a C debugger (in our case we'll use the GNU Debugger, gdb)
First you need to turn on core file dumping (do this in the shell that you are running the program in):
- ulimit -c unlimited