From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1
Description of problem:
When trying to use rpm -e to remove old kernel rpms, I get an error message saying: memory alloc (4 bytes) returned NULL. Watching with top, I can see that rpm is using more and more memory until it fills all available space then dies with the alloc error message. Before rpm runs 48 or so of 64MB are free. I have 4 old kernel versions and I get this problem when attempting to remove any of them. I have tried re-building the rpm db with "rpm --rebuilddb -vv" but it does not help. Also, I tried "rm -f /var/lib/rpm/__db*" before rebuilding the db but it doesn't matter because there are no locks in that directory anyway. I have seen a couple of instances online where users describe this problem, primarily with old versions of red hat, but have not come accross a solution anywhere.
Other functions of rpm, such as rpm -qa, seem to work fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run rpm -e kernel-2.6.10-1.8_FC2 (also happens with any of these other kernel rpms which are currently on the machine: kernel-2.6.10-1.9_FC2, kernel-2.6.10-1.770_FC2, kernel-2.6.10-1.12_FC2, kernel-2.6.10-1.14_FC2
Actual Results: fills up all memory (observered with top)
fails with this error: memory alloc (4 bytes) returned NULL.
Expected Results: Should have successfully removed requested rpm.
Upgrading to the version of rpm in FC3 will solve this problem.
Fedora Core 2 is now maintained by the Fedora Legacy project for
security updates only. If this problem is a security issue, please
reopen and reassign to the Fedora Legacy product. If it is not a
security issue and hasn't been resolved in the current FC3 updates or
in the FC4 test release, reopen and change the version to match.
This is fixed in FC3 and later.