ksymoops, dieing with a SIGSEGV - fixed

Bryn Paul Arnold Jones (bpaj@gytha.demon.co.uk)
Tue, 14 May 1996 20:39:27 +0100 (BST)


On Tue, 14 May 1996, Dirk A. Niggemann wrote:

> >
> > btw, ksymoops is still SEGV'ing here (in 1.99.3), any why to fix it ?
> > (ELF bin compiled with "g++ -o ksymoops ksymoops.cc -liostream -pipe -g",
> > core dumped, all avalable for debuging ;)
>
> You probably updated your libg++ to a version newer than your libiostream.
> I think the new(er) libg++ versions don't need explicitly need liostream.
> ksymoops more-or less works on my system if i omit the liostream line
> 1.3.47 gcc2.7.2 libg++ 27.1.0
>

Guess what ... this works, spooky oh well, can the patch at the end go in
the the kernel before 2.0 please Linus.

> BTW I am under the impression there is a version of klogd which
> automagically ksymoopses Oops messages and can do this with loaded
> modeules as well. Is this true, and if yes, where can I find it.
>

No idea, I think that an up to date sysklogd will to it ....

Bryn

>>>-->Patch begins here<--<<<
--- linux/scripts/ksymoops.cc.orig Tue May 14 20:30:53 1996
+++ linux/scripts/ksymoops.cc Tue May 14 20:32:37 1996
@@ -2,6 +2,9 @@
// Copyright (C) 1995 Greg McGary <gkm@magilla.cichlid.com>
// compile like so: g++ -o ksymoops ksymoops.cc -liostream

+// If that fails with a SIGSEGV on loading System.map, try with:
+// g++ -o ksymoops ksymoops.cc
+
//////////////////////////////////////////////////////////////////////////////

// This program is free software; you can redistribute it and/or modify