Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2002 17:14:01 +0900
From:      Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
To:        Peter Wemm <peter@wemm.org>
Cc:        Seigo Tanimura <tanimura@FreeBSD.org>, 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 ... 
Message-ID:  <200205210814.g4L8E13i036307@rina.r.dl.itc.u-tokyo.ac.jp>
In-Reply-To: <20020521014604.7394D3A03@overcee.wemm.org>
References:  <200205200541.g4K5f9D04751@freefall.freebsd.org> <20020521014604.7394D3A03@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 20 May 2002 18:46:04 -0700,
  Peter Wemm <peter@wemm.org> 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 <tanimura@r.dl.itc.u-tokyo.ac.jp> <tanimura@FreeBSD.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205210814.g4L8E13i036307>