Yes. Oh, there may be some cases where a disk hang would stop the
kernel as a whole, but that would be unusual. You've already described
symptoms where the kernel is clearly still running (you can type and
edit an input line); under those conditions, scodb will definitely be
helpful.
OpenServer includes two different items named "scodb".
There's the kernel debugger driver, enabled by putting 'Y' in
/etc/conf/sdevice.d/scodb, relinking the kernel and rebooting. To get
into that, you must be sitting at the system console. Note that the
console can be either the local video card multiscreens, or a serial
port. I like to use something I call the "buddy system", described on:
http://groups.google.com/groups?se... @vagabond.armory.com
scodb only supports standard ASCII over a serial port, so it has no way
to observe a sequence like Ctrl-Alt-D; the default debugger key on a
serial port is Ctrl-X.
There's also the scodb(ADM) command (/etc/scodb). This is basically a
recompilation of the scodb driver as a user-level program. It can read
and write kernel memory, but cannot affect flow of control (for instance
it can't set breakpoints nor be invoked when a breakpoint -- or panic --
is hit). It can also be run to examine a saved crash dump.
If it's linked in, the in-kernel debugger can be invoked at any time
from the console, regardless of who's logged in (including nobody).
Exception: you can invoke it from a graphical screen like X, but it
doesn't do anything to put the screen back in text mode, nor display
itself in graphics. You can do simple interactions (like "whoops, I
just hit Ctrl-Alt-D and the whole system hung ... type 'q' Return ...
ah, we're back). There may be a similar situation on a serial port, but
it's much more obscure: OSR5 supports a "scan code mode" where, with a
suitable terminal, programs _can_ see things like Ctrl and Alt being
pressed and released. I've never tried scodb under those circumstances,
but I bet it would go wrong. Hardly anything uses scancode mode.
In order to run user-level scodb, you must be logged in as root. This
would be impossible if the disk subsystem had already hung. However, if
you were _already running_ scodb by the time of the hang, you might get
away with it. So experiment with that -- open an ssh session to the
machine, run `/etc/scodb -w`, leave it that way until the hang happens.
See if you can interact. Two possible impediments: (1) if memory is
overcommitted, pages of your idle process will have been pushed out to
swap and it'll hang trying to retrieve them; (2) scodb may not have
faulted in all the pages of its own executable image. #2 could be a big
problem. To stack the deck in your favor, when you first start the
session, briefly use all the scodb commands you're likely to use later.
You mentioned that you were coming in re