Issue Details (XML | Word | Printable)

Key: JRUBY-3013
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Thomas E Enebo
Reporter: Pablo Lorenzzoni
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JRuby

Syslog messes up with ident

Created: 24/Sep/08 03:59 PM   Updated: 12/Jan/09 04:28 PM
Component/s: None
Affects Version/s: JRuby 1.1.4
Fix Version/s: JRuby 1.1.5

Time Tracking:
Not Specified

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 ;-) )


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Wayne Meissner added a comment - 24/Sep/08 07:49 PM
Fixed in r7781.