From owner-freebsd-current@FreeBSD.ORG Tue Apr 4 08:39:48 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BADA16A41F; Tue, 4 Apr 2006 08:39:48 +0000 (UTC) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F58443D53; Tue, 4 Apr 2006 08:39:47 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=[192.168.0.18]) by publicd.ub.mng.net with esmtpa (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FQhAM-00046i-9W; Tue, 04 Apr 2006 17:45:34 +0900 Message-ID: <443230E4.4070701@micom.mng.net> Date: Tue, 04 Apr 2006 17:40:04 +0900 From: Ganbold User-Agent: Thunderbird 1.5 (X11/20060202) MIME-Version: 1.0 To: Robert Watson References: <4430DF4E.1060600@micom.mng.net> <20060403105231.D76562@fledge.watson.org> In-Reply-To: <20060403105231.D76562@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: page fault on today's CURRENT (tcp_usr_accept) 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, 04 Apr 2006 08:39:48 -0000 Robert Watson wrote: > > On Mon, 3 Apr 2006, Ganbold wrote: > >> I've got page fault on today's CURRENT. > > After looking at tcp_usr_accept(), I certainly see *a* bug, which > might be the one you've run into. I've committed what I believe is > the fix as tcp_usrreq.c:1.134. Could you pull that down and see if > life gets better? > > Basically, there was erroneous handling of a connection that has been > disconnected while sitting in the accept queue before the application > manages to call accept() on it (indeed, a race). It looks like not crashing anymore with new tcp_usrreq code. thanks a lot, Ganbold > > Robert N M Watson > >> >> Fatal trap 12: page fault while in kernel mode >> fault virtual address = 0xa0 >> fault code = supervisor write, >> page not present >> instructon pointer = 0x20: 0xc062bbde >> stack pointer = 0x28: 0xcc8efc10 >> frame pointer = 0x28: 0xcc8efc2c >> code segment = base 0x0, limit 0xfffff, >> type 0x1b >> =DPL 0, pres 1, >> def32 1, gran 1 >> processor eflags = interrupt enabled, resume, >> IOPL = 0 >> current process = 435 (smbd) >> [thread pid 435 tid 100039] >> stopped at tcp_usr_accept+0xd6: cmpxchgl %ecx, 0xa0(%ebx) >> >> I'm running samba (samba-3.0.21b,1) on this test machine and there is >> no load. >> >> FreeBSD gw.micom.mng.net 7.0-CURRENT FreeBSD 7.0-CURRENT #16: Mon >> Apr 3 14:15:48 ULAST 2006 >> tsgan@gw.micom.mng.net:/usr/obj/usr/src/sys/GW i386 >> >> Ganbold >> >> >> > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" > > >