_mtx_lock_sleep kernel crash..

From: Eric Anderson <anderson_at_centtech.com>
Date: Mon, 13 Jun 2005 07:56:16 -0500
I'm getting this:
panic: _mtx_lock_sleep: recursed on non-recursive mutex system map _at_ 
/usr/src/sys/vm/vm_kern.c:295

cpuid = 0
KDB: enter: panic
[thread pid 0 tid 0 ]
Stopped at      kdb_enter+0x2b: nop

On bootup with my -current from a few days ago.  Here's how I reproduce it:
With a GENERIC kernel, add any of these to your /boot/loader.conf:
vkbd_load="YES"
snd_pcm_load="YES"
snd_ich_load="YES"

Removing 'smp' option from the kernel seems to fix it.

db> trace
Tracing pid 0 tid 0 td 0xc094b300
kdb_enter(c0882b13) at kdb_enter+0x2b
panic(c0881fc3,c089d374,c089d714,127,c1059144) at panic+0x127
_mtx_lock_sleep(c1059144,c094b300,0,c089d714,127) at _mtx_lock_sleep+0x36
_mtx_lock_flags(c1059144,0,c089d714,127) at _mtx_lock_flags+0x85
_vm_map_lock(c10590c0,c089d714,127) at _vm_map_lock+0x26
kmem_malloc(c10590c0,1000,101,c0c20abc,c078d2cd) at kmem_malloc+0x32
page_alloc(c1063c60,1000,c0c20aaf,101,c0c20abc) at page_alloc+0x1a
slab_zalloc(c1063c60,101,c1063c60,c1063c60,c1064640) at slab_zalloc+0xa1
uma_zone_slab(c1063c60,1,c1064648,0,c089c9cd,894) at uma_zone_slab+0xe8
uma_zalloc_internal(c1063c60,0,1,c1064648,0) at uma_zalloc_internal+0x29
uma_zalloc_arg(c1063c60,0,1) at uma_zalloc_arg+0x2fb
vm_map_entry_create(c10590c0,0,c1056d8c,7070001,c1056d8c) at 
vm_map_entry_create+0x1e
vm_map_insert(c10590c0,c09a8a20,23b2000,0,c22b1000) at vm_map_insert+0x1fc
kmem_malloc(c10590c0,1000,101,c0c20bf4,c078d6c6) at kmem_malloc+0xc8
page_alloc(c1063c60,1000,c0c20c17,101,c1064640) at page_alloc+0x1a
startup_alloc(c1063c60,1000,c0c20c17,101,c089c9cd) at startup_alloc+0xb2
slab_zalloc(c1063c60,101,6e,c1058f04,c103d624) at slab_zalloc+0xa1
uma_zone_slab(c1063c60,1,1,74,f643) at uma_zone_slab+0xe8
uma_zalloc_bucket(c1063c60,1) at uma_zalloc_bucket+0x130
uma_zalloc_arg(c1063c60,0,1) at uma_zalloc_arg+0x2b8
vm_map_entry_create(c1059000,10,c1056e9c,707f000,c1056e9c) at 
vm_map_entry_create+0x1e
vm_map_insert(c1059000,0,0,0,e0990000) at vm_map_insert+0x1fc
vm_map_find(c1059000,0,0,0,c0c20d2c,1000,1,7,7,4) at vm_map_find+0x86
kmem_alloc_nofault(c1059000,1000,400,c1022462,0) at kmem_alloc_nofault+0x37
pmap_mapdev(3ffd3400,68,c0c20d74,c080268a,c22a8584) at pmap_mapdev+0x58
madt_setup_local(c22a8584,c0921e10,c0c20d88,c0617932,0) at 
madt_setup_local+0x14
apic_init(0,c1ec00,c1e000,0,c0447db5) at apic_init+0x116
mi_startup() at mi_startup+0x96
begin() at begin+0x2c


Any more debugging I can do?

Eric



-- 
------------------------------------------------------------------------
Eric Anderson        Sr. Systems Administrator        Centaur Technology
A lost ounce of gold may be found, a lost moment of time never.
------------------------------------------------------------------------
Received on Mon Jun 13 2005 - 10:56:45 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:36 UTC