If you are on linux, run python under gdb
gdb python
(gdb) run /path/to/script.py
## wait for segfault ##
(gdb) backtrace
## stack trace of the c code
More Related Contents:
- How to debug a Flask app
- How can I see the entire HTTP request that’s being sent by my Python application?
- Showing the stack trace from a running Python application
- How to debug in Django, the good way? [closed]
- What is the internal precision of numpy.float128?
- Why (0-6) is -6 = False? [duplicate]
- How do I run a Python program?
- Is it feasible to compile Python to machine code?
- Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell
- Wrapping a C library in Python: C, Cython or ctypes?
- It is more efficient to use if-return-return or if-else-return?
- What are good ways to make my Python code run first time? [closed]
- Accessing OpenCV CUDA Functions from Python (No PyCUDA)
- I have Python on my Ubuntu system, but gcc can’t find Python.h
- Create an object using Python’s C API
- How to compile .c code from Cython with gcc
- Where can I find source or algorithm of Python’s hash() function?
- Python ? (conditional/ternary) operator for assignments [duplicate]
- Using Cython To Link Python To A Shared Library
- Pretty print a pandas dataframe in VS Code
- C++ conversion from NumPy array to Mat (OpenCV)
- How can I tell where my python script is hanging?
- pydev breakpoints not working
- Embedding Python in C, linking fails with undefined reference to `Py_Initialize’
- How to watch for a variable change in python without dunder setattr or pdb
- Writing code translator from Python to C? [closed]
- Installing lxml for Python 3.4 on Windows x 86 (32 bit) with Visual Studio C++ 2010 Express
- Extract traceback info from an exception object
- Extending python – to swig, not to swig or Cython
- Call python code from c via cython