Debugging Spinlocks on SMP via KDB

Boerner, Brian Brian_Boerner at ntc.adaptec.com
Tue Jul 18 06:41:49 PDT 2000


Howdy folks..

I'm trying to debug a spinlock problem using kdb v0.6-2.2.13. Here is a
basic summary of the problem.

When my driver is compiled as part of the resident kernel (i.e. not a
module) on an SMP box, the same
CPU comes along and tries to acquire a lock it already has. I, of course,
panic the system. My question
is more or less a theory question. 

Is it possible to use kdb to look at a given thread at the time the system
panics? 
It is my hopes that I can squirrel away the thread of the process that has
the lock
and the thread of the process trying to acquire the lock and look at them in
parallel
to determine the conditions under which this is happening.

I'm fairly new to kernel level debuggers and any help would be greatly
appreciated. 

Brian M. Boerner
System Software Developer
Adaptec, Inc.
Nashua, NH 03060
(603) 579-4625





More information about the kdb mailing list