Subject: kern/6196: dhclient causes kernel fault in current
To: None <gnats-bugs@gnats.netbsd.org>
From: None <xela@mit.edu>
List: netbsd-bugs
Date: 09/24/1998 15:15:04
>Number:         6196
>Category:       kern
>Synopsis:       dhclient with no args in netstart fails; calling it a second time faults
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 24 12:20:01 1998
>Last-Modified:
>Originator:     Alex
>Organization:
MIT
	
>Release:        1998.09.06
>Environment:
	
System: NetBSD hopper 1.3H NetBSD 1.3H (MULTIA-ROUTER) #0: Sun Sep 6 00:01:36 EDT 1998 mycroft@snorklewacker.mit.edu:/u1/var/tmp/MULTIA-ROUTER i386


>Description:
Trying to run dhclient with no args and an empty dhclient.conf from 
/etc/netstart.local. At boot, everything seems fine until:

starting network
configuring network interfaces:.
 dhclientifconfig: SIOCAIFADDR: File exists
Can't attach interface eon0 to bpf device /dev/bpf0: Device not configured
exiting.

It throws me into singleuser mode and offers me /bin/sh.  

/dev/bpf0 exists; I ran MADEDEV all and tried again anyway, with the same
results
 
I then tried typing dhclient at the commend line:
# dhclient
uvm_fault(0xf5672420, deadb000, 0, 1) -> 1
kernel: page fault trap, code=0
Stopped in ifconfig at _free+0xae:  cmpl   $0xdeadbeef,0(%ebx)
db> trace
_free(deadbeef,5,f050f900,f56f1da8,f0153dec) at _free+0xae
_rtfree(f050f900) at _rtfree+0x90
_rtinit(f050f180,2,0,f050f180,f56f1d1df8), at _rtinint+0x104
_in_ifscrub(f0280c58,f050f180) at _in_ifscrub+0x26
_in_control(f0515000,80206919,f56f1ec0,f0280c58,f567071c) at _in_control+0x581
_udp_usrreq(f0515000,b,80206919,f56f1ec0,f0280c58) at _udp_usrreq+0x28
_ifioctl(f0515000,80206919,f56f1ec0,f567071c,0) at _ifioctl+0x32b
_soo_ioctl(f567e0d8,80206919,f56f1ec0,f567071c,f025c460) at _soo_ioctl+0xe5
_sys_ioctl(f567071c,f56f1f88,f56f1f80,0,0) at _sys_ioctl+0x2cb
_syscall() at _syscall+0x25c
--- syscall (number 54) ---
0x1f653:
db> 
>How-To-Repeat:
see Description
>Fix:

>Audit-Trail:
>Unformatted: