From owner-cvs-all Tue May 21 1:14:14 2002 Delivered-To: cvs-all@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (rina.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id C141D37B405; Tue, 21 May 2002 01:14:05 -0700 (PDT) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.12.3+3.5Wbeta/3.7W-rina.r-Nankai-Koya) with ESMTP id g4L8E13i036307 ; Tue, 21 May 2002 17:14:01 +0900 (JST) Message-Id: <200205210814.g4L8E13i036307@rina.r.dl.itc.u-tokyo.ac.jp> Date: Tue, 21 May 2002 17:14:01 +0900 From: Seigo Tanimura To: Peter Wemm Cc: Seigo Tanimura , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/compat/svr4 svr4_filio.c svr4_ioctl.c src/sys/fs/fifofs fifo_vnops.c src/sys/fs/portalfs portal_vnops.c src/sys/kern kern_descrip.c sys_socket.c uipc_domain.c uipc_socket.c uipc_socket2.c uipc_syscalls.c uipc_usrreq.c ... In-Reply-To: <20020521014604.7394D3A03@overcee.wemm.org> References: <200205200541.g4K5f9D04751@freefall.freebsd.org> <20020521014604.7394D3A03@overcee.wemm.org> User-Agent: Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.1 (patch 14) (Cuyahoga Valley) (i386--freebsd) Organization: Digital Library Research Division, Information Techinology Centre, The University of Tokyo MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 20 May 2002 18:46:04 -0700, Peter Wemm said: peter> Seigo Tanimura wrote: >> tanimura 2002/05/19 22:41:09 PDT >> >> Modified files: peter> [..] >> sys/fs/fifofs fifo_vnops.c peter> [..] >> Log: >> Lock down a socket, milestone 1. >> >> o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a >> socket buffer. The mutex in the receive buffer also protects the data >> in struct socket. peter> There is a problem here: peter> panic: mutex sockbuf rcv not owned at ../../../fs/fifofs/fifo_vnops.c:229 peter> (kgdb) where peter> [..] peter> #13 0xbc255f48 in _mtx_assert () peter> #14 0xbc224735 in fifo_open () peter> #15 0xbc224460 in fifo_vnoperate () peter> #16 0xbc301e6a in ufs_vnoperatefifo () peter> #17 0xbc2aeb84 in vn_open_cred () peter> #18 0xbc2ae7fd in vn_open () peter> #19 0xbc2a8f35 in open () peter> #20 0xbc352862 in syscall () peter> This is easily triggered by starting postfix. It looks like it is just peter> open(2)'ing a fifo. fifo_open() did not lock the writer socket across sorwakeup(). It should be all right not. peter> Sorry I do not have more details, my gdb hates my gcc-3.1 kernel dumps. My gdb even hates my kernel. bunko% gdb -k kernel.debug GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... Dwarf Error: Cannot handle DW_FORM_strp in DWARF reader. Then the gdb loads no symbols at all. -- Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message