Hi,<div><br></div><div>I don't know if it can help, but if you really don't know where your program<span></span> crash/hang occurs, you can use the faulthandler module:</div><div><br></div><div><a href="https://pypi.python.org/pypi/faulthandler">https://pypi.python.org/pypi/faulthandler</a><div>
<br></div><div>It can be used to display te backtrace of all threads on an event like a signal or a timeout.</div><div><br></div><div>It works with Python, but you will need a compiler (like Visual Studio) to install it on Windows. I failed to build a MSI installer on Windows 64-bit with Visual Studio 2010 express. If someone can help me to build MSI, please contact me.</div>
<div><br></div>The documentation:<br><div><br></div><div><a href="http://docs.python.org/dev/library/faulthandler.html">http://docs.python.org/dev/library/faulthandler.html</a></div><div><br></div><div>Victor<br><br>Le mardi 14 mai 2013, Philippe Fremy  a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have a reproducable crash on Windows XP with Python 2.7 which I would<br>
like to investigate. I have Visual Studio 2008 installed and I<br>
downloaded the pdb files. However I could not find any instructions on<br>
how to use them and was unsuccessful at getting anything out of it.<br>
<br>
I checked the developer guide but could not find anything on debugging<br>
crashes. On internet, this seems to be also an underdocumented topic.<br>
<br>
So, a few questions :<br>
- is there some documentation to help debugging crashes ?<br>
- are the pdb files released along python usable with Visual Studio and<br>
stock Python ? Or do you need a hand-compiled version ?<br>
<br>
cheers,<br>
<br>
Philippe<br>
<br>
_______________________________________________<br>
Python-Dev mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Python-Dev@python.org')">Python-Dev@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-dev" target="_blank">http://mail.python.org/mailman/listinfo/python-dev</a><br>
Unsubscribe: <a href="http://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com" target="_blank">http://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com</a><br>
</blockquote></div></div>