Bug 697432

Summary: SIGSEGV for network --device=<MAC> which is not found
Product: Red Hat Enterprise Linux 6 Reporter: Radek Vykydal <rvykydal>
Component: anacondaAssignee: Radek Vykydal <rvykydal>
Status: CLOSED ERRATA QA Contact: Release Test Team <release-test-team>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0CC: atodorov, borgan
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: anaconda-13.21.114-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 12:40:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
backtrace on i686 none

Description Radek Vykydal 2011-04-18 09:07:25 UTC
Created attachment 492829 [details]
backtrace on i686

Description of problem:

Kickstart network --device command causes sigsegv crash if it is specified with MAC address (contains ':' character) which is not found (e.g. has a typo).

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

RHEL 6.1 0414 nightly
anaconda 13.21-112

How reproducible:

always

Steps to Reproduce:
1. use network --device with valid but not present MAC address
  
Actual results:

crash, backtrace, see the attachment

Additional info:

[rvykydal@dhcp-lab-144 ~/work/tmp]$ eu-addr2line -e usr/lib/debug/usr/lib/anaconda-runtime/loader/loader.debug 
0x805155b
/usr/src/debug/anaconda-13.21.112/loader/loader.c:2246
0x8059e7a
/usr/src/debug/anaconda-13.21.112/loader/kickstart.c:564
0x8068cb2
/usr/src/debug/anaconda-13.21.112/loader/net.c:1749
0x80602c7
/usr/include/bits/stdio2.h:158
0x8063b20
/usr/src/debug/anaconda-13.21.112/loader/net.c:1856

Comment 1 Radek Vykydal 2011-04-18 09:16:48 UTC
Proposed patch:
http://www.redhat.com/archives/anaconda-devel-list/2011-April/msg00171.html

Comment 3 RHEL Program Management 2011-04-18 18:19:31 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux maintenance release. Product Management has 
requested further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed 
products. This request is not yet committed for inclusion in an Update release.

Comment 6 Radek Vykydal 2011-04-19 08:04:01 UTC
This should be fixed in anaconda-13.21.114-1.

Comment 8 Alexander Todorov 2011-04-20 12:49:07 UTC
Tested with anaconda-13.21.114-1/0420.n.0 tree. 

There was no crash and after stage2 started anaconda reported a kickstart error:
The provided network interface 00:1C:C4:10:F7:D6 does not exist.

Moving to VERIFIED.

Comment 9 errata-xmlrpc 2011-05-19 12:40:33 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0530.html