<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div>Hello,</div><div><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I started few days ago to make Buildbot under VxWorks run.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I ported Python and made a few changes in Buildbot and Twisted to make everything run.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I'm using Twisted 9.0.0 and
 Python 2.7.6</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Twisted version is a bit old because its not complex as the 13.0.0 and it made the work under QNX for example.</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">In Buildbot there are few possibilities to make a Step:</div><div style="background-color: transparent;"><ul><li>FileUpload</li><li>FileDownload</li><li>ShellCommand</li><li>MasterShellCommand</li></ul><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>MasterShellCommand doesnt make any
 difference here since its executed on the Master.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>FileUpload and FileDownload (filetransfer between Master and Slave) works fine.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>My Problem is the ShellCommand.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
 background-color: transparent; font-style: normal;"><span>It executes a command on the Slave.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Im using the posix part on the Slave BUT fork() and exec() are not supported in VxWorks.</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>So i changed for _fork methode in twisted/internet/process.py to avoid the fork()-part [self.pid = fork()].</span></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">I didnt change the exec part in Twisted. I
 did in the Python .. (in os.py i changed the exec methode to call another methode .. so i didnt made a huge change there).</div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Now when i want to execute a ShellCommand, my buildbot/twisted/python crashes and i have an exception:</div><pre style="font-family: 'Courier New', courier, monotype, monospace; font-size: 16px;"><span class="header" style="color: blue;">remoteFailed: [Failure instance: Traceback (failure with no frames): <class 'twisted.spread.pb.PBConnectionLost'>: [Failure instance: Traceback (failure with no frames): <class
 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.]</span></pre><pre style="font-family: 'Courier New', courier, monotype, monospace; font-size: 16px;"><span class="header" style="color: blue;"><br></span></pre></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: medium;">twisted.spread.pb.PBConnectionLost: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. ]</div><pre style="font-family: 'Courier New', courier, monotype, monospace;"><span class="header" style="color: blue;"><div class="stackTrace" style="font-family: Verdana, Arial, helvetica, sans-serif; color: rgb(0, 0, 0); font-size: medium; white-space: normal;"></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space:
 normal;">twisted.spread.pb.PBConnectionLost: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly. ]</div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><br></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">There are the two things i have.</span><br></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
 sans-serif; font-weight: normal;">My question after writing 40 lines here:</span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">What could be the problem? </span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">Why does it just crash without any "real" exception or error.</span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color:
 rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">Could someone point me to the right direction?</span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;"><br></span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">Thanks.</span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space:
 normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;"><br></span></div><div class="error" style="font-family: Verdana, Arial, helvetica, sans-serif; color: red; font-weight: bold; font-size: 16px; white-space: normal;"><span style="color: rgb(0, 0, 0); font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-weight: normal;">Best regards.</span></div></span></pre><div style="background-color: transparent;"><pre style="font-family: 'Courier New', courier, monotype, monospace; font-size: 16px;"><span class="header" style="color: blue;"><br></span></pre><pre style="font-family: 'Courier New', courier, monotype, monospace; font-size: 16px;"><span class="header" style="color: blue;"><br></span></pre></div></div></body></html>