Subject: Re: mutex_enter with held simple_lock message while building
To: Nicolas Joly <njoly@pasteur.fr>
From: Iain Hibbert <plunky@rya-online.net>
List: current-users
Date: 07/24/2007 14:22:34
On Mon, 23 Jul 2007, Nicolas Joly wrote:

> i just updated -current sources on my Dell Insipiron 2600 i386 laptop.
> Since, i'm not able to build a new kernel anymore ...

I just updated source to 23 July (monday evening) and am getting something
similar. My trace (below) also shows uvm_pageout() and uvm_swapisfull() at
the bottom and is triggered when building a release..

kernel is basically GENERIC_LAPTOP+DIAGNOSTIC+LOCKDEBUG and most unused
devices removed

iain

kernel: supervisor trap double fault, code=0
Stopped in pid 0.19 (system) at	netbsd:lockdebug_wantlock+0xa5:	movl	$0xd,0(%esp)
db> bt
lockdebug_wantlock(1b7,c025046b,0,0,0) at netbsd:lockdebug_wantlock+0xa5
mutex_vector_enter(c046a5b8,0,ca60a7b4,c0264dfa,c0cc5808) at netbsd:mutex_vector_enter+0x152
selwakeup(c0cc5808,0,d,0,ca60a750) at netbsd:selwakeup+0x1b
selnotify(c0cc5808,1000000,0,0,0) at netbsd:selnotify+0x1a
ptsstart(ca60a750,0,cafb70f0,c025dbf8,ca60a750) at netbsd:ptsstart+0x4f
ttstart(ca60a750,ca60a750,9fb,a,0) at netbsd:ttstart+0x18
tputchar(a,3,ca60a750,c0385cdc,45) at netbsd:tputchar+0x58
putchar(cafb7202,0,a,0,0) at netbsd:putchar+0x56
kprintf(c03df86d,1,0,0,cafb71f0) at netbsd:kprintf+0x31b
printf_nolog(c03df86d,cafb7202,c0411820,cafb72ac,0) at netbsd:printf_nolog+0x3f
lock_printf(c0411820,c03e585b,c045cc2c,0,c040fa74) at netbsd:lock_printf+0x6f
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0x9e
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb7568,0,cafb7570) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb7648,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb78ec,0,cafb78f4) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb79cc,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb7c70,0,cafb7c78) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb7d50,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb7ff4,0,cafb7ffc) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb80d4,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb8378,0,cafb8380) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb8458,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,0,0) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,0,0) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(0,4,cafb86fc,0,cafb8704) at netbsd:db_read_bytes+0x31
db_get_value(0,4,0,6e655f77,20726574) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb87dc,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e585b,1,cafb882c,c0244337) at netbsd:simple_lock_only_held+0xc3
rw_vector_enter(c045fd44,0,0,cafb886c,c02440eb) at netbsd:rw_vector_enter+0x1cb
uvm_fault_internal(c045fd40,0,1,0,c0248836) at netbsd:uvm_fault_internal+0xcd
trap() at netbsd:trap+0x14b
--- trap (number 6) ---
db_read_bytes(52,4,cafb8a80,1df752,cafb8a88) at netbsd:db_read_bytes+0x31
db_get_value(52,4,0,78657475,746e655f) at netbsd:db_get_value+0x2a
db_stack_trace_print(cafb8b60,1,ffff,c03dff87,c021e5e0) at netbsd:db_stack_trace_print+0x3d9
simple_lock_only_held(0,c03e54b9,0,0,cb9bf534) at netbsd:simple_lock_only_held+0xc3
mutex_vector_enter(c045cc90,0,0,c076f230,c076f230) at netbsd:mutex_vector_enter+0x1b0
uvm_swapisfull(c076f230,c040fa74,2bb,11000,0) at netbsd:uvm_swapisfull+0x13
uvm_pageout(ca619e00,0,c01002ac,fbff,c01002ac) at netbsd:uvm_pageout+0x485
db>