[Rpm-maint] rpmbuild creash.

Giulio Eulisse Giulio.Eulisse at cern.ch
Sat Oct 13 23:56:19 UTC 2007

I've a problem with rpm ( but the same occurs with all the
other versions I've tried) and in particular rpmbuild. It seems that
there is something in RPM which increases its memory usage incredibly
to the point of getting it killed.
This seems to have something to do with lots of file with the same
name being in different directories (which is what we have in our

The following spec fragment:

=== CUT HERE ===
cat << \EOF > %i{instroot}/createDirs.py
from os import makedirs
from os.path import join
for x in range (1,100):
   for y in range (1,30):
       for z in range (1,30):
           filename="src/%%(x)s/%%(y)s/%%(z)s/CVS" % locals ()
           makedirs (filename)
           for u in range (1,10):
               open ("%%(filename)s/%%(u)s" % locals (), "w").close ()
cd %{instroot}
python ./createDirs.py
=== CUT HERE ===

can be used to reproduce it. The package builds correctly but then it
exits with no explanation in the "Processing files" part. Here is the
last lines of my buildlog.

=== CUT HERE ===
+ cd /home/cms033/RpmDebug/PKGTOOLS/slc4_amd64_gcc346/external/rpmbug/1.0.0-test2
+ python ./createDirs.py
+ mkdir -p /home/cms033/RpmDebug/PKGTOOLS/slc4_amd64_gcc346/external/rpmbug/1.0.0-test2/etc/profile.d
+ cat
+ cat
+ /usr/lib/rpm/redhat/brp-compress
+ /usr/lib/rpm/redhat/brp-strip /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump
Processing files: external+rpmbug+1.0.0-test2-1-1
=== CUT HERE ===


More information about the Rpm-maint mailing list