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-
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 you are<br>welcome to change it and/or distribute copies of it under certain conditions.
<br>Type "show copying" to see the conditions.<br>There is absolutely no warranty for GDB. Type "show warranty" for details.<br>This GDB was configured as "i486-linux-gnu"...<br>Using host libthread_db library "/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
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 affile.c:381<br>No locals.<br>#1 0x08058345 in affile_dd_init (s=0x8098858, cfg=0x8091048, persist=0x8098980) at
affile.c:631<br> self = (AFFileDestDriver *) 0x8098858<br>#2 0x08054a8d in log_dest_group_init (s=0x8098938, cfg=0x8091048, persist=0x8098980) at dgroup.c:50<br> self = (LogDestGroup *) 0x8098938<br> p = (LogDriver *) 0x8098858
<br>#3 0x080550b1 in log_center_init_component (key=0x8098968 "df_syslog-ng", value=0x8098938, self=0x8093000)<br> at center.c:177<br>No locals.<br>#4 0x08061152 in g_hash_table_foreach ()<br>No symbol table info available.
<br>#5 0x08055455 in log_center_init (s=0x8093000, cfg=0x8091048, persist=0x8098980) at center.c:262<br> self = (LogCenter *) 0x8093000<br> i = 2<br> j = 1<br>#6 0x0804c9f9 in cfg_init (cfg=0x8091048, persist=0x8098980) at
cfg.c:212<br> regerr = 438<br>#7 0x0804b5a2 in main (argc=1, argv=0xbfdb0eb4) at main.c:411<br> cfg = (GlobalConfig *) 0x8091048<br> syslog_ng_options = {{name = 0x808198b "cfgfile", has_arg = 1, flag = 0x0, val = 102}, {
<br> name = 0x8081993 "pidfile", has_arg = 1, flag = 0x0, val = 112}, {name = 0x808199b "debug", has_arg = 0,<br> flag = 0x0, val = 100}, {name = 0x80819a1 "syntax-only", has_arg = 0, flag = 0x0, val = 115}, {
<br> name = 0x80819ad "verbose", has_arg = 0, flag = 0x0, val = 118}, {name = 0x80819b5 "foreground", has_arg = 0,<br> flag = 0x0, val = 70}, {name = 0x80819c0 "help", has_arg = 0, flag = 0x0, val = 104}, {
<br> name = 0x808189b "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x80819c5 "chroot", has_arg = 1,<br> flag = 0x0, val = 67}, {name = 0x80819cc "user", has_arg = 1, flag = 0x0, val = 117}, {
<br> name = 0x80819d1 "group", has_arg = 1, flag = 0x0, val = 103}, {name = 0x80819d7 "stderr", has_arg = 0,<br> flag = 0x0, val = 101}, {name = 0x80819de "yydebug", has_arg = 0, flag = 0x0, val = 121}, {name = 0x0,
<br> has_arg = 0, flag = 0x0, val = 0}}<br> syntax_only = 0<br> log_to_stderr = 0<br> persist = (PersistentConfig *) 0x8098980<br> opt = -1<br> rc = -1208502272<br>(gdb) quit<br><br><br>
// Martin<br><br><br><div class="gmail_quote">On Dec 3, 2007 6:12 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 class="Ih2E3d"><br>On Mon, 2007-12-03 at 17:08 +0100, Martin Ervius wrote:<br>> I downloaded a snapshot from:<br>> <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|<br>> 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("<br>> <a href="http://0.0.0.0" target="_blank">
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><br></div>Hmm... I'd appreciatea backtrace using gdb:
<br><br>gdb /opt/syslog-ng-2.0.git/sbin/syslog-ng -c <core file><br>(gdb) bt full<br><br>all assuming that you have debug information.<br><div><div></div><div class="Wj3C7c"><br>--<br>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>