Description of problem: If I try to run system-config-network on a Fedora 8 system with a massive /etc/hosts file (about 3000 lines) containing lots of entries for hosts on different subnets, it crashes on startup. If I temporarily rename /etc/hosts, it runs with no problem. Version-Release number of selected component (if applicable): system-config-network-tui-1.4.7-1.fc8 How reproducible: every time Steps to Reproduce: 1. get on a fedora 8 system with the massive hosts file 2. run system-config-network 3. boom Actual results: boom Expected results: gui network app Additional info: I'll attach the crash info created by the boom. It is also worth noting that several other machines with various versions of rhel and fedora all work fine with the same hosts file. It appears as though it is only fedora 8 that blows up.
Created attachment 295549 [details] the dump from the system-config-network exception
looks like the hostname is missing on one of your lines. error: Error while parsing /etc/hosts: Wrong Hostname on line 61
This problem should be fixed in rawhide.
Care to betatest? http://people.fedoraproject.org/~harald/downloads/system-config-network/1.5.90/
I ran system-config-network to verify that it still blows up (was 1.4.7), then I installed system-config-network-1.5.90-1.fc8.noarch.rpm and system-config-network-tui-1.5.90-1.fc8.noarch.rpm and ran it again, and it still blows up :-(. The saved crash file is much smaller this time, so I'm just including it inline here: Component: system-config-network Version: 1.5.90 Summary: TB8cec5205 NC_functions.py:240:testHostname:TypeError: object of type 'NoneType' has no len() Traceback (most recent call last): File "/usr/sbin/system-config-network-gui", line 166, in runit window = mainDialog() # pylint: disable-msg=W0612 File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 296, in __init__ self.load() File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 322, in load self.loadProfiles() File "/usr/share/system-config-network/netconfpkg/gui/maindialog.py", line 338, in loadProfiles profilelist = getProfileList() File "/usr/share/system-config-network/netconfpkg/NCProfileList.py", line 657, in getProfileList __PFList.load() File "/usr/share/system-config-network/netconfpkg/NCProfileList.py", line 90, in load self.loadprof(pr, profdir) File "/usr/share/system-config-network/netconfpkg/NCProfileList.py", line 140, in loadprof prof.HostsList.load(filename = profdir + '/hosts') File "/usr/share/system-config-network/netconfpkg/NCHostsList.py", line 97, in load entry.test() File "/usr/share/system-config-network/netconfpkg/NCHost.py", line 47, in test if not self.testHostname(): File "/usr/share/system-config-network/netconfpkg/NCHost.py", line 42, in testHostname return testHostname(self.Hostname) File "/usr/share/system-config-network/netconfpkg/NC_functions.py", line 240, in testHostname if (len(hostname) - hostname.count('.')) < 256: TypeError: object of type 'NoneType' has no len() Local variables in innermost frame: hostname: None I tend to suspect the code is going all anal retentive and barfing on hostnames that contain underscore characters (which are in theory illegal, but have always worked anyway :-). It would probably be better to simply eliminate the hostname tab if the hosts file is illegal rather than crashing the whole app.
Next version, hopefully better... http://people.fedoraproject.org/~harald/downloads/system-config-network/1.5.91/
Better, no crash this time, but I do get a popup of wrong hostname messages way too big to fit on my screen :-). Perhaps a scrolled text area for the wrong name messages would be in order. I'll attach the (partial) screenshot of the popup.
Created attachment 299453 [details] screenshot of error popup I do't know if there were any buttons on the bottom or not :-).
rofl :-) ok... seems like your /etc/hosts is a little bit longer than the average :-)
Created attachment 301454 [details] system-config-network problem file
system-config-network-1.5.5-1.fc8 has been submitted as an update for Fedora 8
system-config-network-1.5.5-1.fc8 has been pushed to the Fedora 8 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update system-config-network'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F8/FEDORA-2008-2995
system-config-network-1.5.5-1.fc8 has been pushed to the Fedora 8 stable repository. If problems still persist, please make note of it in this bug report.