[Bug 2719] New: klogd incorrectly splits up kernel messages

bugzilla at busybox.net bugzilla at busybox.net
Tue Oct 19 13:38:12 UTC 2010


           Summary: klogd incorrectly splits up kernel messages
           Product: Busybox
           Version: 1.17.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: johans at stack.nl
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

Created attachment 2611
  --> https://bugs.busybox.net/attachment.cgi?id=2611
Patch klogd to assemble partial error lines into a single syslog message.

Busybox klogd handles newlines in kernel messages, splitting such a message up
in multiple lines (messages) for syslog. But it does not handle partial
messages _without_ a newline. The kernel sometimes prints error messages in
chunks (e.g. 3 or 4 prints for a single error line); due to this bug they and
up as multiple error messages (lines) in syslog. This happens for example with
register dumps when an application crashes.

The fix is to keep collecting partial messages until either a newline is
received, or the internal message buffer is full.

A simple patch that does this, is attached. Please include this (or similar
patch) in the next release.

Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list