How to get the python sourcecode line, when debuging the Python C sources?

Stefan Knappmann 101.139915 at germanynet.de
Tue Sep 7 11:43:16 EDT 1999


Hi,

I extended Python with a self written C Module.
Unluckily my program crashes with a segmentation fault. 
I recompiled Python with debugger information and reprodced the
error. 
In the C debugger I can see that the program is in an initialisation
function of a datastructure in my C module.
So far so good, but this initialisation function is only
called at the start of the python script and the crash commes 
aproximately after two hours of running.

I would like to know in which line of python code is the program,
when it calls my function.

Does anybody know in which C variable I can find the Python Stack?
Or how to get the activ Python source code line from within the C
debugger?


Thanks in advance

Stefan







More information about the Python-list mailing list