During testing of bug 5280, I got: ... Signing cendio-build-pcsc-lite-i386 (1.5.5-1) Building SRPM for cendio-build-squashfs-tools-i386 (4.2-1) Building cendio-build-squashfs-tools-i386 (4.2-1) Cleaning up installed packages Removing cendio-build-recordproto-i386 (1.14.2-2) Fatal error: [Errno 12] Cannot allocate memory It turns out that rebuild.py leaks memory: It only takes minutes before it's using 1 GiB, and then the consumption increases for every package it builds.
As per http://stackoverflow.com/questions/4178116/python-memory-usage-statistics-per-object-types-or-source-code-line, I tried using guppy, but no success. I get: Partition of a set of 33905 objects. Total size = 5449464 bytes. Index Count % Size % Cumulative % Kind (class / dict of class) 0 1506 4 1788720 33 1788720 33 dict (no owner) 1 16587 49 1253344 23 3042064 56 str 2 6194 18 506960 9 3549024 65 tuple 3 84 0 359904 7 3908928 72 dict of module 4 213 1 230136 4 4139064 76 dict of type ...even though the actual process is one GiB. My guess is that this is a memory leak in rpmlib.
This has not been a problem in practice, not even when rebuilding the entire environment. So either the bug is gone, or it is too small to matter.