[syslog-ng] syslog-ng-2.1beta2 core dump on NetBSD 3.0

Balazs Scheidler bazsi at balabit.hu
Sun Jul 20 20:38:22 CEST 2008


On Thu, 2008-07-17 at 14:45 -0400, Ed Ravin wrote:
> Using syslog-ng-2.1beta2-snapshot-20080701 on NetBSD 3.0.  Left it running
> on a host that doesn't do much, and after a few hours we got a core dump:
> 
> Program terminated with signal 11, Segmentation fault.
> #0  0xbbb4b2ca in evt_rec_add_tag (e=0x8084140, tag=0x0) at evtrec.c:48
> 
> (gdb) bt
> #0  0xbbb4b2ca in evt_rec_add_tag (e=0x8084140, tag=0x0) at evtrec.c:48
> #1  0x0805867a in stats_generate_log () at stats.c:229
> #2  0x0804b44f in stats_timer (st=0x0) at main.c:131
> #3  0xbbb7f423 in g_main_context_is_owner ()
>    from /usr/local/lib/libglib-2.0.so.1200
> #4  0xbbb7cea3 in g_source_is_destroyed ()
>    from /usr/local/lib/libglib-2.0.so.1200
> #5  0xbbb7dead in g_main_context_dispatch ()
>    from /usr/local/lib/libglib-2.0.so.1200
> #6  0xbbb7e1d2 in g_main_context_dispatch ()
>    from /usr/local/lib/libglib-2.0.so.1200
> #7  0xbbb7e400 in g_main_context_iteration ()
>    from /usr/local/lib/libglib-2.0.so.1200
> #8  0x0804b556 in main_loop_run (cfg=0xbfbfed44) at main.c:159
> #9  0x0804bb1c in main (argc=5, argv=0xbfbfeeb4) at main.c:428

Thanks for the report. This patch should fix the issue:

commit 49416f5e605cc8778ed5ba0c2ec5945198e763e8
Author: Balazs Scheidler <bazsi at balabit.hu>
Date:   Sun Jul 20 20:37:09 2008 +0200

    added "suppressed" type to stats_generate_log()

diff --git a/src/stats.c b/src/stats.c
index 69f9f51..0db46df 100644
--- a/src/stats.c
+++ b/src/stats.c
@@ -217,6 +217,7 @@ stats_generate_log(void)
   {
     /* [SC_TYPE_DROPPED]   = */ "dropped",
     /* [SC_TYPE_PROCESSED] = */ "processed",
+    /* [SC_TYPE_SUPPRESSED] = */ "suppressed"
   };
   
   e = msg_event_create(EVT_PRI_INFO, "Log statistics", NULL);


-- 
Bazsi




More information about the syslog-ng mailing list