Udev occasionally does not write log priority change messages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
udev (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
"udevadm control --log-priority=XXX" normally causes udevd to write a message to syslog indicating it has received SET_LOG_PRIORITY message and the resulting (and now current) log priority.
I expect udevd to consistently write notification messages, but occasionally it does not. Aside, I am uncertain if it has actually changed priority in the cases when it fails to write the notification messages. Often, when udevd drops the log change messages, it seems to be also dropping other event messages. So I suspect the failure to write messages might not be unique to the SET_LOG_PRIORITY message type.
strace shows udevd has received the signal, but not written the message: after receiving some messages, it does not call the time() or send() syscalls.
I suspected udevd might be *not* writing messages when the "new" priority is the same as the current priority, e.g. "udevadm control --log-priority=
Note, I have disabled rsyslogd's buffered logging ($RepeatedMsgRe
I have attached output of several invocations of udevdadm, the log messages written by udevd and corresponding strace output; with timestamps and comments.
(ubuntu) ~ lsb_release -rd
Description: Ubuntu 12.04.2 LTS
Release: 12.04
(ubuntu) ~ apt-cache policy udev
udev:
Installed: 175-0ubuntu9.4
Candidate: 175-0ubuntu9.4
Version table:
*** 175-0ubuntu9.4 0
500 http://
100 /var/lib/
175-0ubuntu9 0
500 http://