I downloaded a snapshot from: <a href="http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=snapshot;h=a33ee30c1e059c1c6dc9839047379f3f3a8dfa4d" target="_blank">http://git.balabit.hu/?p=bazsi/syslog-ng-2.0.git;a=snapshot;h=a33ee30c1e059c1c6dc9839047379f3f3a8dfa4d
</a>. 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. <br><br>Here's the last part of strace when i run it:<br><br>open("/opt/syslog-
ng-2.0.git/var/syslog-ng.persist", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)<br>socket(PF_INET, SOCK_STREAM, IPPROTO_IP) = 3<br>fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)<br>fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
<br>fcntl64(3, F_GETFD) = 0<br>fcntl64(3, F_SETFD, FD_CLOEXEC) = 0<br>setsockopt(3, SOL_SOCKET, SO_REUSEADDR, [1], 4) = 0<br>bind(3, {sa_family=AF_INET, sin_port=htons(514), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0<br>listen(3, 255) = 0<br>setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [0], 4) = 0<br>--- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>kill(31071, SIGSEGV) = 0
<br>sigreturn() = ? (mask now [])<br>--- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>+++ killed by SIGSEGV +++<br>Process 31071 detached<br><br>The new 2.0.6 release runs fine on the same machine, but I may have done something wrong when I built the snapshot? To compile, I manually copied
<a href="http://config.h.in">config.h.in</a>, configure and install-sh from the 2.0.6 release to the base of the snapshot tree. After that, I ran:<br>$ aclocal<br>$ automake --add-missing<br>$ ./configure --prefix=/opt/syslog-
ng-2.0.git && make install<br><br>// Martin<br><br><br><br>----------------------------------------------------------------------------------------------------------------------------<br><div class="gmail_quote">On Dec 1, 2007 5:15 PM, Balazs Scheidler <
<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>> wrote:<br><br>Thanks for the detailed explanation. I indeed forgot to save and restore<br>some data buffers accross reloads. The patch is risky somewhat, so I did
<br>not apply it to the mainline yet.<br><br>I performed some limited testing on my development laptop, I've made<br>syslog-ng delay output on destination files, sent a couple of messages<br>to it, sent a SIGHUP, some more messages, and it seems to write all
<br>buffered messages to the configured destination nicely. I've also<br>checked for two cases of possible memory leaks, and syslog-ng freed what<br>it had to free.<br><br>I'd appreciate some additional testing. If there's an ACK from you, I
<br>apply the patch to mainline, where it can sit till the next release.<br><br>The patch is attached to this mail, but I've also pushed it to<br><a href="http://git.balabit.hu/" target="_blank">git.balabit.hu</a>, "remember-dw-file" branch.
<br><br><br></div><br>