From: denham@denham.zk3.dec.com (Jeffrey M. Denham)
Subject: Re: Character driver simple lock owned panic debug
Date: 1996/02/22 [thread overview]
Message-ID: <4giued$scj@zk2nws.zko.dec.com> (raw)
In-Reply-To: 312C824C.41C6@globalcom.net
In article <312C824C.41C6@globalcom.net>, John Sanders <jsanders@globalcom.net> 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
prev parent reply other threads:[~1996-02-22 5:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-02-22 5:00 Character driver simple lock owned panic debug John Sanders
1996-02-22 5:00 ` Jeffrey M. Denham [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox