Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jun 2010 15:39:21 -0400
From:      Nicholas Mills <nlmills@g.clemson.edu>
To:        freebsd-stable@freebsd.org
Subject:   Fwd: Sysinstall crashes in 8.1-BETA1
Message-ID:  <AANLkTinlPwDLi2fX30-fcHl_AJjZU-wiiSt8_2OrVKkY@mail.gmail.com>
In-Reply-To: <AANLkTilq15LnWSrhn8JI7qGdfvb1bWLbvNZI9J3D7CGE@mail.gmail.com>
References:  <AANLkTilq15LnWSrhn8JI7qGdfvb1bWLbvNZI9J3D7CGE@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Verified to exist in 8.1-RC1. Submitted as PR 147980.

---------- Forwarded message ----------
From: Nicholas Mills <nlmills@g.clemson.edu>
Date: Sat, Jun 5, 2010 at 9:01 PM
Subject: Sysinstall crashes in 8.1-BETA1
To: randi@freebsd.org


Hello,

I found and patched a bug in sysinstall(8). My system is running GENERIC
8.1-BETA1 on i386. Initial install went well, but after the system booted I
wanted to add some other distributions. However, every time I attempted to
connect to an ftp server sysinstall would crash and dump core. I traced the
problem down to some uninitialized variables in tcpip.c:tcpDeviceSelect.
Attached is my patch.

Thanks,

Nick Mills
nlmills@g.clemson.edu

[-- Attachment #2 --]
--- tcpip.c.old	2010-06-05 20:19:28.000000000 -0400
+++ tcpip.c	2010-06-05 20:19:11.000000000 -0400
@@ -732,6 +732,9 @@
 	return (NULL);
     }
 
+    devs = deviceFind(NULL, DEVICE_TYPE_NETWORK);
+    cnt = deviceCount(devs); 
+
     if ((!RunningAsInit) && (variable_check("NETWORK_CONFIGURED=NO") != TRUE)) {
 	if (!msgYesNo("Running multi-user, assume that the network is already configured?"))
 	    return devs[0];

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinlPwDLi2fX30-fcHl_AJjZU-wiiSt8_2OrVKkY>