Quote:
Originally Posted by virtuald
A segmentation fault means we screwed something up.
|
More specificially, this happens when a python extension (written in C) tries to access a memory beyond reach.
You can trace it in following ways:
1.Add sys.settrace at the very first line of the code.
2.Use gdb at the command prompt
gdb python
(gdb) run /path/to/script.py
## wait for segfault ##
(gdb) backtrace
## stack trace of the c code
My python is rather rusty. Let me know if this method doesn't work