[New-bugs-announce] [issue10641] kill_python sometimes fails to kill processes on buildbots
report at bugs.python.org
Tue Dec 7 01:15:41 CET 2010
New submission from David Bolen <db3l.net at gmail.com>:
On the XP and Win7 buildbots, kill_python sometimes fails to kill hung processes. I caught one instance recently and gathered some information though not yet enough to identify the issue. I can say that no processes are killed and no error messages displayed. I think that implies either a process ownership-related snapshot failure (which can exit without error) or a failure to identify the processes.
I noticed issue10136 and considered it might be related, but in testing I found cases where the exact same usage of kill_python as this failing case worked fine, whereas if it was a path mismatch problem I would expect it to fail consistently.
I have attached a log showing the hung processes, attempt to use kill_python, and final successful operation with the pskill utility.
In this case it was important to restore the buildbot quickly, but if I can catch it again I'll try to add some debugging code to kill_python first.
One thing that confused me along the way is that kill_python is only run at the beginning of a build and not as part of the clean process. So there are cases where I have hung processes around, but they turn out to be killable when the next build starts. I'm wondering if kill_python shouldn't perhaps be used on every clean operation too.
title: kill_python sometimes fails to kill processes on buildbots
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file19964/kill_python.log
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce