[prev in list] [next in list] [prev in thread] [next in thread] 

List:       python-dev
Subject:    Re: [Python-Dev] How to debug python crashes
From:       Victor Stinner <victor.stinner () gmail ! com>
Date:       2013-05-14 18:52:11
Message-ID: CAMpsgwY2DcE7p2o0_uxNAUh0nzBTZRJgO+2MxxOmeZShvcFGNw () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,

I don't know if it can help, but if you really don't know where your
programcrash/hang occurs, you can use the faulthandler module:

https://pypi.python.org/pypi/faulthandler

It can be used to display te backtrace of all threads on an event like a
signal or a timeout.

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.

The documentation:

http://docs.python.org/dev/library/faulthandler.html

Victor

Le mardi 14 mai 2013, Philippe Fremy a =C3=A9crit :

> Hi,
>
> I have a reproducable crash on Windows XP with Python 2.7 which I would
> like to investigate. I have Visual Studio 2008 installed and I
> downloaded the pdb files. However I could not find any instructions on
> how to use them and was unsuccessful at getting anything out of it.
>
> I checked the developer guide but could not find anything on debugging
> crashes. On internet, this seems to be also an underdocumented topic.
>
> So, a few questions :
> - is there some documentation to help debugging crashes ?
> - are the pdb files released along python usable with Visual Studio and
> stock Python ? Or do you need a hand-compiled version ?
>
> cheers,
>
> Philippe
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev@python.org <javascript:;>
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.=
com
>

[Attachment #5 (text/html)]

Hi,<div><br></div><div>I  don&#39;t know if it can help, but if you really don&#39;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, &#39;cvml&#39;, \
&#39;Python-Dev@python.org&#39;)">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>



_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev%40progressive-comp.com


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic