From owner-freebsd-current@FreeBSD.ORG Tue May 13 11:16:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9356137B401 for ; Tue, 13 May 2003 11:16:22 -0700 (PDT) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAEBD43F3F for ; Tue, 13 May 2003 11:16:21 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) h4DIGLPR030091 for ; Tue, 13 May 2003 11:16:21 -0700 (PDT) (envelope-from kargl@troutmask.apl.washington.edu) Received: (from kargl@localhost)h4DIGLY8030090 for freebsd-current@freebsd.org; Tue, 13 May 2003 11:16:21 -0700 (PDT) From: "Steven G. Kargl" Message-Id: <200305131816.h4DIGLY8030090@troutmask.apl.washington.edu> To: freebsd-current@freebsd.org Date: Tue, 13 May 2003 11:16:21 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Subject: LOR vm object and stack trace X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 13 May 2003 18:16:22 -0000 >From yesterday's source, I get lock order reversal 1st 0xc4461000 vm object (vm object) @ /usr/src/sys/vm/vm_object.c:512 2nd 0xc082f110 system map (system map) @ /usr/src/sys/vm/vm_kern.c:325 Stack backtrace: backtrace(c0334111,c082f110,c033f5e3,c033f5e3,c033f47a) at backtrace+0x17 witness_lock(c082f110,8,c033f47a,145,1) at witness_lock+0x697 _mtx_lock_flags(c082f110,0,c033f47a,145,3) at _mtx_lock_flags+0xb1 _vm_map_lock(c082f0b0,c033f47a,145,d7b48ab8,c01f9424) at _vm_map_lock+0x36 kmem_malloc(c082f0b0,1000,101,d7b48b24,c02c52f0) at kmem_malloc+0x66 page_alloc(c083a240,1000,d7b48b17,101,c035e78c) at page_alloc+0x27 slab_zalloc(c083a240,101,c0340e47,66f,c083a924) at slab_zalloc+0x150 uma_zone_slab(c083a240,101,c0340e47,66f,0) at uma_zone_slab+0xd8 uma_zalloc_internal(c083a240,0,101,6ef,0) at uma_zalloc_internal+0x55 uma_zfree_arg(c083a900,c447f000,0,d7b48bcc,c02ad0d8) at uma_zfree_arg+0x2cb dev_pager_putfake(c447f000,0,c033ec9b,bc,c4461000) at dev_pager_putfake+0x3a dev_pager_dealloc(c4461000,1,c0340d4a,10b,0) at dev_pager_dealloc+0xc8 vm_pager_deallocate(c4461000,0,c033ff20,25e,c038f6c8) at vm_pager_deallocate+0x3d vm_object_terminate(c4461000,0,c033ff20,200,c4427bb8) at vm_object_terminate+0x1f4 vm_object_deallocate(c4461000,c4427bb8,c4461000,c4427bb8,d7b48c9c) at vm_object_deallocate+0x217 vm_map_entry_delete(c1529e00,c4427bb8,c033f651,86e,c032f9a5) at vm_map_entry_delete+0x3b vm_map_delete(c1529e00,282e0000,282e1000,1000,282e0000) at vm_map_delete+0x453 vm_map_remove(c1529e00,282e0000,282e1000,0,c43b5608) at vm_map_remove+0x58 munmap(c4044980,d7b48d10,c0344a2a,3fb,2) at munmap+0x9e syscall(2f,2f,2f,f8000,1000) at syscall+0x26e Xint0x80_syscall() at Xint0x80_syscall+0x1d -- Steve http://troutmask.apl.washington.edu/~kargl/