Python Crashes

koranthala koranthala at gmail.com
Thu Jan 15 00:36:25 EST 2009


On Jan 15, 3:12 am, "James Mills" <prolo... at shortcircuit.net.au>
wrote:
> On Thu, Jan 15, 2009 at 6:57 AM, koranthala <koranth... at gmail.com> wrote:
> > Hi,
> >    I have a twisted based application based on Python 2.4.3. I also
> > have one thread in this application.
>
> >    I found that my program crashes repeatedly after a random interval
> > (ranging from 10 min to 3 hr). When I say crash, it is not just that
> > the program dies. Rather in WinXP - a window comes mentioning that
> > 'Python.exe unexpectedly crashed'.
> >    I tried putting in catching the exception by using try: except -
> > and logging everything. But the logging code is also not hit, i.e.
> > even the 'except' code is not hit. I feel that the base python
> > interpreter itself is crashing due to some bug in my program.
> >    Earlier, I had put code as
> > try:
> > except:
> >  log
> >     At this time, my whole machine also froze. It was so slow that
> > one mouse movement happened after 7-8 minutes after I moved the
> > mouse.
>
> > Then I modified the code to
> > try:
> > except Exception:
> >  log
>
> >    Then, the machine no longer freezes. But, still there is no
> > logging of errors happening too.
>
> >    Could anyone guide me on this? I have been facing this issue for a
> > day, and cannot seem to solve it.
>
> > P.S ->    I am not allowed to post the code of application - so I hope
> > I have explained it enough.
>
> Do you use any 3rd party extensions (DLLs) ?
>
> cheers
> James

I am using 9 3rd party modules and there are some DLLs too - PIL etc.
But the problem is that the issue comes only after 3 hrs usually.
When I checked the memory using taskmanager, I found that it is not
going too high.
Is there any tool or anything which will help me debug this?



More information about the Python-list mailing list