From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 16 19:49:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB72D1065672; Tue, 16 Sep 2008 19:49:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4CDF18FC16; Tue, 16 Sep 2008 19:49:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m8GJn1qh096729; Tue, 16 Sep 2008 15:49:15 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Matthias Apitz Date: Tue, 16 Sep 2008 11:25:44 -0400 User-Agent: KMail/1.9.7 References: <20080915110838.GA5258@rebelion.Sisis.de> <200809151608.06738.jhb@freebsd.org> <20080915222414.GA12474@rebelion.Sisis.de> In-Reply-To: <20080915222414.GA12474@rebelion.Sisis.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200809161125.45034.jhb@freebsd.org> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Tue, 16 Sep 2008 15:49:16 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8265/Tue Sep 16 15:26:49 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, bug-followup@freebsd.org, freebsd-net@freebsd.org Subject: Re: kern/122331: panic's on KDE-launches (but only in WPA Wifi area) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Sep 2008 19:49:22 -0000 On Monday 15 September 2008 06:24:14 pm Matthias Apitz wrote: > El d=EDa Monday, September 15, 2008 a las 04:08:06PM -0400, John Baldwin= =20 escribi=F3: >=20 > > > > Can you go to frame 7 in kgdb and 'p *fdp'? > > >=20 > > > (kgdb) frame 7 > > > #7 0xc0788b98 in kern_select (td=3D0xc49d5630, nd=3D9, fd_in=3D0x298= ad840,=20 > > > fd_ou=3D0x298ad9c4, fd_ex=3D0x298adb48, tvp=3D0x0) at filedesc.h:= 136 > > > return (fd < 0 || fd >=3D fdp->fd_nfiles ? NULL : fdp->fd_ofiles[fd= ]); > > > (kgdb) p *fdp > > > Variable "fdp" is not available. > > > (kgdb)=20 > >=20 > > If 'td' is available then you can do 'p *td->td_proc->p_fd' >=20 > (kgdb) frame 7 > #7 0xc0788b98 in kern_select (td=3D0xc49d5630, nd=3D9, fd_in=3D0x298ad84= 0,=20 > fd_ou=3D0x298ad9c4, fd_ex=3D0x298adb48, tvp=3D0x0) at filedesc.h:136 > 136 return (fd < 0 || fd >=3D fdp->fd_nfiles ? NULL : > fdp->fd_ofiles[fd]); > (kgdb) p td > $7 =3D (struct thread *) 0xc49d5630 > (kgdb) p *td->td_proc->p_fd > $8 =3D {fd_ofiles =3D 0x0, fd_ofileflags =3D 0x0, fd_cdir =3D 0x0,=20 Well, fd_ofiles being NULL here is really odd. It's also odd that you have= no=20 current directory. Because fd_nfiles is 20, fd_ofiles should be pointing t= o=20 the static file descriptor array. Off the top of my head I don't see how=20 this is happening. It might help if you can narrow down exactly what WPA=20 operation you are doing that causes the panic. =2D-=20 John Baldwin