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&#39;s the last part of strace when i run it:<br><br>open(&quot;/opt/syslog-
ng-2.0.git/var/syslog-ng.persist&quot;, 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)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0x2 (flags O_RDWR)<br>fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)&nbsp; = 0
<br>fcntl64(3, F_GETFD)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>fcntl64(3, F_SETFD, FD_CLOEXEC)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 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(&quot;
<a href="http://0.0.0.0">0.0.0.0</a>&quot;)}, 16) = 0<br>listen(3, 255)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0<br>setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [0], 4) = 0<br>--- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>kill(31071, SIGSEGV)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0
<br>sigreturn()&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ? (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 &amp;&amp; make install<br><br>// Martin<br><br><br><br>----------------------------------------------------------------------------------------------------------------------------<br><div class="gmail_quote">On Dec 1, 2007 5:15 PM, Balazs Scheidler &lt;
<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>&gt; 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&#39;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&#39;ve also<br>checked for two cases of possible memory leaks, and syslog-ng freed what<br>it had to free.<br><br>I&#39;d appreciate some additional testing. If there&#39;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&#39;ve also pushed it to<br><a href="http://git.balabit.hu/" target="_blank">git.balabit.hu</a>, &quot;remember-dw-file&quot; branch.
<br><br><br></div><br>