retitle 617996 remote syslog broken on kernels without epoll support
severity 617996 normal
thanks

Am 13.03.2011 11:06, schrieb Phil Dibowitz:
> On 03/13/2011 01:51 AM, Michael Biebl wrote:
>>> Ever since the 5.7 upgrade which I installed on 2/20, my rsyslog hasn't been
>>> logging messages from remote sources. This started on the 5.7.4-1 package 
>>> and
>>> has continued with 5.7.4-2, 5.7.5-1, 5.7.6-1, and 5.7.8-1.
>>
>> Just to clarify this: What was the last version that you tested and that 
>> worked
>> for you?
> 
> The machine runs sid and does an 'apt-get update && apt-get upgrade' every
> night. The last version that worked from the dpkg logs was 4.6.4-2.
> 
>> According to the upstream changelog, epoll support in the netstream drivers 
>> was
>> implemented in 5.5.1, the first v5 version shipped in Debian was 5.7.1-1
> 
> That would make sense, sid skipped straight from 4.6.x to 5.7.x, afaict.
> 
> OK, machine just finished rebooting - looks like that fixed it. Thanks!

So, a combination of lenny kernel + wheezy rsyslog is not correctly working,
whereas squeeze kernel + wheezy rsyslog will.
2-releases old kernels are not really supported in Debian, we do our best to
support the kernel from the last release.

That said, it is still a bug, but I downgraded it to normal and retitled it.

Rainer, the epoll usage in rsyslog should apply runtime checks when using epoll
and fall back gracefully. the following was suggested in a similar situation 
[1]:

#if defined(HAVE_EPOLL_CREATE1)
fd = epoll_create1(EPOLL_CLOEXEC);
if (fd < 0 && errno == ENOSYS)
#endif
{
  fd = epoll_create(256);
  if (fd < 0 || fcntl(fd, F_SETFD, fcntl(fd, F_GETFD, 0) | FD_CLOEXEC) < 0)
    return -1;
}
return fd;


Michael

[1] http://lists.debian.org/debian-devel/2011/03/msg00410.html

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to