[syslog-ng]syslog-ng dies after HUP on NetBSD 1.5.x
Ed Ravin
eravin@panix.com
Mon, 19 Nov 2001 22:23:51 -0500 (EST)
Arnold Pulleman writes:
>
> Because of the template feature I want to use syslog-ng 1.5 on
> a FreeBSD 4.2 and 4.3 platform. While testing 1.5.13 I found a
> problem when sending a hangup signal to syslog-ng. The restart
> message is shown but nothing follows until syslog-ng is stopped
On my NetBSD 1.5.x box, it's even worse - syslog-ng 1.5.13 dumps core
when it gets HUP'd, due to this assertion:
assertion "s->ref" failed: file "center.c", line 129
The core file helpfully has a message on the stack saying it couldn't
open /dev/klog, device busy, and I confirmed with ktrace that syslog-ng
is closing its other sources in my config file, but not the
file("/dev/klog") source.
When I take the file("/dev/klog") source out of the config, it doesn't
crash anymore. A bug in the class for file() ?
Balazs, let me know if you need any more diagnostics.