Logging to serial console broken?



Hi all,

For quite a while syslogd has been failing to log messages to a
serial console on my CURRENT system. Sometimes the date/time part
of a message appears only, sometimes the first letter of the month
only, but mostly nothing appears on the console, albeit logging to
/var/log/messages is OK. I had used to blame my console null-modem
cable until I tried to restart syslogd. It began to log to the
console OK when restarted.

Can the serial console be in a special state confusing syslogd
during the boot sequence? According to fstat, /dev/console isn't
opened by syslogd until restarted, but syslogd complains of no
errors at the boot time even if put in debug mode. Moreover, it
tells in its debug output it's logging to the console:

%logger -p user.err test_message
%tail syslog.out
logmsg: pri 13, flags 0, from dg, msg Jun 27 14:23:06 yar: test_message
Logging to CONSOLE /dev/console
Logging to FILE /var/log/messages
logmsg: pri 166, flags 17, from dg, msg Jun 27 14:23:06 dg yar: test_message

No such problem seen on the vty console.

Did anybody see anything similar?

--
Yar
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Stopping "Link down - cable problem?" Messages
    ... messages only going to the console and not /var/adm/messages? ... If I run syslogdin debug mode, I see the output (heavily edited for ... all "kern" messages should be logged. ... syslogd: version 1.99 ...
    (SunManagers)
  • Re: serial console oddity
    ... >> see syslogd output to the console get corrupted. ... >> syslogd writes seems to get truncated or otherwise corrupted. ... > This is a longstanding bug in ttymsg(). ... > last close of the console affects the underlying tty. ...
    (freebsd-current)
  • serial console oddity
    ... output to the console and userland writes to /dev/console. ... syslogd writes seems to get truncated or otherwise corrupted. ... the first character of the month, or sometimes just a space, or ... When the syslogd output is being corrupted, I can cat a file to ...
    (freebsd-current)
  • RE: how do I suppress system messages?
    ... System messages print out to the console on tty0 only, ... syslogd, via /etc/rc.conf. ...
    (freebsd-newbies)
  • Re: how do I suppress system messages?
    ... > System messages print out to the console on tty0 only, ... Simply put a # in front, save the file, and restart syslogd by doing ...
    (freebsd-questions)