[Buildbot-devel] xcodebuild fails with signal 10

Earl Levine elevine at gmail.com
Wed Sep 16 23:38:07 UTC 2009


Buildbot is great!  Many thanks to everyone who has contributed to it.  I am
running into an annoyance using it with "xcodebuild", and perhaps someone
can help me.

I have set up a slave running on Mac OS 10.5, with buildbot installed via
MacPorts:
Buildbot version: 0.7.11p3
Twisted version: 8.2.0
My master is running on a CentOS Linux system:
Buildbot version: 0.7.11p1
Twisted version: 8.2.0

My build steps include SVN checkout, building some autoconf-based projects,
then using the "xcodebuild" command-line tool to build an XCode project.  My
buildstep looks like this:

f1.addStep(shell.ShellCommand(command=["xcodebuild", "-project",
"myproject.xcodeproj", "-target", "mytarget", "-configuration", "Release"],
workdir="build/mystuff/", description=["build mytarget"]))

I never have any problems with the steps prior to the xcodebuild step,
however the xcodebuild step will randomly (maybe every 3rd or 4th time?)
fail immediately before it can start with a signal 10 (bus error, i
believe).  Below is a sample log:

xcodebuild -project myproject.xcodeproj -target mytarget -configuration Release
 in dir /Users/builder/buildslave/full/build/mystuff/ (timeout 1200 secs)
 watching logfiles {}
 argv: ['xcodebuild', '-project', 'myproject.xcodeproj', '-target',
'mytarget', '-configuration', 'Release']
 environment:
  EDITOR=emacs
  HOME=/Users/builder
  LOGNAME=builder
  MAIL=/var/mail/builder
  MANPATH=/opt/local/share/man:/usr/share/man:/usr/local/share/man:/usr/X11/man
  PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
  PWD=/Users/builder/buildslave/full/build/mystuff
  SHELL=/bin/bash
  SHLVL=1
  SSH_CLIENT=192.168.157.102 58478 22
  SSH_CONNECTION=192.168.157.102 58478 192.168.167.210 22
  SSH_TTY=/dev/ttys000
  TERM=xterm-color
  USER=builder
  _=/opt/local/bin/buildbot
 closing stdin
 using PTY: False
process killed by signal 10
program finished with exit code -1
elapsedTime=14.484449

However if i SSH into the build slave machine after this, and run the same
xcodebuild command line as the first line in this log, it succeeds 100% of
the time.

When the slave gets into this state, it will continue to fail on this step
on all subsequent builds until i restart buildbot on the slave, then it will
work fine for a few times until it starts failing again.

I was hoping i could force xcodebuild to give more verbose information about
the failure but i don't believe it has such an option.

Has anyone else running xcodebuild as a build step run into this problem?

Thanks
earl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://buildbot.net/pipermail/devel/attachments/20090916/68fa5001/attachment.html>


More information about the devel mailing list