I had done a 'make clean' before, but I think I found the problem when looking through the config parameters.<br><br>Instead of my config file, I used the example one and it didn't segfault. I narrowed it down to the 'destination' parameters which seem to need a variable like ($HOST or $FACILITY) in the destination file (havent tried this version with other destinations than files).
<br><br>In my config I had destination path names like '/var/log/tcp.log'. When I changed that to '/var/log/$HOST_tcp.log' it didn't die anymore. Can you reproduce this behaviour? Apparently It doesn't matter where a variable is present on each line, but it needs one on every destination.
<br><br>I proceeded with testing the SIGHUP problem and as far as I can see your patch works perfectly. I tested as I had done before and there was no loss of logs. I even stress tested a bit by sending 10 HUP's per second while syslog-ng received five million rows (@25000 rows/sec) from another server. Everything still worked fine :)
<br><br>Thanks for your help on this!<br><br><br>// Martin<br><br><br><div class="gmail_quote">On Dec 3, 2007 7:09 PM, Balazs Scheidler <<a href="mailto:bazsi@balabit.hu">bazsi@balabit.hu</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="Wj3C7c"><br>On Mon, 2007-12-03 at 18:58 +0100, Martin Ervius wrote:<br>> Here is the backtrace, (running under ubuntu 7.10 i386):<br>><br>> root@krait[0]syslog-ng-2.0.git# /opt/syslog-
ng-2.0.git/sbin/syslog-ng<br>> Segmentation fault (core dumped)<br>> root@krait[139]syslog-ng-2.0.git# gdb /opt/syslog-<br>> ng-2.0.git/sbin/syslog-ng -c core<br>> GNU gdb 6.6-debian<br>> Copyright (C) 2006 Free Software Foundation, Inc.
<br>> GDB is free software, covered by the GNU General Public License, and<br>> you are<br>> welcome to change it and/or distribute copies of it under certain<br>> conditions.<br>> Type "show copying" to see the conditions.
<br>> There is absolutely no warranty for GDB. Type "show warranty" for<br>> details.<br>> This GDB was configured as "i486-linux-gnu"...<br>> Using host libthread_db library<br>> "/lib/tls/i686/cmov/libthread_db.so.1".
<br>><br>> warning: Can't read pathname for load map: Input/output error.<br>> Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.<br>> Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1<br>> Reading symbols from /lib/tls/i686/cmov/librt.so.1...done.
<br>> Loaded symbols for /lib/tls/i686/cmov/librt.so.1<br>> Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.<br>> Loaded symbols for /lib/tls/i686/cmov/libc.so.6<br>> Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
<br>> Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0<br>> Reading symbols from /lib/ld-linux.so.2...done.<br>> Loaded symbols for /lib/ld-linux.so.2<br>> Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done.
<br>> Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2<br>> Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done.<br>> Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2<br>> Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
<br>> Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2<br>> Core was generated by `/opt/syslog-ng-2.0.git/sbin/syslog-ng'.<br>> Program terminated with signal 11, Segmentation fault.<br>> #0 0x08057bd5 in affile_dw_set_owner (self=0x0, owner=0x8098858) at
<br>> affile.c:381<br>> 381 if (self->owner)<br>> (gdb) bt full<br>> #0 0x08057bd5 in affile_dw_set_owner (self=0x0, owner=0x8098858) at<br>> affile.c:381<br>> No locals.<br><br></div></div>Hmm... I encountered a similar error in my tree when I forgot to "make
<br>clean" before recompiling. Can you check if you do a make clean and then<br>recompile the above problem goes away?<br><br>I also have Ubuntu 7.10 installed and it works for me:<br><br>bazsi@bzorp:~/zwa/work/syslog-
ng-2.0/syslog-ng$ git-rev-list --max-count=1 HEAD<br>a33ee30c1e059c1c6dc9839047379f3f3a8dfa4d<br>bazsi@bzorp:~/.zwa/install/syslog-ng-2.0$ sbin/syslog-ng -Fedvf etc/syslog-ng.conf<br>Connection failed; error='No such file or directory (2)'
<br>Initiating connection failed, reconnecting; time_reopen='5'<br>syslog-ng starting up; version='2.0.6'<br>Termination requested via signal, terminating;<br>syslog-ng shutting down; version='2.0.6'
<br>Closing log reader fd; fd='7'<br>Error saving persistent configuration file; name='/home/bazsi/zwa/install/syslog-ng-2.0/var/syslog-ng.persist'<br>Closing log reader fd; fd='5'<br>Closing log reader fd; fd='4'
<br><font color="#888888"><br><br>--<br></font><div><div></div><div class="Wj3C7c">Bazsi<br><br>_______________________________________________<br>syslog-ng maillist - <a href="mailto:syslog-ng@lists.balabit.hu">syslog-ng@lists.balabit.hu
</a><br><a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>Frequently asked questions at <a href="http://www.campin.net/syslog-ng/faq.html" target="_blank">
http://www.campin.net/syslog-ng/faq.html</a><br><br></div></div></blockquote></div><br>