Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Jul 2001 09:31:49 +0930 (CST)
From:      Benjamin Close <cisbjc@cs.unisa.edu.au>
To:        freebsd-current@freebsd.org
Subject:   Recursing on a non-recursive lock
Message-ID:  <Pine.OSF.4.21.0107270856030.24942-200000@reason.levels.unisa.edu.au>

next in thread | raw e-mail | index | archive | help
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--0-981467433-996192039=:24942
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-ID: <Pine.OSF.4.21.0107270930431.24942@reason.levels.unisa.edu.au>

Hi All,
	For a while now (July 12 first noticed) I've been experiencing a
intermittent panic on a non-recursive lock. Whilst I can grab the panic,
savecore panics again writing it. It seems to occur only under heavy disk
io and hence a make install of XFree86 causes the condition (not always at
the same place). Details below:

This always occurs sometime before the panic:

lock order reversal
 1st 0xc907c1fc process lock @ ../../../vm/vm_glue.c:469
 2nd 0xc0b4cfb0 lockmgr interlock @ ../../../kern/kern_lock.c:239

Then sometime later (beware, hand transcribed)...

recursed on non-recursive lock (sleep mutex) process lock @
../../../kern_lock:262
first acquired @ ../../../kern/kern_exit.c:327
panic: recurse
Debugger("panic")
Stopped at Debugger+0x45: pushl %ebx
db>trace
Debugger(c040a27b) at Debugger+0x45
panic(c040cf28,0,c04ad7fc,c907bca0,0) at panic 0x70
witness_lock(c907bdbc,8,c04087b4,106) at witness_lock+0x356
lockmgr(c04ad7fc,1,0,c907bca0,c90ced88) at lockmgr+0x200
vm_map_lock_read(c04ad7cc,1,c907bca0,c04ad7cc,c027f001) at
vm_map_lock_read+01a
vm_map_lookup(c90cee04,c9122000,1,c90cee08,c90cedfc) at vm_map_lookup+0x5f
vm_fault1(c04ad7cc,c9122000,1,0,0) at vm_fault1+0x90
vm_fault(c04ad7cc,c9122000,1,0,0) at vm_fault+0x96
trap_pfault(c90ceee0,0,c91222ac) at trap_pfault+0x2d1
trap(c0400018,10,c9070010,c907bca0,c90cdd18) at trap+0x774
calltrap() at tcalltrap+0x5
--- trap 0xc, eip = 0xc024aac2, esp = 0xc90cef20, ebp=0xc90cef40
exit1(c907bca0,0,c90cefa0,c03b35a9,c907bca0) at exit1+0x1006
sys_exit(c907bca0,c90cef80,ffffffff,0,80bc608) at sys_exit+0x15
syscall(80b002f,812002f,bfbf002f,80bc608,0) at syscall+0x695
syscall_with_err_pushed() at syscall_with_err_pushed+01b
--- syscall ( 1, FreeBSD Elf, sys_exit), eip=0x8093f54, esp=0xbfbfd0e0,
ebp=0xbfbfd10c
db>show locks
exclusive( sleep mutex ) lockmgr ( 0xc0480700 ) locked @
../../../kern/kern_lock.c:239
exclusive( sleep mutex ) process lock ( 0xc907bdbc ) locked @
../../../kern/kern_exit.c:327
exclusive ( sx ) proctree (0xc04be5e0) locked @
../../../kernl/kern_exit.c:282
exclusive (sleep mutex) Giant ( 0xc04c4400) locked @
../../../vm/vm_fault.c:195

Other useful stuff (tired of transcribing):

Fatal trap 12: page fault while in kernel mode
fault code = supervisor read, page not present
current process = 5756 (ld)

If this is not enough to help diagnose the problem, what else can I
provide (sadly I can't give symbols as this fault occured compiling the
kernel :(

The machine is a Dell Inspiron 8000 laptop (dmesg attached)
and the problem is getting more frequent with newer kernels. 

Cheers,
	Benjamin

--0-981467433-996192039=:24942
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII; NAME=output
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.OSF.4.21.0107270930390.24942@reason.levels.unisa.edu.au>
Content-Description: 
Content-Disposition: ATTACHMENT; FILENAME=output

Q29weXJpZ2h0IChjKSAxOTkyLTIwMDEgVGhlIEZyZWVCU0QgUHJvamVjdC4N
CkNvcHlyaWdodCAoYykgMTk3OSwgMTk4MCwgMTk4MywgMTk4NiwgMTk4OCwg
MTk4OSwgMTk5MSwgMTk5MiwgMTk5MywgMTk5NA0KCVRoZSBSZWdlbnRzIG9m
IHRoZSBVbml2ZXJz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yA0MTM5MiBmaWxlcyAzNQ0KbGlucHJvY2ZzIHJlZ2lzdGVy
ZWQNCklQIHBhY2tldCBmaWx0ZXJpbmcgaW5pdGlhbGl6ZWQsIGRpdmVydCBk
aXNhYmxlZCwgcnVsZS1iYXNlZCBmb3J3YXJkaW5nIGRpc2FibGVkLCBkZWZh
dWx0IHRvIGRlbnksIGxvZ2dpbmcgZGlzYWJsZWQNCi9kZXYvdm1tb246IE1v
ZHVsZSB2bW1vbjogcmVnaXN0ZXJlZCB3aXRoIG1ham9yPTIwMCBtaW5vcj0w
IHRhZz0kTmFtZTogYnVpbGQtNTcwICQNCi9kZXYvdm1tb246IE1vZHVsZSB2
bW1vbjogaW5pdGlhbGl6ZWQNCmZ4cDA6IHByb21pc2N1b3VzIG1vZGUgZW5h
YmxlZA0Kdm1uZXQxOiBwcm9taXNjdW91cyBtb2RlIGVuYWJsZWQNCg==
--0-981467433-996192039=:24942--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.21.0107270856030.24942-200000>