Bug 428870 - /sbin/loader segfault - /lib/libdhcp4client-4.0.so.0(next_iface+0x80)[0xfbda990]
/sbin/loader segfault - /lib/libdhcp4client-4.0.so.0(next_iface+0x80)[0xfbda990]
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: dhcp (Show other bugs)
rawhide
powerpc Linux
high Severity low
: ---
: ---
Assigned To: David Cantrell
Fedora Extras Quality Assurance
:
: 428878 429066 (view as bug list)
Depends On:
Blocks: F9Alpha
  Show dependency treegraph
 
Reported: 2008-01-15 14:54 EST by James Laska
Modified: 2013-09-02 02:23 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-01-15 19:30:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)
check return values (642 bytes, patch)
2008-01-15 15:02 EST, Chris Lumens
no flags Details | Diff

  None (edit)
Description James Laska 2008-01-15 14:54:13 EST
Description of problem:

Fedora rawhide-20080115/ppc segfault while enabling network

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

rawhide-20080115 (anaconda-11.4.0.21-1)

How reproducible:

100%

Steps to Reproduce:
1. Boot installer with ksdevice=link ip=dhcp
method=http://../rawhide-20080115/ppc/os
2. Select lang=en, keymap=us
3. Select eth0 as network device
  
Actual results:

Welcome to Fedora for ppc

           +-------------------------------------------------------+            
           |                                                       |            
           | Sending request for IP information for eth0...        |            
           |                                                       |            
           +-------------------------------------------------------+            
                                                                                

loader received SIGSEGV!  Backtrace:                                           
/sbin/loader(loaderSegvHandler+0xa0)[0x10008d80]
[0x100364]
[0xf7ff8000]
/lib/libdhcp4client-4.0.so.0(next_iface+0x80)[0xfbda990]
/lib/libdhcp4client-4.0.so.0(discover_interfaces+0x490)[0xfbdbfd0]
/lib/libdhcp4client-4.0.so.0(dhcpv4_client+0x408)[0xfbcabe8]
/lib/libdhcp-1.99.so.1(do_dhcpv4+0x3c)[0xfce8edc]
/lib/libdhcp-1.99.so.1[0xfceaf48]
/lib/libdhcp-1.99.so.1(dhcp_nic+0x5c)[0xfceb47c]
/lib/libdhcp-1.99.so.1(pumpDhcpClassRun+0x158)[0xfcf3d98]
/sbin/loader(doDhcp+0xfc)[0x1001c80c]
/sbin/loader(configureTCPIP+0x864)[0x1001e984]
/sbin/loader(readNetConfig+0x4c8)[0x1001f108]
/sbin/loader(main+0x1788)[0x1000ae88]
/lib/libc.so.6[0xf7b88dc]
/lib/libc.so.6[0xf7b8aac]
install exited abnormally [1/1] 
sending termination signals...done
sending kill signals...done
disabling swap...
unmounting filesystems...
        /proc done
        /dev/pts done
        /sys done
you may safely reboot your system

Expected results:

No segfault

Additional info:

Booting with *no* kickstart and *no* cmdline arguments works without a problem.
 I can then do a DHCP URL (http) installation.
Comment 1 Chris Lumens 2008-01-15 14:59:45 EST
On tty3:

ERROR    : Error opening '/proc/net/if_inet6' to list IPv6 interfaces; No such
file or directory
CRITICAL : Can't get list of interfaces.

I don't know why it can't open that file.  The segfault seems to be a direct
result of not checking the file pointer being passed to fgets.  Patch to follow.
Comment 2 Chris Lumens 2008-01-15 15:02:08 EST
Created attachment 291735 [details]
check return values
Comment 3 Chris Lumens 2008-01-15 15:05:06 EST
Whoops, in that second case I of course mean ifaces->fp6.
Comment 4 Will Woods 2008-01-15 15:47:55 EST
*** Bug 428878 has been marked as a duplicate of this bug. ***
Comment 5 Will Woods 2008-01-16 16:11:46 EST
Should be fixed in the next anaconda build (which would be 10.4.0.22).
Comment 6 Chris Lumens 2008-01-16 21:30:19 EST
*** Bug 429066 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.