[socal-piggies] threadframe and CherryPy: no stack frame at all

David Bl dblas at rocketmail.com
Wed Sep 20 11:58:43 PDT 2006


This will at least tell you the offending program and
line #.  Sorry, I have no experience with CherryPy.

.try :
.   some code
.except :
.    import traceback                                 
                          
.    et, ev, tb = sys.exc_info()                      
                          
.    while tb :                                       
                          
.        co = tb.tb_frame.f_code                      
                          
.        print "Filename = ", str(co.co_filename)     
                    
.        print "Error Line # = ",
str(traceback.tb_lineno(tb))             
.        tb = tb.tb_next                              
                          
.    print "error type = ", et                        
                       
.    print "error var name  = ", ev

David

--- Bertil Askelid <bertil at Askelid.com> wrote:

> Hello!
> 
>    I'm using Fazal Majid's threadframe package to
> debug a Python system
>    deadlock.
> 
>    Everything works fine until I connect to the
> system's server using
>    our client GUI via CherryPy.
> 
>    After that, "traceback.print_stack(frame)" prints
> nothing.
> 
>    Is this a known problem? What can I do make it
> work?
> 
>       With Kindest Regards
> 
>          Bertil
> 
> P.S.
> 
>    Versions:     
> CherryPy-2.2.0betadev_r980-py2.4.egg
>                   SQLObject-0.7.1dev_r1788-py2.4.egg
>                   TurboGears-0.9a1-py2.4.egg
>                   TurboKid-0.9.1-py2.4.egg
>                   python-2.4.3-8.FC4
> 
> _______________________________________________
> socal-piggies mailing list
> socal-piggies at lists.idyll.org
> http://lists.idyll.org/listinfo/socal-piggies
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the socal-piggies mailing list