[syslog-ng]Syslog-ng 1.6.5/libol 0.3.14 core dump on FreeBSD 4.x

michihito matsubara syslog-ng@lists.balabit.hu
Thu, 09 Sep 2004 18:29:08 +0900


Lo=E8=83, 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=E8=83 Minier <lool+syslog@via.ecp.fr> wrote:

> > Single stepping until exit from function c_vformat_length,
> > which has no line number information.
>=20
>  I think you can get a backtrace with "bt", and get the line number
>  informations with "CFLAGS=3D-g make" instead of make.

Makefile has "-g" already.

% cat Makefile | grep CFLAGS
CFLAGS =3D -g -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE

i'm not familier with gdb 8-(
i try to run gdb again.


=2E..[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=3D0x805dda0 "/usr/local/etc/syslog-ng/syslog-ng.conf", backend=3D0=
x8062000)
    at cfgfile.c:335
#5  0x804a2dc in main (argc=3D1, argv=3D0xbfbffb9c) 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
#


--=20
Musashino-shi, Tokyo, Japan
K12LTSP in Japanese ; http://open-mitch.dyndns.org/k12ltsp/
                      http://open-mitch.dyndns.org/software/MISC/