From owner-freebsd-current@FreeBSD.ORG Tue Oct 30 03:53:13 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A7B916A474 for ; Tue, 30 Oct 2007 03:53:13 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (adsl-63-193-123-122.dsl.snfc21.pacbell.net [63.193.123.122]) by mx1.freebsd.org (Postfix) with ESMTP id 4E9C113C480 for ; Tue, 30 Oct 2007 03:53:12 +0000 (UTC) (envelope-from david@catwhisker.org) Received: from bunrab.catwhisker.org (localhost [127.0.0.1]) by bunrab.catwhisker.org (8.13.3/8.13.3) with ESMTP id l9U3qrvO086949; Mon, 29 Oct 2007 20:52:53 -0700 (PDT) (envelope-from david@bunrab.catwhisker.org) Received: (from david@localhost) by bunrab.catwhisker.org (8.13.3/8.13.1/Submit) id l9U3qr9D086948; Mon, 29 Oct 2007 20:52:53 -0700 (PDT) (envelope-from david) Date: Mon, 29 Oct 2007 20:52:53 -0700 From: David Wolfskill To: Tai-hwa Liang Message-ID: <20071030035253.GF78150@bunrab.catwhisker.org> Mail-Followup-To: David Wolfskill , Tai-hwa Liang , current@freebsd.org References: <20071029190208.GD78150@bunrab.catwhisker.org> <0710300936223.30335@www.mmlab.cse.yzu.edu.tw> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pyE8wggRBhVBcj8z" Content-Disposition: inline In-Reply-To: <0710300936223.30335@www.mmlab.cse.yzu.edu.tw> User-Agent: Mutt/1.4.2.1i Cc: current@freebsd.org Subject: Re: Detach of an0 induced kernel panic in 7.0-PRE X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 03:53:13 -0000 --pyE8wggRBhVBcj8z Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Oct 30, 2007 at 09:38:47AM +0800, Tai-hwa Liang wrote: > ... > >Unread portion of the kernel message buffer: > >an0: RID access failed > >an0: detached > > > > > >Fatal trap 12: page fault while in kernel mode > ... > >#0 doadump () at pcpu.h:195 > >195 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); > >(kgdb) bt > >#0 doadump () at pcpu.h:195 > >#1 0xc073b637 in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.= c:409 > >#2 0xc073b8f9 in panic (fmt=3DVariable "fmt" is not available. > >) at /usr/src/sys/kern/kern_shutdown.c:563 > >#3 0xc0a005dc in trap_fatal (frame=3D0xe2987c1c, eva=3D3358077304) > > at /usr/src/sys/i386/i386/trap.c:872 > >#4 0xc0a00860 in trap_pfault (frame=3D0xe2987c1c, usermode=3D0,=20 > >eva=3D3358077304) > > at /usr/src/sys/i386/i386/trap.c:785 > >#5 0xc0a011d5 in trap (frame=3D0xe2987c1c) at=20 > >/usr/src/sys/i386/i386/trap.c:463 > >#6 0xc09e71eb in calltrap () at /usr/src/sys/i386/i386/exception.s:139 > >#7 0xc04daaf7 in an_stats_update (xsc=3D0xc8282000) at atomic.h:149 > >#8 0xc074d7ea in softclock (dummy=3D0x0) at=20 > >/usr/src/sys/kern/kern_timeout.c:274 > >#9 0xc071ef0b in ithread_loop (arg=3D0xc3f0d2f0) > > at /usr/src/sys/kern/kern_intr.c:1036 > >#10 0xc071bc19 in fork_exit (callout=3D0xc071ed60 , > > arg=3D0xc3f0d2f0, frame=3D0xe2987d38) at /usr/src/sys/kern/kern_fork.= c:796 > >#11 0xc09e7260 in fork_trampoline () at=20 > >/usr/src/sys/i386/i386/exception.s:205 > >(kgdb) > ... > Does the attached patch help? Aye, it does appear to do so. I tested at home, where the an0 NIC is actually useful. But I managed to detach the card before the script reported successful association; the machine kept running (and the script fell back to trying the wi0 NIC, since the an0 NIC was no longer there). I'd call that a definite improvement -- and fast response! Thanks again! Peace, david --=20 David H. Wolfskill david@catwhisker.org Proprietary data formats obfuscate, rather than disseminate, information. See http://www.catwhisker.org/~david/publickey.gpg for my public key. --pyE8wggRBhVBcj8z Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iEYEARECAAYFAkcmqpQACgkQmprOCmdXAD2A8gCfWcsyoKMuFQjJzFFbGM26DSq0 VNUAn1BdIPXHoKcdyNIsRIYcsVTQ4wbw =eKAa -----END PGP SIGNATURE----- --pyE8wggRBhVBcj8z--