[syslog-ng] missing logs when SIGHUP

Balazs Scheidler bazsi at balabit.hu
Mon Dec 3 18:12:09 CET 2007


On Mon, 2007-12-03 at 17:08 +0100, Martin Ervius wrote:
> I downloaded a snapshot from:
> http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=snapshot;h=a33ee30c1e059c1c6dc9839047379f3f3a8dfa4d. It compiled ok, but gets a segmentation fault when initializing (it can display version and help info), but if I run with my cfg file it dies. 
> 
> Here's the last part of strace when i run it:
> 
> open("/opt/syslog- ng-2.0.git/var/syslog-ng.persist", O_RDONLY|
> O_LARGEFILE) = -1 ENOENT (No such file or directory)
> socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3
> fcntl64(3, F_GETFL)                     = 0x2 (flags O_RDWR)
> fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0 
> fcntl64(3, F_GETFD)                     = 0
> fcntl64(3, F_SETFD, FD_CLOEXEC)         = 0
> setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0
> bind(3, {sa_family=AF_INET, sin_port=htons(514), sin_addr=inet_addr("
> 0.0.0.0")}, 16) = 0
> listen(3, 255)                          = 0
> setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [0], 4) = 0
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> kill(31071, SIGSEGV)                    = 0 
> sigreturn()                             = ? (mask now [])
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Process 31071 detached
> 

Hmm... I'd appreciatea backtrace using gdb:

gdb /opt/syslog-ng-2.0.git/sbin/syslog-ng -c <core file>
(gdb) bt full

all assuming that you have debug information.

-- 
Bazsi



More information about the syslog-ng mailing list