Here is the backtrace, (running under ubuntu 7.10 i386): root@krait[0]syslog-ng-2.0.git# /opt/syslog-ng-2.0.git/sbin/syslog-ng Segmentation fault (core dumped) root@krait[139]syslog-ng-2.0.git# gdb /opt/syslog-ng-2.0.git/sbin/syslog-ng -c core GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1". warning: Can't read pathname for load map: Input/output error. Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done. Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1 Reading symbols from /lib/tls/i686/cmov/librt.so.1...done. Loaded symbols for /lib/tls/i686/cmov/librt.so.1 Reading symbols from /lib/tls/i686/cmov/libc.so.6...done. Loaded symbols for /lib/tls/i686/cmov/libc.so.6 Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done. Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2 Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done. Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2 Core was generated by `/opt/syslog-ng-2.0.git/sbin/syslog-ng'. Program terminated with signal 11, Segmentation fault. #0 0x08057bd5 in affile_dw_set_owner (self=0x0, owner=0x8098858) at affile.c:381 381 if (self->owner) (gdb) bt full #0 0x08057bd5 in affile_dw_set_owner (self=0x0, owner=0x8098858) at affile.c:381 No locals. #1 0x08058345 in affile_dd_init (s=0x8098858, cfg=0x8091048, persist=0x8098980) at affile.c:631 self = (AFFileDestDriver *) 0x8098858 #2 0x08054a8d in log_dest_group_init (s=0x8098938, cfg=0x8091048, persist=0x8098980) at dgroup.c:50 self = (LogDestGroup *) 0x8098938 p = (LogDriver *) 0x8098858 #3 0x080550b1 in log_center_init_component (key=0x8098968 "df_syslog-ng", value=0x8098938, self=0x8093000) at center.c:177 No locals. #4 0x08061152 in g_hash_table_foreach () No symbol table info available. #5 0x08055455 in log_center_init (s=0x8093000, cfg=0x8091048, persist=0x8098980) at center.c:262 self = (LogCenter *) 0x8093000 i = 2 j = 1 #6 0x0804c9f9 in cfg_init (cfg=0x8091048, persist=0x8098980) at cfg.c:212 regerr = 438 #7 0x0804b5a2 in main (argc=1, argv=0xbfdb0eb4) at main.c:411 cfg = (GlobalConfig *) 0x8091048 syslog_ng_options = {{name = 0x808198b "cfgfile", has_arg = 1, flag = 0x0, val = 102}, { name = 0x8081993 "pidfile", has_arg = 1, flag = 0x0, val = 112}, {name = 0x808199b "debug", has_arg = 0, flag = 0x0, val = 100}, {name = 0x80819a1 "syntax-only", has_arg = 0, flag = 0x0, val = 115}, { name = 0x80819ad "verbose", has_arg = 0, flag = 0x0, val = 118}, {name = 0x80819b5 "foreground", has_arg = 0, flag = 0x0, val = 70}, {name = 0x80819c0 "help", has_arg = 0, flag = 0x0, val = 104}, { name = 0x808189b "version", has_arg = 0, flag = 0x0, val = 86}, {name = 0x80819c5 "chroot", has_arg = 1, flag = 0x0, val = 67}, {name = 0x80819cc "user", has_arg = 1, flag = 0x0, val = 117}, { name = 0x80819d1 "group", has_arg = 1, flag = 0x0, val = 103}, {name = 0x80819d7 "stderr", has_arg = 0, flag = 0x0, val = 101}, {name = 0x80819de "yydebug", has_arg = 0, flag = 0x0, val = 121}, {name = 0x0, has_arg = 0, flag = 0x0, val = 0}} syntax_only = 0 log_to_stderr = 0 persist = (PersistentConfig *) 0x8098980 opt = -1 rc = -1208502272 (gdb) quit // Martin On Dec 3, 2007 6:12 PM, Balazs Scheidler <bazsi@balabit.hu> wrote:
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=a33ee30c1e059c.... 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
_______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html