Date: Thu, 17 Aug 2006 10:10:59 -0400
From: Dan Williams <dcbw(a)redhat.com>
Subject: Re: Mock hangs - why
To: Discussion of Fedora build system
<fedora-buildsys-list(a)redhat.com>
Message-ID:
<1155823859.2665.21.camel(a)localhost.localdomain>
Content-Type: text/plain
On Wed, 2006-08-16 at 17:21 -0700, Al Pacifico
wrote:
<snip>
> But 'mock perl-DBIx-Migration-0.05-1.fc5.src.rpm'
> seems to hang. Adding the --debug option, the
screen
> output (and root log) of 'mock
> perl-DBIx-Migration-0.05-1.fc5.src.rpm' ends with:
>
> Executing /usr/sbin/mock-helper chroot
> /var/lib/mock/fedora-5-i386-core/root
/sbin/runuser -
> root -c "cd /;/sbin/runuser -c 'rpmbuild --rebuild
> --target i386 --nodeps
>
/builddir/build/SRPMS/perl-DBIx-Migration-0.05-1.fc5.src.rpm'
> mockbuild"
>
> Then, the command prompt never comes back and when
I
> interrupt mock with ctrl-C (I've left my machine
> running mock with this SRPM for over a day, so I
don't
> think it's an impatience thing), keystrokes are
> retyped at the console after a long delay and many
> keystrokes, if at all.
Is some process taking up all your CPU? Is that
process part of the
build of your package?
Install and look at the output of the 'pstree'
command; that will show
you exactly what mock has launched and the
parent/child relationships
between the build processes and mock. You can also
try to 'strace' the
process that seems to be hanging and perhaps get
more information out of
it. Sometimes attaching to the hung build process
with gdb shows usable
backtrace info, sometimes not.
In the Extras buildsystem we've had problems with
reproducible build
hangs a few times, which were generally solved by
updating the kernel.
Dan
Dan-
I don't think that is the problem. At present, mock is
hung (as described above) and 'pstree build' yields:
bash───mock───sh───runuser───bash───runuser───rpmbuild───sh───perl
and 'uptime' yields:
16:30:20 up 7:54, 3 users, load average: 0.00,
0.00, 0.00
At present, I'm starting to work on strace... I need
to carefully review that thread on fedora-selinux list
to see how Paul Howarth limited strace to the command
in question or else I'll likely be overwhelmed by the
output of 'strace mock <culprit-SRPM>'.
<snip>
Date: Thu, 17 Aug 2006 10:36:58 -0500
From: Clark Williams <williams(a)redhat.com>
Subject: Re: Mock hangs - why
To: Discussion of Fedora build system
<fedora-buildsys-list(a)redhat.com>
Message-ID: <44E48D1A.2070202(a)redhat.com>
Content-Type: text/plain; charset=ISO-8859-1
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dan Williams wrote:
<snip>
> In the Extras buildsystem we've had problems with
reproducible build
> hangs a few times, which were generally solved by
updating the kernel.
>
What kernel are you running on the build system?
Clark-
Reproducible with kernel-smp.i686 2.6.17-1.2157_FC5
and kernel-smp.i686 2.6.17-1.2174_FC5. I updated to
2174 this morning after reading what Dan wrote.
I'm still wondering if the password prompt following
'su' after executing 'mock shell' gives the same
behavior on others' systems... and if not, which
kernel they are running (might help pinpoint the
problem).
-al
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com