From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6847a8f30482f419,start X-Google-Attributes: gidfee84,public From: denham@denham.zk3.dec.com (Jeffrey M. Denham) Subject: Re: Character driver simple lock owned panic debug Date: 1996/02/22 Message-ID: <4giued$scj@zk2nws.zko.dec.com>#1/1 X-Deja-AN: 140623215 distribution: world references: <312C824C.41C6@globalcom.net> organization: Digital Equipment Corporation reply-to: denham@zk3.dec.com (Jeffrey M. Denham) newsgroups: comp.unix.osf.osf1 In article <312C824C.41C6@globalcom.net>, John Sanders writes: >I have a chacter driver for a HiPPi interface card that I developed. It >intermitantly panics with a simple lock owned. The crash summary is as >follows: ... >Line 1172 is the mpsleep call. Its not locking at all. Can anyone tell >me where to look? Well, the kernel certainly thinks you own a simple lock. I haven't seen it lie yet. Get it to happen in lockmode 4 (lock debugging mode). In the crash dump, do this: (dbx) px slock_debug[paniccpu] This should print out the addresses of simple locks taken on the processor your thread was running on. In other words, these the simple locks your thread held when it called mpsleep. Let me know if it prints out all 0s. If it doesn't, those are lock addresses and will have the lower six hex digits of the pc where the lock was taken in the sl_data field. For example, if sl_data is 0x2b3808, you can see where that lock was taken like this: (dbx) 0xfffffc00002b3808/i [thread_release:2187, 0xfffffc00002b3808] bsr r26, simple_unlock_D(line 822) This shows where a thread lock was unlocked sometime in the past. -- ----------------------------------------------------------------------------- Jeff Denham, Unix Software Group, Digital Equipment Corporation email: denham@zk3.dec.com, voice: (603) 881-0057