netcfg segfauts when preseeding 12.04 LTS networkless
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcfg (Debian) |
Fix Released
|
Unknown
|
|||
netcfg (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Precise |
Fix Released
|
High
|
Chris J Arges | ||
ubiquity (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
SRU Justification:
[Impact]
netcfg will segfault if users use this feature in the preseed file.
[Test Case]
1) Add the following lines to your preseed file of your Ubuntu installation target:
# Disable network configuration entirely. This is useful for cdrom
# installations on non-networked devices where the network questions,
# warning and long timeouts are a nuisance.
d-i netcfg/enable boolean false
d-i netcfg/get_hostname string BLABLABLA
d-i netcfg/get_hostname seen true
2) Start the installation that refers to this seed file.
3) Wait until netcfg will load.
=> When loading the netcfg module, the installer will report an error (red message box). In the log console you will find a segfault message in the netcfg execution as mentioned above.
[Regression Potential]
This change removes an extra hostname variable definition that is defined in netcfg.c. This extra definition actually assigns NULL to the pointer, causing a segfault when that memory location is accessed. The hostname is defined externally to that file and is the correct variable to reference.
Original Description
-------
I have built a USB-Stick to install Ubuntu Server Precise Alpha 1 64 Bit based on the precise-
Installation works but the netcfg component segfaults!
The installer screen shows an error. The 4th console shows:
INFO: Menu item 'netcfg' selected
INFO: Starting netcfg v.1.68ubuntu7 (built 2011-08-0004)
WARNING **: Configuring 'netcfg' failed with error code 139
WARNING **: Menu item 'netcfg' failed.
netcfg[14152]: segfault at 0 ip 00007f8cc8e82572 sp 00007fffd1413bb8 error 6 in libc-2.
The installation continues when choosing the next item on the menu.
These are the options used for preseeding netcfg:
d-i netcfg/enable boolean false
d-i netcfg/dhcp_options select Do not configure the network at this time
d-i netcfg/dhcp_failed note
d-i netcfg/
# netcfg will choose an interface that has link if possible. This makes it
#d-i netcfg/
#d-i netcfg/disable_dhcp boolean true
#d-i netcfg/
#d-i netcfg/
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.1.1
#d-i netcfg/
d-i netcfg/get_hostname string lb-new
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/wireless_wep string
Any ideas?
affects: | ubuntu → netcfg (Ubuntu) |
Changed in netcfg (Ubuntu Precise): | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in netcfg (Ubuntu): | |
importance: | Undecided → High |
Changed in netcfg (Debian): | |
status: | Unknown → Fix Released |
description: | updated |
summary: |
- netcfg segfauts when preseeding Precise Alpha 1 + netcfg segfauts when preseeding 12.04 LTS |
Changed in netcfg (Ubuntu Precise): | |
assignee: | nobody → Chris J Arges (arges) |
summary: |
- netcfg segfauts when preseeding 12.04 LTS + netcfg segfauts when preseeding 12.04 LTS networkless |
Changed in netcfg (Ubuntu Precise): | |
status: | Triaged → In Progress |
Removing all netcfg preseeding options circumvents the segfault.