From nobody@FreeBSD.ORG Fri Nov 12 12:30:22 1999
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id 2291E14D47; Fri, 12 Nov 1999 12:30:22 -0800 (PST)
Message-Id: <19991112203022.2291E14D47@hub.freebsd.org>
Date: Fri, 12 Nov 1999 12:30:22 -0800 (PST)
From: mjy@pobox.com
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@freebsd.org
Subject: dhclient crashes (communicating with bootpd)
X-Send-Pr-Version: www-1.0

>Number:         14851
>Category:       misc
>Synopsis:       dhclient crashes (communicating with bootpd)
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 12 12:40:01 PST 1999
>Closed-Date:    Fri Nov 12 12:42:02 PST 1999
>Last-Modified:  Fri Nov 12 12:42:16 PST 1999
>Originator:     Marinos J. Yannikos
>Release:        3.3-RELEASE
>Organization:
>Environment:
FreeBSD devil 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC  i386

>Description:
When communicating with a BOOTP server, dhclient fails to configure
the interface (the BOOTP configuration works with Win98 and Linux)
and crashes.

Core dump shows:
(gdb) bt
#0  0x80700ca in memcpy ()
#1  0xbfbfbd0c in ?? ()
#2  0x804aa96 in dhcpack (packet=0xbfbfbd60)
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/client/dhclient.c:529
#3  0x804b191 in dhcp (packet=0xbfbfbd60)
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/client/dhclient.c:722
#4  0x80562fd in do_packet (interface=0x8095000, packet=0xbfbfc5d8, len=300,
    from_port=17152, from={len = 4,
      iabuf = "\n\000\000\001V\001\000\000\000P\t\b\024ֿ"}, hfrom=0xbfbfd5f0)
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/common/options.c:638
#5  0x8051e39 in got_one (l=0x8098070)
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/common/dispatch.c:713
#6  0x8051d2e in dispatch ()
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/common/dispatch.c:677
#7  0x804a4c7 in main (argc=2, argv=0xbfbfd820, envp=0xbfbfd82c)
    at /usr/src/sbin/dhclient/../../contrib/isc-dhcp/client/dhclient.c:281
#8  0x80480e9 in _start ()

>How-To-Repeat:
Should be deterministic, using BOOTP. Here's my bootptab:

.allhost:hd=/tmp:bf=null:\
    :ds=10.0.0.1:\
    :sm=255.255.255.0:\
    :gw=10.0.0.1:\
    :ts=128.130.2.3:\
    :lp=10.0.0.1:\
    :to=0:

devil:ht=1:ha=00409501B465:ip=10.0.0.4:tc=.allhost:

>Fix:
Contributed code, so ask the ISC to fix it. Seems like the lease time isn't
being used for BOOTP, but the dhclient crashes trying to use it.

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: billf 
State-Changed-When: Fri Nov 12 12:42:02 PST 1999 
State-Changed-Why:  
Duplicate of 14850 
>Unformatted:
