I have also had this problem with a long running process serving a lot
of stuff. I had to kill it in the end. If this was originally caused
by my code then it seems that the killthread code doesn't work
correctly, it shouldn't crash out? I've seen a similar issue with
windmill and killthread, both possibly using that same code from the
web, or using it in the wrong way etc?
09:42:51,158 WARNI [paste.httpserver.ThreadPool] Thread
140598822938960 hung (working on task for 7468 seconds)
----------------------------------------
Exception happened during processing of request from ('127.0.0.1',
44982)
Traceback (most recent call last):
File "/usr/lib64/python2.5/SocketServer.py", line 222, in
handle_request
self.process_request(request, client_address)
File "/home/sc/virtualenv/svPortalService/lib/python2.5/site-
packages/Paste-1.7.2-py2.5.egg/paste/httpserver.py", line 1046, in
process_request
lambda: self.process_request_in_thread(request, client_address))
File "/home/sc/virtualenv/svPortalService/lib/python2.5/site-
packages/Paste-1.7.2-py2.5.egg/paste/httpserver.py", line 626, in
add_task
self.kill_hung_threads()
File "/home/sc/virtualenv/svPortalService/lib/python2.5/site-
packages/Paste-1.7.2-py2.5.egg/paste/httpserver.py", line 787, in
kill_hung_threads
self.kill_worker(worker.thread_id)
File "/home/sc/virtualenv/svPortalService/lib/python2.5/site-
packages/Paste-1.7.2-py2.5.egg/paste/httpserver.py", line 714, in
kill_worker
killthread.async_raise(thread_id, SystemExit)
File "/home/sc/virtualenv/svPortalService/lib/python2.5/site-
packages/Paste-1.7.2-py2.5.egg/paste/util/killthread.py", line 25, in
async_raise
raise ValueError("invalid thread id")
ValueError: invalid thread id
----------------------------------------
Similar thing from Windmill:
Traceback (most recent call last):
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/authoring/__init__.py", line 67, in
teardown_module
admin_lib.teardown(module.windmill_dict)
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/bin/admin_lib.py", line 220, in
teardown
shell_objects['httpd'].stop()
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/server/https.py", line 427, in stop
t.terminate()
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/server/thread2.py", line 46, in
terminate
self.raise_exc(SystemExit)
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/server/thread2.py", line 41, in
raise_exc
_async_raise(self._get_my_tid(), exctype)
File "/home/nick/virtualenv/injector/lib/python2.5/site-packages/
windmill-1.2-py2.5.egg/windmill/server/thread2.py", line 13, in
_async_raise
raise ValueError("invalid thread id")
ValueError: invalid thread id
On Sep 10, 10:11 am, Marcin Kasperski <[email protected]>
wrote:
> In logs of my pylons app I spotted recently a few backtraces like the
> one below. Not sure whether this is harmful, but maybe it is worth
> a look?
>
> 2009-09-10_06:08:37.07570 08:08:37,075 WARNI [paste.httpserver.ThreadPool]
> Thread 47284430936400 hung (working on task for 9610 seconds)
> 2009-09-10_06:08:37.08774 File "/usr/lib/python2.6/SocketServer.py", line
> 281, in _handle_request_noblock
> 2009-09-10_06:08:37.08774 Traceback (most recent call last):
> 2009-09-10_06:08:37.08775 self.process_request(request, client_address)
> 2009-09-10_06:08:37.08776 lambda: self.process_request_in_thread(request,
> client_address))
> 2009-09-10_06:08:37.08776 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 1046, in
> process_request
> 2009-09-10_06:08:37.08777 self.kill_hung_threads()
> 2009-09-10_06:08:37.08777 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 626, in add_task
> 2009-09-10_06:08:37.08778 self.kill_worker(worker.thread_id)
> 2009-09-10_06:08:37.08778 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 787, in
> kill_hung_threads
> 2009-09-10_06:08:37.08779 killthread.async_raise(thread_id, SystemExit)
> 2009-09-10_06:08:37.08779 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 714, in
> kill_worker
> 2009-09-10_06:08:37.08780 File
> "/var/lib/python-support/python2.6/paste/util/killthread.py", line 25, in
> async_raise
> 2009-09-10_06:08:37.09506 raise ValueError("invalid thread id")
> 2009-09-10_06:08:37.09514 ValueError: invalid thread id
> 2009-09-10_06:33:04.99899 08:33:04,998 WARNI [paste.httpserver.ThreadPool]
> Thread 47284430936400 hung (working on task for 11077 seconds)
> 2009-09-10_06:33:04.99903 Traceback (most recent call last):
> 2009-09-10_06:33:04.99904 self.process_request(request, client_address)
> 2009-09-10_06:33:04.99904 File "/usr/lib/python2.6/SocketServer.py", line
> 281, in _handle_request_noblock
> 2009-09-10_06:33:04.99905 lambda: self.process_request_in_thread(request,
> client_address))
> 2009-09-10_06:33:04.99905 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 1046, in
> process_request
> 2009-09-10_06:33:04.99906 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 626, in add_task
> 2009-09-10_06:33:04.99907 self.kill_hung_threads()
> 2009-09-10_06:33:04.99907 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 787, in
> kill_hung_threads
> 2009-09-10_06:33:04.99908 self.kill_worker(worker.thread_id)
> 2009-09-10_06:33:04.99908 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 714, in
> kill_worker
> 2009-09-10_06:33:04.99909 killthread.async_raise(thread_id, SystemExit)
> 2009-09-10_06:33:04.99909 File
> "/var/lib/python-support/python2.6/paste/util/killthread.py", line 25, in
> async_raise
> 2009-09-10_06:33:04.99910 raise ValueError("invalid thread id")
> 2009-09-10_06:33:04.99910 ValueError: invalid thread id
> 2009-09-10_06:54:04.24218 08:54:04,241 WARNI [paste.httpserver.ThreadPool]
> Thread 47284430936400 hung (working on task for 12337 seconds)
> 2009-09-10_06:54:04.24220 Traceback (most recent call last):
> 2009-09-10_06:54:04.24221 self.process_request(request, client_address)
> 2009-09-10_06:54:04.24221 File "/usr/lib/python2.6/SocketServer.py", line
> 281, in _handle_request_noblock
> 2009-09-10_06:54:04.24222 lambda: self.process_request_in_thread(request,
> client_address))
> 2009-09-10_06:54:04.24222 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 1046, in
> process_request
> 2009-09-10_06:54:04.24223 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 626, in add_task
> 2009-09-10_06:54:04.24224 self.kill_hung_threads()
> 2009-09-10_06:54:04.24224 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 787, in
> kill_hung_threads
> 2009-09-10_06:54:04.24225 self.kill_worker(worker.thread_id)
> 2009-09-10_06:54:04.24225 File
> "/var/lib/python-support/python2.6/paste/httpserver.py", line 714, in
> kill_worker
> 2009-09-10_06:54:04.24226 killthread.async_raise(thread_id, SystemExit)
> 2009-09-10_06:54:04.26135 raise ValueError("invalid thread id")
> 2009-09-10_06:54:04.26135 File
> "/var/lib/python-support/python2.6/paste/util/killthread.py", line 25, in
> async_raise
> 2009-09-10_06:54:04.26136 ValueError: invalid thread id
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---