JRuby

Syslog messes up with ident

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: JRuby 1.1.4
  • Fix Version/s: JRuby 1.1.5
  • Component/s: None
  • Labels:
    None
  • Environment:
    Debian etch, x86, Sun Java 1.6, Ruby 1.8.7, JRuby 1.1.4 with this minor patch http://svn.jruby.codehaus.org/rdiff/jruby?csid=7613 (I had figured this out independently ;-) )
  • Number of attachments :
    0

Description

I am using a syslog instance, created like this:

syslog = Syslog.open('myrep', Syslog::LOG_PID, Syslog::LOG_MAIL)

At apparently random intervals, syslog messes up with ident (first arg to #open) when writing log messages. This is a sample:

Sep 24 16:38:36 erebor myrep[25186]: MyRep Daemon
Sep 24 16:38:36 erebor myrep[25186]: Configuration: verbose = true / threshold = 0.0
Sep 24 16:39:00 erebor \237Çë- \220õÁ- [25186]: Entered attribute 1
Sep 24 16:39:00 erebor \237Çë- \220õÁ- [25186]: Entered attribute 2
....
Sep 24 17:11:09 erebor Èmݵ^A[25186]: Entered attribute 1349
Sep 24 17:11:09 erebor Èmݵ^A[25186]: Entered attribute 1350
Sep 24 17:11:09 erebor Èmݵ^A[25186]: Entered attribute 1351

The pid is still the same (since it keeps running), but the ident (myrep) was changed to some non-printable string at 16:39... then again at 17:11.

It seems unrelated to the priority I use, and it can happen anytime, even at the first log message.

Activity

Hide
Wayne Meissner added a comment -

Fixed in r7781.

Show
Wayne Meissner added a comment - Fixed in r7781.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: