Bug 51152 - memory alloc (1768337276 bytes) returned NULL
memory alloc (1768337276 bytes) returned NULL
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
7.1
i386 Linux
high Severity medium
: ---
: ---
Assigned To: Jeff Johnson
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-08-07 18:10 EDT by Juan Carlos Orrego
Modified: 2007-03-26 23:47 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2001-08-07 18:29:55 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Juan Carlos Orrego 2001-08-07 18:10:18 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.5 i686; Nav)

Description of problem:
i ve been receiving  memory allocation problems performing some rpm
operations. example: rpm -qa, kpackage, etc..

How reproducible:
Always

Steps to Reproduce:
1. rpm -qa
2.
3.
	

Actual Results:  memory alloc (1768337276 bytes) returned NULL

Expected Results:  list of packages

Additional info:

here is my rpm database tar ball:
http://208.221.140.114/rpmdb.tar.gz

PC Specs:
AMD Athlon 1Ghz
256 RAM
20 GB DIsk
Redhat 7.1
Comment 1 Jeff Johnson 2001-08-07 20:07:17 EDT
Header instance #1204 is damaged.

Install rpm-4.0.3-0.57 from ftp://ftp.rpm.org/pub/rpm/test-4.0.3
and do a "rpm --rebuilddb -vv" to fix. You should see
something like

D:   +++        101 xosview-1.7.3-4
D: adding "xosview" to Name index.
D: adding 4 entries to Basenames index.
D: adding "Applications/System" to Group index.
D: adding 10 entries to Requirename index.
D: adding 1 entries to Providename index.
D: adding 4 entries to Dirnames index.
D: adding 10 entries to Requireversion index.
D: adding 1 entries to Provideversion index.
D: adding 1 entries to Installtid index.
error: rpmdb: damaged header instance #1204 retrieved, skipping.
D:   +++        102 dosemu-0.99.13-1
D: adding "dosemu" to Name index.
D: adding 39 entries to Basenames index.
D: adding "Applications/Emulators" to Group index.
D: adding 10 entries to Requirename index.
D: adding 1 entries to Providename index.
D: adding 8 entries to Dirnames index.
D: adding 10 entries to Requireversion index.
D: adding 1 entries to Provideversion index.
Comment 2 Juan Carlos Orrego 2001-08-07 20:16:19 EDT
I allready tried that. but i just simply cant get rpm installed.
Comment 3 Jeff Johnson 2001-08-08 08:14:55 EDT
You can always install rpm by doing (assuming all 5 rpm packages in /var/tmp)
	cd /var/tmp
	mkdir xxx
	cd xxx
	for i in ../{rpm,popt}-*.rpm ; do
	    rpm2cpio $i | cpio -dim
	done
	find . -type d -exec chmod 755 {} \;
	tar cf - . | (cd /; tar xvf -)
Yes, you need to be root. And, after doing the --rebuilddb,
you chould do
	cd /var/tmp
	rpm -Uvh {rpm,popt}-*

Note You need to log in before you can comment on or make changes to this bug.