From owner-freebsd-stable@FreeBSD.ORG Fri May 15 16:02:15 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B503B1065670; Fri, 15 May 2009 16:02:15 +0000 (UTC) (envelope-from cwt@networks.cwu.edu) Received: from nsc0.cwu.edu (nsc0.cwu.edu [72.233.196.16]) by mx1.freebsd.org (Postfix) with ESMTP id 8883E8FC18; Fri, 15 May 2009 16:02:15 +0000 (UTC) (envelope-from cwt@networks.cwu.edu) Received: from n.cwu.edu (n.cwu.edu [198.104.69.57]) by nsc0.cwu.edu (8.14.3/8.14.3) with ESMTP id n4FG2FA7097007; Fri, 15 May 2009 09:02:15 -0700 (PDT) (envelope-from cwt@networks.cwu.edu) Received: from n.cwu.edu (localhost [127.0.0.1]) by n.cwu.edu (8.13.3/8.13.3) with ESMTP id n4FG2Ek1021308; Fri, 15 May 2009 09:02:14 -0700 (PDT) (envelope-from cwt@networks.cwu.edu) Received: from localhost (cwt@localhost) by n.cwu.edu (8.13.3/8.13.1/Submit) with ESMTP id n4FG2Eqq021305; Fri, 15 May 2009 09:02:14 -0700 (PDT) (envelope-from cwt@networks.cwu.edu) X-Authentication-Warning: n.cwu.edu: cwt owned process doing -bs Date: Fri, 15 May 2009 09:02:14 -0700 (PDT) From: Chris Timmons X-X-Sender: cwt@n.cwu.edu To: Kostik Belousov In-Reply-To: <20090515130609.GG1927@deviant.kiev.zoral.com.ua> Message-ID: <20090515085956.X21017@n.cwu.edu> References: <1696198956@web.de> <20090514091410.H12558@n.cwu.edu> <20090514093008.Q12558@n.cwu.edu> <200905141317.56551.jhb@freebsd.org> <20090514152838.E12558@n.cwu.edu> <20090515082458.GB1927@deviant.kiev.zoral.com.ua> <20090515053142.D17400@n.cwu.edu> <20090515130609.GG1927@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.0 (nsc0.cwu.edu [72.233.196.16]); Fri, 15 May 2009 09:02:15 -0700 (PDT) Cc: freebsd-stable@freebsd.org, Martin Sugioarto , John Baldwin Subject: Re: kernel trap 12 with interrupts disabled [bge0 on 7.2R] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 16:02:16 -0000 Kostik, Looking good after applying your patch and rebuilding the kernel. I've been exercising the machine for a couple of hours under the same load which crashed it in short order yesterday. I will report back if any problems appear. Thank you for your help! Regards, -Chris last pid: 4131; load averages: 11.72, 8.89, 5.94 up 0+02:03:21 08:59:48 102 processes: 6 running, 96 sleeping CPU: 38.7% user, 0.0% nice, 11.2% system, 0.0% interrupt, 50.1% idle Mem: 409M Active, 1737M Inact, 241M Wired, 544K Cache, 112M Buf, 1372M Swap: 8192M Total, 8192M Free On Fri, 15 May 2009, Kostik Belousov wrote: > The file structure in the dump is fully initialized. It seems that the > issue is with devfs replacing file ops vector with devfs-specific one > in devfs_open() before the struct file is fully initialized in vn_open. > Please, try the patch below (against 7) and report results. > > Index: fs/devfs/devfs_vnops.c > =================================================================== > --- fs/devfs/devfs_vnops.c (revision 192089) > +++ fs/devfs/devfs_vnops.c (working copy) > @@ -890,6 +890,7 @@ > if (fp != NULL) { > FILE_LOCK(fp); > fp->f_data = dev; > + fp->f_vnode = vp; > FILE_UNLOCK(fp); > } > fpop = td->td_fpop;