Re: [SLUG] help with ksymoops

From: Derek Glidden (dglidden@illusionary.com)
Date: Wed Feb 27 2002 - 11:09:22 EST


On Wed, 2002-02-27 at 08:57, Russell Hires wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
>
> I've got a buggy kernel. Or buggy hardware. But, for now, every so often I
> crash, and I want to capture the info reported by ksymoops. ksymoops uses the
> defaults to get information, but the thing I don't understand is that after
> it displays the information, ksymoops tells me that it's reading information
> from the terminal. Why would it do that? Do I need to give it some
> information? The man pages don't have anything to say about this,
> unfortunately...

Yep, you need to give it the OOPS that the kernel spits out when
something goes pear-shaped. It's usually somewhere in /var/log/messages
or /var/log/kern.log or /var/log/syslog. It depends on how you have
your syslog setup.

The stuff in /var/log/ksymoops is "snapshot" information that ksymoops
might like to know about. For ksymoops to work effectively, it has to
know exactly which modules are/were loaded at the time of the OOPS, and
where in memory they were loaded, which is usually problematic because
generally speaking, if your kernel panics, you have to reboot and now
your modules may be loaded differently... A Debian box periodically
"snapshots" this information to logfiles in /var/log/ksymoops so you can
refer back to that information closest to the time of the oops.

The "Kernel Crash Dump" project tries to deal with the current
not-very-good post-mortem kernel OOPS/panic situation by including some
more instrumentation in the kernel for spitting out more useful
information at the time of the oops rather than trying to deal with
everything post facto when you have the system actually running again,
by which time all the useful diagnostic information has been lost. If
you're having serious problems, you might want to look into the KCD
patch. I've forgotten where it is but a google search aught to turn it
up pretty quickly.

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#!/usr/bin/perl -w
$_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map
{$_%16or$t^=$c^=($m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;
$t^=(72,@z=(64,72,$a^=12*($_%16-2?0:$m&17)),$b^=$_%64?12:0,@z)
[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h=5;$_=unxb24,join
"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$d=
unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d
>>12^$d>>4^$d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*
8^$q<<6))<<9,$_=$t[$_]^(($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}
print+x"C*",@a}';s/x/pack+/g;eval 

usage: qrpff 153 2 8 105 225 < /mnt/dvd/VOB_FILENAME \ | extract_mpeg2 | mpeg2dec -

http://www.cs.cmu.edu/~dst/DeCSS/Gallery/ http://www.eff.org/ http://www.anti-dmca.org/



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:50:26 EDT