[Buildbot-commits] [Buildbot] #1749: xp slave fails to kill child process after network disconnect
Buildbot
nobody at buildbot.net
Sat Jan 22 03:31:37 UTC 2011
#1749: xp slave fails to kill child process after network disconnect
----------------------+--------------------
Reporter: philippem | Owner:
Type: defect | Status: new
Priority: critical | Milestone: 0.8.+
Version: 0.8.3 | Resolution:
Keywords: windows |
----------------------+--------------------
Comment (by philippem):
here's what this badboy spews into the slave's twistd.log, when I do a
"Force Build" followed by a "Stop This Build"
{{{
2011-01-21 19:28:30-0800 [Broker,client] SlaveBuilder.remote_print
(buildbot-full): message from master: ping
2011-01-21 19:28:30-0800 [Broker,client] startCommand:shell [id 1]
2011-01-21 19:28:30-0800 [Broker,client] RunProcess._startCommand
2011-01-21 19:28:30-0800 [Broker,client] c:\long-running.pl
2011-01-21 19:28:30-0800 [Broker,client] in dir c:\buildbot\slave-
test\full\build (timeout 1200 secs)
2011-01-21 19:28:30-0800 [Broker,client] watching logfiles {}
2011-01-21 19:28:30-0800 [Broker,client] argv: ['c:\\long-running.pl']
2011-01-21 19:28:30-0800 [Broker,client] environment: {'TMP':
'C:\\DOCUME~1\\plm\\LOCALS~1\\Temp', 'COMPUTERNAME': 'PLM-XP2',
'USERDOMAIN': 'PLM-XP2', 'VS90COMNTOOLS': 'c:\\Program Files\\Microsoft
Visual Studio 9.0\\Common7\\Tools\\', 'COMMONPROGRAMFILES': 'C:\\Program
Files\\Common Files', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 26
Stepping 5, GenuineIntel', 'PROGRAMFILES': 'C:\\Program Files',
'PROCESSOR_REVISION': '1a05', 'SYSTEMROOT': 'C:\\WINDOWS', 'PATH':
'C:\\program
files\\java\\jdk1.6.0_23\\bin;C:\\Perl\\site\\bin;C:\\Perl\\bin;C:\\Program
Files\\CollabNet\\Subversion Client;C:\\Program Files\\Windows Resource
Kits\\Tools\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;c:\\Program
Files\\Windows Resource Kits\\Tools;C:\\Program Files\\Microsoft SQL
Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL
Server\\100\\DTS\\Binn\\;C:\\Program Files\\Microsoft SQL
Server\\100\\Tools\\Binn\\VSShell\\Common7\\IDE\\;C:\\Program
Files\\Microsoft Visual Studio
9.0\\Common7\\IDE\\PrivateAssemblies\\;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0;C:\\Python25;C:\\Program
Files\\TortoiseSVN\\bin;C:\\Python25;c:\\Source\\GNU\\unxutils\\usr\\local\\wbin\\;C:\\xunit-1.6.1;C:\\Program
Files\\NUnit 2.5.8\\bin\\net-2.0;C:\\Program
Files\\QuickTime\\QTSystem\\;c:\\apache-ant-1.8.1\\bin;C:\\Program
Files\\OpenVPN\\bin', 'TEMP': 'C:\\DOCUME~1\\plm\\LOCALS~1\\Temp',
'PROCESSOR_ARCHITECTURE': 'x86', 'ALLUSERSPROFILE': 'C:\\Documents and
Settings\\All Users', 'SESSIONNAME': 'Console', 'HOMEPATH': '\\Documents
and Settings\\plm', 'JAVA_HOME': 'c:\\Program Files\\Java\\jdk1.6.0_23',
'USERNAME': 'plm', 'LOGONSERVER': '\\\\PLM-XP2', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'WINDIR': 'C:\\WINDOWS', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1', 'CLIENTNAME':
'Console', 'FP_NO_HOST_CHECK': 'NO', 'QTJAVA': 'C:\\Program
Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'HOMEDRIVE': 'C:', 'APPDATA':
'C:\\Documents and Settings\\plm\\Application Data', 'ANT_HOME': 'C
:\\apache-ant-1.8.1', 'SYSTEMDRIVE': 'C:', 'NUMBER_OF_PROCESSORS': '2',
'PWD': 'c:\\buildbot\\slave-test\\full\\build', 'PROCESSOR_LEVEL': '6',
'OS': 'Windows_NT', 'USERPROFILE': 'C:\\Documents and Settings\\plm'}
2011-01-21 19:28:30-0800 [Broker,client] closing stdin
2011-01-21 19:28:30-0800 [Broker,client] using PTY: False
2011-01-21 19:28:30-0800 [Broker,client]
create:command=C:\WINDOWS\system32\cmd.exe
cmdline=C:\WINDOWS\system32\cmd.exe /c c:\long-running.pl env={'TMP':
'C:\\DOCUME~1\\plm\\LOCALS~1\\Temp', 'COMPUTERNAME': 'PLM-XP2',
'USERDOMAIN': 'PLM-XP2', 'VS90COMNTOOLS': 'c:\\Program Files\\Microsoft
Visual Studio 9.0\\Common7\\Tools\\', 'COMMONPROGRAMFILES': 'C:\\Program
Files\\Common Files', 'PROCESSOR_IDENTIFIER': 'x86 Family 6 Model 26
Stepping 5, GenuineIntel', 'PROGRAMFILES': 'C:\\Program Files',
'PROCESSOR_REVISION': '1a05', 'SYSTEMROOT': 'C:\\WINDOWS', 'PATH':
'C:\\program
files\\java\\jdk1.6.0_23\\bin;C:\\Perl\\site\\bin;C:\\Perl\\bin;C:\\Program
Files\\CollabNet\\Subversion Client;C:\\Program Files\\Windows Resource
Kits\\Tools\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;c:\\Program
Files\\Windows Resource Kits\\Tools;C:\\Program Files\\Microsoft SQL
Server\\100\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL
Server\\100\\DTS\\Binn\\;C:\\Program Files\\Microsoft SQL
Server\\100\\Tools\\Binn\\VSShell\\Common7\\IDE\\;C:\\Program
Files\\Microsoft Visual Studio
9.0\\Common7\\IDE\\PrivateAssemblies\\;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0;C:\\Python25;C:\\Program
Files\\TortoiseSVN\\bin;C:\\Python25;c:\\Source\\GNU\\unxutils\\usr\\local\\wbin\\;C:\\xunit-1.6.1;C:\\Program
Files\\NUnit 2.5.8\\bin\\net-2.0;C:\\Program
Files\\QuickTime\\QTSystem\\;c:\\apache-ant-1.8.1\\bin;C:\\Program
Files\\OpenVPN\\bin', 'TEMP': 'C:\\DOCUME~1\\plm\\LOCALS~1\\Temp',
'PROCESSOR_ARCHITECTURE': 'x86', 'ALLUSERSPROFILE': 'C:\\Documents and
Settings\\All Users', 'SESSIONNAME': 'Console', 'HOMEPATH': '\\Documents
and Settings\\plm', 'JAVA_HOME': 'c:\\Program Files\\Java\\jdk1.6.0_23',
'USERNAME': 'plm', 'LOGONSERVER': '\\\\PLM-XP2', 'COMSPEC':
'C:\\WINDOWS\\system32\\cmd.exe', 'WINDIR': 'C:\\WINDOWS', 'CLASSPATH':
'.;C:\\Program Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'PATHEXT':
'.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.PSC1', 'CLIENTNAME':
'Console', 'FP_NO_HOST_CHECK': 'NO', 'QTJAVA': 'C:\\Program
Files\\Java\\jre6\\lib\\ext\\QTJava.zip', 'HOMEDRIVE': 'C:', 'APPDATA':
'C:\\Documents and Settings\\plm\\Application Data', 'ANT_HOME': 'C
:\\apache-ant-1.8.1', 'SYSTEMDRIVE': 'C:', 'NUMBER_OF_PROCESSORS': '2',
'PWD': 'c:\\buildbot\\slave-test\\full\\build', 'PROCESSOR_LEVEL': '6',
'OS': 'Windows_NT', 'USERPROFILE': 'C:\\Documents and Settings\\plm'}
path=c:\buildbot\slave-test\full\build StartupInfo=<PySTARTUPINFO object
at 0x011FC510>)
2011-01-21 19:28:30-0800 [Broker,client] create: hProcess=<PyHANDLE:1564>
hThread=<PyHANDLE:1532> pid=884 dwTid=1672
2011-01-21 19:28:30-0800 [Broker,client] <Process pid=884>
2011-01-21 19:28:36-0800 [Broker,client] asked to interrupt current
command: The web-page 'stop build' button was pressed by
'<unknown>':
2011-01-21 19:28:36-0800 [Broker,client] command interrupted, killing pid
884
2011-01-21 19:28:36-0800 [Broker,client] trying
process.signalProcess('KILL')
2011-01-21 19:28:36-0800 [Broker,client] terminate process on hProcess:
hProcess=<PyHANDLE:1564> pid = 884
2011-01-21 19:28:36-0800 [Broker,client] signal KILL sent successfully
2011-01-21 19:28:36-0800 [-] command finished with signal None, exit code
1, elapsedTime: 6.860000
2011-01-21 19:28:36-0800 [-] SlaveBuilder.commandComplete
<buildslave.commands.shell.SlaveShellCommand instance at 0x012AB710>
}}}
the master.cfg has:
{{{
f1.addStep(ShellCommand(command=["c:\\long-running.pl"], usePTY=True))
}}}
and long-running.pl looks like:
{{{
$| = 1;
sub sleep {
my $pid = $$;
for ($i = 0; $i < 600; ++$i) {
sleep(1);
print "$pid $i\n";
}
}
sleep();
}}}
--
Ticket URL: <http://trac.buildbot.net/ticket/1749#comment:14>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
More information about the Commits
mailing list