truncated syslog messages

Stephane Billiart stephane.billiart at gmail.com
Wed Feb 21 14:24:24 UTC 2007


The problem:

server# logger "message to syslog"
server# killall syslogd
server# tail /var/log/messages 
Feb 21 08:50:19 server syslog.info syslogd started: BusyBox v1.5.0.svn
Feb 21 08:50:23 server kern.warn kernel: TSC 
Feb 21 08:50:31 server user.notice root: messa
Feb 21 08:51:25 server syslog.info syslogd exiting
server# ls -l /dev/log /var/syslog
lrwxrwxrwx    1 root     root           11 Jan  4  1980 /dev/log -> /var/syslog=
srw-rw-rw-    1 root     root            0 Feb 21 08:50 /var/syslog=

All messages syslog receives are truncated, not the ones it writes itself...

My embedded system runs linux 2.6.19.2 with uClibc 0.9.27.
I have mdev activated in busybox, /dev is a ramfs partition and /var is tmpfs.
I tried with and without CONFIG_FEATURE_IPC_SYSLOG and get the same results

I see the problem with the SVN and 1.4.1 versions but not with 1.2.2.1
With glibc 2.3.6, everything is fine also.

There's been a lot of changes in syslogd recently.
I started looking at the code but so far did not find anything to explain
those short reads from /dev/log.

Any idea?

-- 
Stéphane Billiart                      http://perso.orange.fr/billiart/



More information about the busybox mailing list