Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44551 - ksymoops requires sysklogd
Summary: ksymoops requires sysklogd
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Gentoo Linux x86 Installation Guide (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL: http://www.kernel.org/pub/linux/utils...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-13 04:30 UTC by Chris Smith
Modified: 2004-11-23 17:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/var/log/messages excerpt, from syslog-ng (foo,1.16 KB, text/plain)
2004-03-16 20:38 UTC, Chris Smith
Details
ksymoops operating on attached excerpt, wrong & right versions (pasteme,2.92 KB, text/plain)
2004-03-17 16:01 UTC, Chris Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Smith 2004-03-13 04:30:11 UTC
The install guide, chapter 10 Installing Necessary System Tools, recommends
syslog-ng.  The log produced by syslog-ng, at least by default, does not
work with ksymoops.  [And unfortunately I am getting oopses from a totally
vanilla 2.4.25 kernel.]

Either the default config for syslog-ng should be changed, or ch 10 should
recommend sysklogd, or at least this incompatibility should be pointed out
in ch 10.


Reproducible: Always
Steps to Reproduce:
1. see ch 10.
2.
3.

Actual Results:  
n/a

Expected Results:  
n/a

workaround: replace machine name "foo" with "foo kernel:" in /var/log/messages
and run ksymoops on that.
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-15 04:41:57 UTC
ksymoops v2.4 works (or should work) with syslog-ng. The necessary changes for this have been incorporated in 2.4.4 so if it fails again please consider it a bug in ksymoops.

Also, not many users ever run ksymoops; recommending ksyslogd in favor of syslog-ng even though syslog-ng is more performant and has more features + has a nice default configuration is imho not a wise thing to do
Comment 2 Chris Smith 2004-03-16 20:34:33 UTC
ksymoops 2.4.9 does in fact not work with syslog-ng 1.6.0_rc3-r1.  If I can
figure out how, I will attach a log excerpt so that you may observe this
for yourself.

The whole point of a distribution is to select and/or configure the software
so that it works together.  Gentoo ksymoops and Gentoo syslog-ng do not.

A fix in syslog-ng.conf:  change 
  pipe("/proc/kmsg") 
to
  pipe("/proc/kmsg" log_prefix("kernel: "))

A fix in ksymoops would need to fix the syslog-ng line in oops.c, currently

	    "|[0-9]+\\|[^|]+\\|[^|]+\\|[^|]+\\|"	/* syslog-ng */

which looks nothing like the log lines produced by the default config,
they look like this 

  Mar 12 23:46:11 foxboro Unable to handle kernel NULL pointer dereference at virtual address 00000004

I agree there's no reason to disrecommend syslog-ng, it can cope fine.
I have fixed my installation.  What to do about fixing Gentoo I leave to you.
Comment 3 Chris Smith 2004-03-16 20:38:32 UTC
Created attachment 27507 [details]
/var/log/messages excerpt, from syslog-ng

As is, ksymoops does not parse the oops messages.
Replace 'foxboro' with 'foxboro kernel:' and ksymoops works fine.
Comment 4 Sven Vermeulen (RETIRED) gentoo-dev 2004-03-17 08:58:49 UTC
I can't do much testing without symbolmap and such, but what's the exact error you receive when you run ksymoops now?

Anyway, reassigning to Michael as he's in charge of syslog-ng so he should be able to make better decisions (and update the default config :)
Comment 5 Chris Smith 2004-03-17 16:01:31 UTC
Created attachment 27534 [details]
ksymoops operating on attached excerpt, wrong & right versions

Thanks Sven.

Here is what ksymoops does on the unmodified syslog-ng log
and on the same thing with "kernel: " added.
Comment 6 Mr. Bones. (RETIRED) gentoo-dev 2004-03-17 23:30:11 UTC
Sent email to Keith Owens with a suggested change to ksymoops to handle the
default syslog-ng output.
Comment 7 Mr. Bones. (RETIRED) gentoo-dev 2004-11-23 17:30:03 UTC
This bug is fixed in ksymoops-2.4.10.ebuild which is in portage now.