Comment 1 for bug 118625

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: codebrowse sometimes hangs

I've just restarted codebrowse, here were the notes I took while investigating. I've seen at least one hang that was basically identical.

Hang appears to have been at, or after 03:00:46 2007-06-04 UTC.

gdb revealed three threads:

thread 1: in time.sleep()
thread 2: also in time.sleep()
thread 3: in threading._RLock.wait()

[Switching to thread 1 (Thread 1075341632 (LWP 4779))]#0 0x401195b7 in select () from /lib/tls/libc.so.6
(gdb) pystack
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpengine.py (111): block
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpserver.py (111): _start
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpengine.py (74): start
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/_cpserver.py (33): start
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/startup.py (295): start_server
./start-loggerhead.py (295): ?

[Switching to thread 2 (Thread 1090423728 (LWP 4781))]#0 0x401195b7 in select () from /lib/tls/libc.so.6
(gdb) pystack
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/TurboGears-1.0.1-py2.4.egg/turbogears/scheduler.py (181): _run
/usr/lib/python2.4/threading.py (420): run
/usr/lib/python2.4/threading.py (420): __bootstrap

[Switching to thread 3 (Thread 1088326576 (LWP 4780))]#0 0x400277eb in sem_wait@GLIBC_2.0 () from /lib/tls/libpthread.so.0
(gdb) pystack
/usr/lib/python2.4/threading.py (195): wait
/usr/lib/python2.4/Queue.py (101): get
/srv/codebrowse.launchpad.net/turbogears/lib/python2.4/site-packages/CherryPy-2.2.1-py2.4.egg/cherrypy/filters/cachefilter.py (46): expireCache
/usr/lib/python2.4/threading.py (420): run
/usr/lib/python2.4/threading.py (420): __bootstrap