rsyslog hangs loading modules
We have rsyslog configured to listen for forwarded logs on TCP and UDP, and to forward logs on to a central log host. On a number of occasions we have observed rsyslog in a hung state on our production machines -- not fowarding logs and not writing them to disk locally. It doesn't happen all the time, so I believe there's some sort of race condition involved.
I've attached a stack trace taken when the process was hung. I believe the issue is the same as the one discussed here: http://
while [ 1 ]; do
service rsyslog stop
killall -9 rsyslogd > /dev/null 2>&1
service rsyslog start
if grep $nonce /var/log/hourly/* > /dev/null; then
echo found nonce $nonce
This is a fix for a deadlock issue it is pretty difficult to determine if fixing a race condition would impact anything else, however, testing from the community hasn't raised any concerns.
Ubuntu 12.04.1 LTS x86_64
Here is the (obscured) section of our rsyslog config that I believe is causing the issue.