Re: memory leak? rtl problem?

Search this archive.

From: Matan Ziv-Av (matan@svgalib.org)
Date: Mon 02 Apr 2001 - 22:38:34 IST


> The problem is that the whole computer hangs. I can't switch to
> another tty or anything.

If it happens that an svgalib program crashes you can usually restore
text mode even if you don't have another computer to telnet from or a
serial console:
In preparation you need to make sure that:
The kernel is compiled with magic sysrq support.
The program vga_reset (from lrmi-0.6m directory) works. Just run it
while in text mode and see that it does not crash your computer :-)
Then, copy it to somewhere in root's path.

When an svgalib program crashes, you have two options:

Alt-SysRq-R sets keyboard to unraw mode, then switch to another console
where root is logged in, and run (blindly) vga_reset.

Or

Alt-SysRq-R to set the keyboard, and then Alt-SysRq-K to kill all
programs on current virtual terminal (which means that init reruns login
on that terminal). Now login blindly as root and run vga vga_reset.

The first option is preferable, since you might later return to the
crashd program VT and read any messages it left. But it might not always
work, since the program might not actually be crashed, and so still
prevent console switching.


-- 
Matan Ziv-Av.                         matan@svgalib.org



------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST