From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 17:01:16 2004 Return-Path: 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 6CF4416A4CE for ; Tue, 2 Nov 2004 17:01:16 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0389543D1D for ; Tue, 2 Nov 2004 17:01:16 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id iA2H0RGI013772; Tue, 2 Nov 2004 12:00:27 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)iA2H0Qmt013765; Tue, 2 Nov 2004 17:00:27 GMT (envelope-from robert@fledge.watson.org) Date: Tue, 2 Nov 2004 17:00:26 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Dikshie In-Reply-To: <20041102122546.GB9392@ppk.itb.ac.id> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org Subject: Re: panic: mutex accept not owned at /usr/src/sys/kern/uipc_socket.c:493 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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, 02 Nov 2004 17:01:16 -0000 On Tue, 2 Nov 2004, Dikshie wrote: > dear all, cvsup-ed yesterday (WIT/West Indonesia Time) I got my > FreeBSD-5.3-STABLE box panic: herewith the message: It looks like there's a missing call to ACCEPT_LOCK() in uipc_socket.c:soabort(). It should appear before the call to SOCK_LOCK(). Could you try the attached patch? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research Index: uipc_socket.c =================================================================== RCS file: /home/ncvs/src/sys/kern/uipc_socket.c,v retrieving revision 1.215 diff -u -r1.215 uipc_socket.c --- uipc_socket.c 23 Oct 2004 19:06:43 -0000 1.215 +++ uipc_socket.c 2 Nov 2004 16:57:58 -0000 @@ -490,6 +490,7 @@ error = (*so->so_proto->pr_usrreqs->pru_abort)(so); if (error) { + ACCEPT_LOCK(); SOCK_LOCK(so); sotryfree(so); /* note: does not decrement the ref count */ return error; > > panic: mutex accept not owned at /usr/src/sys/kern/uipc_socket.c:493 > KDB: stack backtrace: > kdb_backtrace(100,c2807af0,c070cd20,1ed,c06abc86) at 0xc0521c5d = kdb_backtrace+0x29 > panic(c06a6b16,c06b3fcd,c06abc86,1ed,c1e92578) at 0xc050bc58 = panic+0xa8 > _mtx_assert(c070cb20,1,c06abc86,1ed,c1e92578,0,c06abc86,1ec) at 0xc0504424 = _mtx_assert+0x5c > soabort(c1e92510,c070cb20,0,c06abc86,1b5) at 0xc053e9f7 = soabort+0x4f > soclose(c29743cc,c1d4fcc0,0,da15fb98,c04f14d0) at 0xc053e80c = soclose+0x120 > soo_close(c1d4fcc0,c2807af0) at 0xc053066f = soo_close+0x4b > fdrop_locked(c1d4fcc0,c2807af0,c1965664,0,c06a4247) at 0xc04f14d0 = fdrop_locked+0x84 > fdrop(c1d4fcc0,c2807af0,c072f520,8c0,c06bccd6) at 0x04f0720 = fdrop+0x24 > closef(c1d4fcc0,c2807af0) at 0xc04f06f3 = closef+0x1db > fdfree(c2807af0,c42e89e8,c06a4247,826,c1e7d044) at 0xc04f004f = fdfree+0x2ff > exit1(c2807af0,0,da15fd40,c066a9bb,c2807af0) at 0xc04f70ca = exit1+0x3e6 > exit1(c2807af0,da15fd14,1,0,292) at 0xc04f6ce4 = exit1 > syscall(2f,2f,2f,1,8069100) at 0xc066a9bb = syscall+0x213 > Xint0x80_syscall() at 0xc065afaf = Xint0x80_syscall+0x1f > --- syscall (1, FreeBSD ELF32, sys_exit), eip = 0x28129373, esp = 0xbfbfe34c, ebp = 0xbfbfe368 --- > > > > > > > any solutions ? > > > thanks ! > > > -dikshie- > _______________________________________________ > 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" >