Red Hat Bugzilla – Bug 32221
rhn_register fails with large swap space
Last modified: 2015-01-07 18:44:35 EST
From a customer service request:
System running enterprise kernel with two 1.9 gig swap partitions,
rhn_register quits with the following:
Traceback (innermost last):
File "/usr/lib/python1.5/site-packages/libglade.py", line28, in __call__
ret = apply(self.func, a)
File "/usr/share/rhn/register/gui.py", line 448, in \
File "/usr/share/rhn/register/hardware.py", line 172, in read_memory
megs = string.atoi(memlist)/(1024*1024)
ValueError: atoi() literal too large: 4038557696
The atoi literal there is the total ram+swap in bytes. Seems this much ram
pushes it outside atoi's legal range.
Turning off one of the swap partitions solves the problem, but given that
the swap limit on the enterprise kernel is 8x2 gigs (if I remember
correctly!), we might want to look at this.
replaced the atoi with a atol, and cast approriately. Should work
up to about 300TB of swap now. Fixed in CVS.
fixed in errata, due out today.