Jens wrote: >On Mon, Jan 13 2003, Terje Eggestad wrote: >> > > I have the console on a serial port, and a terminal server. With kdb, >> > > you can enter the kernel i kdb even when deadlocked. >> > >> > Even if spinning with interrupt disabled? >> >> Haven't painted myself into that corner yet. Doubt it, very much. > >These are the nasty hangs, total lockup and no info at all if it wasn't >for the nmi watchdog triggering. That alone is reason enough for me :-) > > One alternative are the UP debug spinlocks: They detect double-locks. 2.4 contains macros, but I'm not sure if they work. The macros were removed in 2.5, but if anyone is interested, I've attached my debug spinlock patch: for double locks, it even prints the filename/lineno of the offender. -- Manfred