Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 69320 - malformed /etc/hosts causes unhandled exception
malformed /etc/hosts causes unhandled exception
Product: Red Hat Linux
Classification: Retired
Component: redhat-config-network (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Trond Eivind Glomsrxd
: 71114 76211 86475 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2002-07-20 18:47 EDT by filos2
Modified: 2008-05-01 11:38 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-07-24 12:21:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description filos2 2002-07-20 18:47:40 EDT
From Bugzilla Helper:
User-Agent: Mozilla/4.79 [en] (X11; U; Linux 2.4.18-5 i686)

Description of problem:
Here's the 2 line /etc/hosts file containing an error:               localhost.localdomain localhost

Traceback (innermost last):
  File "/usr/sbin/internet-druid", line 1400, in ?
    window = mainDialog('druid')
  File "/usr/sbin/internet-druid", line 222, in __init__
  File "/usr/sbin/internet-druid", line 243, in load
  File "/usr/sbin/internet-druid", line 256, in loadProfiles
    profilelist = getProfileList()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCProfileList.py",
line 393, in getProfileList
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/NCProfileList.py",
line 44, in load
    hoconf = Conf.ConfEHosts()
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 429,
in __init__
    Conf.__init__(self, '/etc/hosts')
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 180,
in __init__
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 432,
in read
  File "/usr/sbin/../share/redhat-config-network/netconfpkg/Conf.py", line 445,
in initvars
    raise BadFile, 'Malformed /etc/hosts file'
Conf.BadFile: Malformed /etc/hosts file

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. run Network Configuration WIzard from Gnome "System Settings" window

Additional info:
Comment 1 Harald Hoyer 2002-07-22 09:05:18 EDT
fixed in rhpl-CVS file Conf.py, thx
Comment 2 Trond Eivind Glomsrxd 2002-07-24 12:21:00 EDT
It will also print out a message on the commandline about the file being invalid.
Comment 3 Trond Eivind Glomsrxd 2002-07-30 20:12:19 EDT
Fixed in 1.1.13-1 - the fix in RHPL is not sufficent.
Comment 4 Harald Hoyer 2002-10-18 11:10:57 EDT
*** Bug 71114 has been marked as a duplicate of this bug. ***
Comment 5 Harald Hoyer 2002-10-18 11:11:11 EDT
*** Bug 76211 has been marked as a duplicate of this bug. ***
Comment 6 Russell 2003-03-23 16:59:44 EST
*** Bug 86475 has been marked as a duplicate of this bug. ***

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