From owner-freebsd-emulation@FreeBSD.ORG Fri Feb 27 23:20:44 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CB9B106564A for ; Fri, 27 Feb 2009 23:20:44 +0000 (UTC) (envelope-from dchagin@dchagin.static.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id 2FC7C8FC12 for ; Fri, 27 Feb 2009 23:20:44 +0000 (UTC) (envelope-from dchagin@dchagin.static.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id C6EAE61F1D; Sat, 28 Feb 2009 01:53:42 +0300 (MSK) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.static.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 1650679310; Sat, 28 Feb 2009 01:53:42 +0300 Received: from dchagin.static.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.static.corbina.ru (8.14.3/8.14.3) with ESMTP id n1RMrgeT083126; Sat, 28 Feb 2009 01:53:42 +0300 (MSK) (envelope-from dchagin@dchagin.static.corbina.ru) Received: (from dchagin@localhost) by dchagin.static.corbina.ru (8.14.3/8.14.3/Submit) id n1RMrfuA083125; Sat, 28 Feb 2009 01:53:41 +0300 (MSK) (envelope-from dchagin) Date: Sat, 28 Feb 2009 01:53:41 +0300 From: Chagin Dmitry To: Lucius Windschuh Message-ID: <20090227225341.GA83061@dchagin.static.corbina.ru> References: <90a5caac0902270822t5740dea4l9e9fa5cda2bada48@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <90a5caac0902270822t5740dea4l9e9fa5cda2bada48@mail.gmail.com> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-emulation@freebsd.org Subject: Re: [PATCH] futexes / now: duplicate lock of same type X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2009 23:20:44 -0000 On Fri, Feb 27, 2009 at 05:22:52PM +0100, Lucius Windschuh wrote: > 2009/2/10 Chagin Dmitry : > >> > please, try http://lnxx64.googlecode.com/files/futexes_partial_II.patch > >> > first patch fail at i386... > > I am using your patch and Flash got a bit faster. :-) > But witness reported this when I start my opera and load mail.google.com: > > acquiring duplicate lock of same type: "futex lock" > 1st futex lock @ > /usr/src/sys/modules/linux/../../compat/linux/linux_futex.c:179 > 2nd futex lock @ > /usr/src/sys/modules/linux/../../compat/linux/linux_futex.c:211 > KDB: stack backtrace: > db_trace_self_wrapper(c09b535c,eb1d7b50,c06da5a5,4,c09b0871,...) at > db_trace_self_wrapper+0x26 > kdb_backtrace(4,c09b0871,c0d62685,c6112d88,eb1d7bac,...) at kdb_backtrace+0x29 > _witness_debugger(c09b7f74,c0d626e7,c0d62685,d3,c09ab01b,...) at > _witness_debugger+0x25 > witness_checkorder(c7526b80,9,c0d62685,d3,0,...) at witness_checkorder+0x469 > _sx_xlock(c7526b80,0,c0d62685,d3,0,...) at _sx_xlock+0x85 > futex_get0(0,0,102,c7526b80,0,...) at futex_get0+0x28c > futex_get_op(eb1d7c44,eb1d7c58,c068ba4c,c770f088,4,...) at futex_get_op+0x93 > linux_sys_futex(c77336c0,eb1d7cf8,eb1d7d18,eb1d7d1c,c0d65b20,...) at > linux_sys_futex+0x6a > syscall(eb1d7d38) at syscall+0x283 > Xint0x80_syscall() at Xint0x80_syscall+0x20 > --- syscall (240, Linux ELF, linux_sys_futex), eip = 0x28cd69b3, esp = > 0xbfbfde6c, ebp = 0x4000001 --- > > Is this message potentially harmful? > > More information can be gathered on request (e.g. textdump with a > custom ddb script). > hi, thanks for the concern! this is expected behavior. this futexes design problem. anyway thnx! -- Have fun! chd