Bug 32500

Summary: rhn_register dies on old i386 systems during /proc cpuinfo call
Product: [Retired] Red Hat Linux Reporter: Josiah Royse <jroyse>
Component: rhn_registerAssignee: Preston Brown <pbrown>
Status: CLOSED ERRATA QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-03-22 16:19:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josiah Royse 2001-03-21 03:54:10 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.16-22 i586)


During the activation process of the rhn_register program, the program dies
aparently looking for cpu identifiers not listed in old hardware!  Acctual
/proc/cpuinfo:
processor	: 0
vendor_id	: unknown
cpu family	: 4
model		: 0
model name	: ff/00
stepping	: unknown
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: no
cpuid level	: -1
wp		: yes
flags		:
bogomips	: 39.83
Thats right, no CPU flags.  yeah she is a beauty.

Reproducible: Always
Steps to Reproduce:
1.start rhn_register
2.click through the registering process untill, it will crash on the info
gathering step
3.
	

Actual Results:  Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/share/rhn/register/gui.py", line 447, in onProfilePagePrepare
    hardware.read_cpuinfo()
  File "/usr/share/rhn/register/hardware.py", line 106, in read_cpuinfo
    hwdict['speed']         = int(round(float(mhz_speed)))
ValueError: empty string for float()
Traceback (innermost last):
  File "/usr/lib/python1.5/site-packages/libglade.py", line 28, in __call__
    ret = apply(self.func, a)
  File "/usr/share/rhn/register/gui.py", line 447, in onProfilePagePrepare
    hardware.read_cpuinfo()
  File "/usr/share/rhn/register/hardware.py", line 106, in read_cpuinfo
    hwdict['speed']         = int(round(float(mhz_speed)))
ValueError: empty string for float()

Expected Results:  no errors!

I guess this program is expecting a Floating Point Unit!   This beast is
some type of 486!

Comment 1 Preston Brown 2001-03-22 16:18:58 UTC
current CVS versions handle cases like this.  An errata, to be issues in the 
near future, will correct this.  The fix is already made in rawhide and our 
internal CVS tree.


Comment 2 Preston Brown 2001-04-12 20:54:17 UTC
fixed in errata due out today.