Loè, thanks for your advice. On Thu, 9 Sep 2004 09:47:06 +0200 Subject: Re: [syslog-ng]Syslog-ng 1.6.5/libol 0.3.14 core dump on FreeBSD 4.x Loè Minier <lool+syslog@via.ecp.fr> wrote:
Single stepping until exit from function c_vformat_length, which has no line number information.
I think you can get a backtrace with "bt", and get the line number informations with "CFLAGS=-g make" instead of make.
Makefile has "-g" already. % cat Makefile | grep CFLAGS CFLAGS = -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE i'm not familier with gdb 8-( i try to run gdb again. ...[snip]... (gdb) run Starting program: /usr/local/src/syslog-ng-1.6.5/src/./syslog-ng Program received signal SIGSEGV, Segmentation fault. 0x805358c in c_vformat_length () (gdb) bt #0 0x805358c in c_vformat_length () #1 0x805579a in msg_vformat () #2 0x8055819 in werror () #3 0x804dc32 in yyparse () at cfg-grammar.y:725 #4 0x804cb0d in make_syslog_config ( name=0x805dda0 "/usr/local/etc/syslog-ng/syslog-ng.conf", backend=0x8062000) at cfgfile.c:335 #5 0x804a2dc in main (argc=1, argv=0xbfbffb9c) at main.c:477 (gdb) next Single stepping until exit from function c_vformat_length, which has no line number information. Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. (gdb) quit # -- Musashino-shi, Tokyo, Japan K12LTSP in Japanese ; http://open-mitch.dyndns.org/k12ltsp/ http://open-mitch.dyndns.org/software/MISC/