Oddly hanging mock build

Michael E Brown Michael_E_Brown at dell.com
Wed Jan 16 17:52:59 UTC 2008


On Wed, Jan 16, 2008 at 12:54:45AM -0600, Jason L Tibbitts III wrote:
> I'm not sure what to make of this so I haven't yet filed a bug.  But I
> noticed that one of spot's jobs was taking way longer than it should:
>   http://koji.fedoraproject.org/koji/buildinfo?buildID=31678
> and so I grabbed the srpm and tried to build it on my local builder.
> It hung at the same place that spot's job was hung.
> 
> Basically mock installs dependencies, then calls rpmbuild and stops:
> 
> mock.util: Installed: ccache.x86_64 0:2.4-11.fc8 perl-DBI.x86_64 0:1.601-1.fc9 sqlite-devel.x86_64 0:3.5.4-2.fc9
> mock.util: Dependency Installed: perl-ExtUtils-Embed.x86_64 0:1.26-31.fc9 perl-ExtUtils-MakeMaker.x86_64 0:6.30-31.fc9 perl-Test-Harness.x86_64 0:2.56-31.fc9 perl-devel.x86_64 4:5.8.8-31.fc9
> mock.Root.state: State Changed: build
> mock.util: run cmd timeout(0): ccache -M 4G
> mock.util: Ran setarch 'x86_64'
> mock.util: chroot /mock/fedora-development-x86_64/root/
> mock.Root.build: ENTER do("bash -l -c 'rpmbuild -bb --target x86_64 --nodeps //builddir/build/SPECS/perl-DBD-SQLite.spec'", '/mock/fedora-development-x86_64/root/', 0, True, 0, <mock.uid.uidManager object at 0x90e210>, 7225, 493, 'x86_64', logger=<mock.trace_decorator.getLog object at 0x90e990>)
> mock.Root.build: run cmd timeout(0): bash -l -c 'rpmbuild -bb --target x86_64 --nodeps //builddir/build/SPECS/perl-DBD-SQLite.spec'
> mock.util: Ran setarch 'x86_64'
> mock.util: chroot /mock/fedora-development-x86_64/root/
> mock.util: elevate privs to run chroot
> mock.util: back to other privs
> mock.util: about to drop privs
> 
> There's no further output.

Yeah, if the subcommand doesnt flush its buffers every once in a while,
it wont make it to the log file. Mock reads a line at a time from the
child process and logs it, so this can be affected by children who dont
flush. Not sure if there is anything I can do about that from inside
mock.
--
Michael




More information about the Fedora-buildsys-list mailing list