From owner-freebsd-bugs Sun Aug 25 10:30: 8 2002 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 1250837B400 for ; Sun, 25 Aug 2002 10:30:03 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 545D943E75 for ; Sun, 25 Aug 2002 10:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g7PHU2JU031450 for ; Sun, 25 Aug 2002 10:30:02 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g7PHU2hG031449; Sun, 25 Aug 2002 10:30:02 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17E5937B400 for ; Sun, 25 Aug 2002 10:21:34 -0700 (PDT) Received: from nebula.wanadoo.fr (ca-sqy-3-183.abo.wanadoo.fr [80.8.56.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F1C343E3B for ; Sun, 25 Aug 2002 10:21:32 -0700 (PDT) (envelope-from dak@wanadoo.fr) Received: from nebula.wanadoo.fr (localhost [127.0.0.1]) by nebula.wanadoo.fr (8.12.5/8.12.5) with ESMTP id g7PHI9r6003664 for ; Sun, 25 Aug 2002 19:18:09 +0200 (CEST) (envelope-from dak@nebula.wanadoo.fr) Received: (from dak@localhost) by nebula.wanadoo.fr (8.12.5/8.12.5/Submit) id g7PHI8S2003663; Sun, 25 Aug 2002 19:18:08 +0200 (CEST) Message-Id: <200208251718.g7PHI8S2003663@nebula.wanadoo.fr> Date: Sun, 25 Aug 2002 19:18:08 +0200 (CEST) From: Aurelien Nephtali Reply-To: Aurelien Nephtali To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/42005: dhclient running + non-existent interface = CPU 100% Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 42005 >Category: bin >Synopsis: dhclient running + non-existent interface = CPU 100% >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 25 10:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Aurelien Nephtali >Release: FreeBSD 4.6-STABLE i386 >Organization: none >Environment: System: FreeBSD nebula.wanadoo.fr 4.6-STABLE FreeBSD 4.6-STABLE #144: Sun Aug 25 10:38:56 CEST 2002 dak@nebula.wanadoo.fr:/usr/src/sys/compile/NEBULA i386 >Description: When a net interface disappears and if a 'dhclient' is attached to this interface, the CPU rise to 100% and the log message 'receive_packet on X: Device not configured' goes to /var/log/messages. This is a know problem (someone already complains on -stable i think) but apparently it wasn't fixed (yet). This problem is only on laptops with PCMCIA NIC. >How-To-Repeat: dhclient and remove the NIC. >Fix: Apply this patch from /usr/src. I choose to exit the soft since it's not usefull to have it running if no interface is present and moreover a new dhclient X is needed if the NIC is re-plugged. --- discover.c.patch begins here --- --- contrib/isc-dhcp/common/discover.c Thu Apr 11 12:16:46 2002 +++ contrib/isc-dhcp/common/discover.c Sat Aug 24 22:40:13 2002 @@ -756,7 +756,8 @@ if ((result = receive_packet (ip, u.packbuf, sizeof u, &from, &hfrom)) < 0) { log_error ("receive_packet failed on %s: %m", ip -> name); - return ISC_R_UNEXPECTED; + exit(ISC_R_UNEXPECTED); + /*return ISC_R_UNEXPECTED;*/ } if (result == 0) return ISC_R_UNEXPECTED; --- discover.c.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message