From owner-freebsd-current Sat May 19 18:56:45 2001 Delivered-To: freebsd-current@freebsd.org Received: from superconductor.rush.net (superconductor.rush.net [208.9.155.8]) by hub.freebsd.org (Postfix) with ESMTP id D518D37B422 for ; Sat, 19 May 2001 18:56:41 -0700 (PDT) (envelope-from bright@superconductor.rush.net) Received: (from bright@localhost) by superconductor.rush.net (8.11.2/8.11.2) id f4K1uRk31849; Sat, 19 May 2001 21:56:27 -0400 (EDT) Date: Sat, 19 May 2001 21:56:26 -0400 From: Alfred Perlstein To: Szilveszter Adam Cc: current@FreeBSD.ORG Subject: Re: panic: mutex vm not owned... Message-ID: <20010519215626.W7118@superconductor.rush.net> References: <20010519225319.A10701@petra.hos.u-szeged.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0us In-Reply-To: <20010519225319.A10701@petra.hos.u-szeged.hu>; from sziszi@petra.hos.u-szeged.hu on Sat, May 19, 2001 at 10:53:19PM +0200 X-all-your-base: are belong to us. Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Szilveszter Adam [010519 16:53] wrote: > Hello everybody, > > I guess I was just being too happy so it had to get me this time:-) I was > building Mozilla when it struck. Today's -CURRENT, kernel & world in sync, > no softupdates. > > panic: mutex vm not owned at ../../vm/vm_page.h:328 > Debugger("panic") > > Stopped at Debugger > > trace: > Debugger > panic > _mtx_assert > swp_pager_async_iodone > _iodone > bufdone > bufdonebio > ad_interrupt > ata_intr > fork_exit > fork_trampoline > > Unfortunately, dumping still doesn't work, I get the old and familiar: > dump ata0: resetting devices... panic: witness_restore: lock (sleep mutex) > Giant not locked. > > So there is no crash dump. Thanks for the traceback, can you apply this patch then try to get your machine to swap? Index: swap_pager.c =================================================================== RCS file: /home/ncvs/src/sys/vm/swap_pager.c,v retrieving revision 1.155 diff -u -r1.155 swap_pager.c --- swap_pager.c 2001/05/19 01:28:08 1.155 +++ swap_pager.c 2001/05/20 01:58:06 @@ -1474,8 +1474,8 @@ */ mtx_unlock(&Giant); - mtx_lock(&vm_mtx); swp_pager_async_iodone(bp); + mtx_lock(&vm_mtx); splx(s); } @@ -1554,7 +1554,7 @@ /* * remove the mapping for kernel virtual */ - + mtx_lock(&vm_mtx); pmap_qremove((vm_offset_t)bp->b_data, bp->b_npages); /* @@ -1689,6 +1689,7 @@ if (object) vm_object_pip_wakeupn(object, bp->b_npages); + mtx_unlock(&vm_mtx); /* * release the physical I/O buffer */ -- -Alfred Perlstein [alfred@freebsd.org] Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message