From nobody@FreeBSD.org  Sun Aug  7 22:37:17 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9A51616A421
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Aug 2005 22:37:17 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D6CD043E38
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Aug 2005 22:09:56 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j77M9uV8087244
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 7 Aug 2005 22:09:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j77M9u0h087243;
	Sun, 7 Aug 2005 22:09:56 GMT
	(envelope-from nobody)
Message-Id: <200508072209.j77M9u0h087243@www.freebsd.org>
Date: Sun, 7 Aug 2005 22:09:56 GMT
From: Doug Poland <doug@polands.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dhclient consumes all CPU
X-Send-Pr-Version: www-2.3

>Number:         84657
>Category:       bin
>Synopsis:       dhclient consumes all CPU
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 07 22:40:18 GMT 2005
>Closed-Date:    Wed Aug 10 23:22:51 GMT 2005
>Last-Modified:  Wed Aug 10 23:22:51 GMT 2005
>Originator:     Doug Poland
>Release:        6.0-BETA2
>Organization:
>Environment:
FreeBSD eden.polands.org 6.0-BETA2 FreeBSD 6.0-BETA2 #0: Fri Aug  5 22:24:35 CDT 2005     dpoland@eden.polands.org:/usr/obj/usr/src/sys/EDEN  i386
>Description:
dhclient consumes almost all CPU.  CVSup as of 05 Aug 2005

ps -waux | grep dhclient
 1416  ??  S      0:00.00 dhclient: ath0 [priv] (dhclient)
 1442  ??  Rs   1021:33.81 dhclient: ath0 (dhclient)

top
  PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME   WCPU COMMAND
 1442 _dhcp       1 139    0  1400K  1080K RUN     17.1H  2.10% dhclient

>How-To-Repeat:
killall dhclient
ifconfig ath0 up
>Fix:
      
>Release-Note:
>Audit-Trail:

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Doug Poland <doug@polands.org>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: misc/84657: dhclient consumes all CPU
Date: Mon, 8 Aug 2005 11:43:28 -0700

 This is the first report of this bug I've seen in the last week or two
 so I'm quite suprised to hear this.  Does this happen immediatly after
 bringing the interface up or does it take a while?  What version in
 src/sbin/dhclient/bpf.h do you have?  Can you compile dhclient with
 debugging flags and see if you can find out where it's spinning?
 
 -- Brooks
State-Changed-From-To: open->feedback 
State-Changed-By: brooks 
State-Changed-When: Mon Aug 8 19:02:01 GMT 2005 
State-Changed-Why:  
Feedback requested. 


Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Mon Aug 8 19:02:01 GMT 2005 
Responsible-Changed-Why:  
I'm dealing with dhclient issues. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84657 

From: doug@polands.org
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/84657: dhclient consumes all CPU
Date: Mon, 8 Aug 2005 16:19:29 -0500

 No, it doesn't happen immediately after the interface is brought up.  It
 appears to happen once a "significant" amount of network traffic goes over the
 NIC.  For example, right now I'm remote to the laptop, which isn't doing anything
 after a reboot.  Dhclient is OK until I ssh in, then it goes bonkers.
 
 I don't have src/sbin/dhclient/bpf.h on my system.  I do have:
 
 eden# locate bpf.h | grep /bpf.h$ | xargs ls -lT
 -r--r--r--  1 root  wheel  19420 Jul 19 20:56:47 2005 /usr/include/net/bpf.h
 -rw-r--r--  1 root  wheel     15 Aug  5 22:06:14 2005 /usr/obj/usr/src/sys/EDEN/modules/usr/src/sys/modules/cp/bpf.h
 -rw-r--r--  1 root  wheel     15 Aug  5 22:06:24 2005 /usr/obj/usr/src/sys/EDEN/modules/usr/src/sys/modules/ctau/bpf.h
 -rw-r--r--  1 root  wheel     15 Aug  5 22:06:27 2005 /usr/obj/usr/src/sys/EDEN/modules/usr/src/sys/modules/cx/bpf.h
 lrwxr-xr-x  1 root  wheel     22 Aug  5 19:07:52 2005 /usr/obj/usr/src/tmp/usr/include/net/bpf.h -> ../../../sys/net/bpf.h
 -rw-r--r--  1 root  wheel  19420 Jul 16 10:27:13 2005 /usr/src/sys/net/bpf.h
 
 /usr/src/sys/net/bpf.h is version 1.39.
 
 I could compile dhclient with debugging flags and see if you can find out
 where it's spinning but would need some guidance through the process.
 
 -- 
 Regards,
 Doug

From: Doug Poland <doug@polands.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: bin/84657: dhclient consumes all CPU
Date: Wed, 10 Aug 2005 18:00:49 -0500

 I've got:
 
 /usr/src/sbin/dhclient/bpf.c:
 $FreeBSD: src/sbin/dhclient/bpf.c,v1.2.2.1 2005/07/29 23:36:28 brooks
 
 Also, I recompiled and installed per your instructions and cannot get 
 dhclient to go nuts again.  Is there something else I should try or do 
 you consider the issue closed?
 
State-Changed-From-To: feedback->closed 
State-Changed-By: brooks 
State-Changed-When: Wed Aug 10 23:22:09 GMT 2005 
State-Changed-Why:  
Submitter can no longer reproduce the bug.  We'll reopen this if it 
comes back. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=84657 
>Unformatted:
