From owner-freebsd-current@FreeBSD.ORG Wed Aug 8 20:57:24 2007 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 435C216A419; Wed, 8 Aug 2007 20:57:24 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 357EF13C45B; Wed, 8 Aug 2007 20:57:24 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from rot26.obsecurity.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 12CCC1A4D7E; Wed, 8 Aug 2007 13:56:26 -0700 (PDT) Received: by rot26.obsecurity.org (Postfix, from userid 1001) id 74D71C12F; Wed, 8 Aug 2007 16:57:23 -0400 (EDT) Date: Wed, 8 Aug 2007 16:57:23 -0400 From: Kris Kennaway To: Kirk Russell Message-ID: <20070808205723.GA76824@rot26.obsecurity.org> References: <20070808195955.GA76077@rot26.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: davidxu@freebsd.org, current@freebsd.org, Kris Kennaway Subject: Re: panic: lock "aiomtx" already initialized 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: Wed, 08 Aug 2007 20:57:24 -0000 On Wed, Aug 08, 2007 at 04:10:41PM -0400, Kirk Russell wrote: > On Wed, 8 Aug 2007, Kris Kennaway wrote: > > > From stress2's random syscall test: > > > > db> wh > > Tracing pid 45777 tid 100465 td 0xc61b7000 > > kdb_enter(c077f50d,2,c0782352,ed0fab84,2,...) at kdb_enter+0x33 > > panic(c0782352,c0788b88,c5e1107c,20000,0,...) at panic+0xed > > lock_init(c5e1107c,c07c67c4,c0788b88,0,20000) at lock_init+0x8c > > mtx_init(c5e1107c,c0788b88,0,0,79400d31,...) at mtx_init+0x9f > > aio_init_aioinfo(c61c4ab0,c057d463,c07e6520,9579c960,31a964,...) at aio_init_aioinfo+0x4b > > aio_aqueue(c61b7000,79400d31,0,2,1,...) at aio_aqueue+0x8d > > oaio_read(c61b7000,ed0facf8,4,c078503a,c07c2250,...) at oaio_read+0x32 > > syscall(ed0fad38) at syscall+0x14f > > Xint0x80_syscall() at Xint0x80_syscall+0x20 > > --- syscall (318, FreeBSD ELF32, oaio_read), eip = 0x280c0969, esp = 0xbfbfe5f0, ebp = 0xbfbfe638 --- > > db> x/s 0xc0782352 > > 0xc0782352: lock "%s" %p already initialized > > Could this be a similar issue? I noticed it with 7.0-CURRENT-200706. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=114216 Maybe, hard to say though because your backtrace is completely bogus. Probably because you're using aio as a module so you need to do some more work to get kgdb to read symbols; see the developers handbook. Kris