From owner-freebsd-bugs@FreeBSD.ORG Wed Jul 21 01:00:44 2004 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5385E16A4CF for ; Wed, 21 Jul 2004 01:00:44 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3803743D49 for ; Wed, 21 Jul 2004 01:00:44 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.11/8.12.11) with ESMTP id i6L10gPl043132 for ; Wed, 21 Jul 2004 01:00:42 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i6L10gG9043129; Wed, 21 Jul 2004 01:00:42 GMT (envelope-from gnats) Resent-Date: Wed, 21 Jul 2004 01:00:42 GMT Resent-Message-Id: <200407210100.i6L10gG9043129@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andrew Gallatin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B8B616A4CE for ; Wed, 21 Jul 2004 01:00:12 +0000 (GMT) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EC2243D3F for ; Wed, 21 Jul 2004 01:00:11 +0000 (GMT) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.12.10/8.12.10) with ESMTP id i6L10AR0001276 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 20 Jul 2004 21:00:10 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id i6L105Tm045340; Tue, 20 Jul 2004 21:00:05 -0400 (EDT) (envelope-from gallatin) Message-Id: <200407210100.i6L105Tm045340@grasshopper.cs.duke.edu> Date: Tue, 20 Jul 2004 21:00:05 -0400 (EDT) From: Andrew Gallatin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/69361: dhclient sends bogus data to dhcpd and fails to get a lease X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Andrew Gallatin List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jul 2004 01:00:44 -0000 >Number: 69361 >Category: bin >Synopsis: dhclient sends bogus data to dhcpd and fails to get a lease >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 21 01:00:42 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Andrew Gallatin >Release: FreeBSD 5.2-CURRENT amd64 and powerpc at least >Organization: >Environment: FreeBSD thor 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sat Jul 17 07:33:17 EDT 2004 root@:/usr/src/sys/amd64/compile/THORL amd64 FreeBSD g4 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun Jul 11 17:05:07 GMT 2004 gallatin@g4:/home/gallatin/current/sys/powerpc/compile/G4 powerpc >Description: dhclient occasionally fails to obtain a lease. >How-To-Repeat: Watch for random hangs at boot. It seems to be totally random, but perhaps it has something to do with the current time. Both machines (ppc and amd64) failed to obtain a lease within an hour of each other. Here is the lease for the amd64: less /var/db/dhclient.leases lease { interface "sk0"; fixed-address 172.31.193.11; option subnet-mask 255.255.255.0; option routers 172.31.193.254; option dhcp-lease-time 86400; option dhcp-message-type 5; option domain-name-servers 152.3.140.1,172.31.0.1; option dhcp-server-identifier 172.31.193.254; option broadcast-address 172.31.193.255; renew 2 2004/7/20 11:22:49; rebind 2 2004/7/20 20:27:21; expire 2 2004/7/20 23:27:21; } And here is the lease for the powerpc: lease { interface "gem0"; fixed-address 172.31.193.6; option subnet-mask 255.255.255.0; option routers 172.31.193.254; option dhcp-lease-time 86400; option dhcp-message-type 5; option domain-name-servers 172.31.0.1; option dhcp-server-identifier 172.31.193.254; option broadcast-address 172.31.193.255; renew 2 2004/7/20 07:36:02; rebind 2 2004/7/20 16:46:43; expire 2 2004/7/20 19:46:43; } I powered off my snapgear VPN/router and ran isc-dhcp3-3.0.1.r12 on an x86 when the problem happened for the second time (ie, on the powerpc). The server gave these messages when run in forground mode: stening on BPF/fxp0/00:07:e9:a8:36:f2/172.31.193.0/24 Sending on BPF/fxp0/00:07:e9:a8:36:f2/172.31.193.0/24 Sending on Socket/fallback/fallback-net DHCPREQUEST for 0.0.0.0 from 00:03:93:56:99:42 via fxp0: unknown lease 0.0.0.0. DHCPREQUEST for 0.0.0.0 from 00:03:93:56:99:42 via fxp0: unknown lease 0.0.0.0. >Fix: Unknown. Removing /var/db/dhclient.leases works around the problem. >Release-Note: >Audit-Trail: >Unformatted: