<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="generator" content="Osso Notes">
    <title></title></head>
<body>
<p>I've just merged a branch to add support for huge nvtables.
<br>
<br>It was resting in a separate branch for a while until the upstream sign-off has arrived.
<br>
<br>that maybe the culprit.
<br>
<br>----- Original message -----
<br>&gt; On 04/03/2012 03:38 PM, Peter Czanik wrote:
<br>&gt; &gt; On 04/03/2012 03:20 PM, Gergely Nagy wrote:
<br>&gt; &gt; &gt; thread apply all backtrace
<br>&gt; &gt; fb81# gdb74 -c syslog-ng.core /usr/local/sbin/syslog-ng
<br>&gt; &gt; GNU gdb (GDB) 7.4 [GDB v7.4 for FreeBSD]
<br>&gt; &gt; Copyright (C) 2012 Free Software Foundation, Inc.
<br>&gt; &gt; License GPLv3+: GNU GPL version 3 or later
<br>&gt; &gt; &lt;<a href="http://gnu.org/licenses/gpl.html&gt">http://gnu.org/licenses/gpl.html&gt</a>;
<br>&gt; &gt; This is free software: you are free to change and redistribute it.
<br>&gt; &gt; There is NO WARRANTY, to the extent permitted by law.&nbsp; &#32;Type "show
<br>&gt; &gt; copying" and "show warranty" for details.
<br>&gt; &gt; This GDB was configured as "x86_64-portbld-freebsd8.1".
<br>&gt; &gt; For bug reporting instructions, please see:
<br>&gt; &gt; &lt;<a href="http://www.gnu.org/software/gdb/bugs/&gt">http://www.gnu.org/software/gdb/bugs/&gt</a>;...
<br>&gt; &gt; Reading symbols from /usr/local/sbin/syslog-ng...(no debugging symbols
<br>&gt; &gt; found)...done.
<br>&gt; &gt; [New process 100048]
<br>&gt; &gt; [New Thread 8016041c0 (LWP 100048)]
<br>&gt; &gt; Core was generated by `syslog-ng'.
<br>&gt; &gt; Program terminated with signal 11, Segmentation fault.
<br>&gt; &gt; #0&nbsp; &#32;0x0000000801428b86 in memcpy () from /lib/libc.so.7
<br>&gt; &gt; (gdb) thread apply all backtrace
<br>&gt; &gt; 
<br>&gt; &gt; Thread 1 (Thread 8016041c0 (LWP 100048)):
<br>&gt; &gt; #0&nbsp; &#32;0x0000000801428b86 in memcpy () from /lib/libc.so.7
<br>&gt; &gt; #1&nbsp; &#32;0x0000000800687c28 in nv_table_add_value ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #2&nbsp; &#32;0x0000000800676499 in log_msg_set_value ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #3&nbsp; &#32;0x000000080066f6de in log_src_driver_queue_method ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #4&nbsp; &#32;0x000000080067f7dd in log_source_queue ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #5&nbsp; &#32;0x0000000800668fc2 in afinter_source_post ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #6&nbsp; &#32;0x000000080069e167 in iv_event_run_pending_events ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #7&nbsp; &#32;0x000000080069e514 in iv_event_raw_got_event ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #8&nbsp; &#32;0x000000080069fb2a in iv_main ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #9&nbsp; &#32;0x000000080068532e in main_loop_run ()
<br>&gt; &gt; from /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; &gt; #10 0x00000000004016e2 in main ()
<br>&gt; &gt; (gdb) quit
<br>&gt; &gt; 
<br>&gt; &gt; 
<br>&gt; And compiled with --enable-debug:
<br>&gt; fb81# gdb74 -c syslog-ng.core /usr/local/sbin/syslog-ng
<br>&gt; GNU gdb (GDB) 7.4 [GDB v7.4 for FreeBSD]
<br>&gt; Copyright (C) 2012 Free Software Foundation, Inc.
<br>&gt; License GPLv3+: GNU GPL version 3 or later 
<br>&gt; &lt;<a href="http://gnu.org/licenses/gpl.html&gt">http://gnu.org/licenses/gpl.html&gt</a>;
<br>&gt; This is free software: you are free to change and redistribute it.
<br>&gt; There is NO WARRANTY, to the extent permitted by law.&nbsp; &#32;Type "show
<br>&gt; copying" and "show warranty" for details.
<br>&gt; This GDB was configured as "x86_64-portbld-freebsd8.1".
<br>&gt; For bug reporting instructions, please see:
<br>&gt; &lt;<a href="http://www.gnu.org/software/gdb/bugs/&gt">http://www.gnu.org/software/gdb/bugs/&gt</a>;...
<br>&gt; Reading symbols from /usr/local/sbin/syslog-ng...(no debugging symbols 
<br>&gt; found)...done.
<br>&gt; [New process 100064]
<br>&gt; [New Thread 8016041c0 (LWP 100064)]
<br>&gt; Core was generated by `syslog-ng'.
<br>&gt; Program terminated with signal 11, Segmentation fault.
<br>&gt; #0&nbsp; &#32;0x000000080142fb86 in memcpy () from /lib/libc.so.7
<br>&gt; (gdb) thread apply all backtrace
<br>&gt; 
<br>&gt; Thread 1 (Thread 8016041c0 (LWP 100064)):
<br>&gt; #0&nbsp; &#32;0x000000080142fb86 in memcpy () from /lib/libc.so.7
<br>&gt; #1&nbsp; &#32;0x00000008006884a8 in nv_table_add_value (self=0x803c00000, 
<br>&gt; handle=7, name=0x80161b1c8 "SOURCE", name_len=6, value=0x80161b4c0 
<br>&gt; "s_local",
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;value_len=23133952, new_entry=0x7fffffffe424) at nvtable.c:464
<br>&gt; #2&nbsp; &#32;0x0000000800676809 in log_msg_set_value (self=0x801610500, handle=7, 
<br>&gt; value=0x80161b4c0 "s_local", value_len=23133952) at logmsg.c:450
<br>&gt; #3&nbsp; &#32;0x000000080066fa4e in log_src_driver_queue_method (s=0x80160b800, 
<br>&gt; msg=0x801610500, path_options=0x7fffffffe4a0, user_data=&lt;optimized out&gt;)
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;at driver.c:161
<br>&gt; #4&nbsp; &#32;0x000000080067fedd in log_pipe_queue (path_options=&lt;optimized out&gt;, 
<br>&gt; msg=&lt;optimized out&gt;, s=&lt;optimized out&gt;) at logpipe.h:304
<br>&gt; #5&nbsp; &#32;log_pipe_forward_msg (path_options=&lt;optimized out&gt;, msg=&lt;optimized 
<br>&gt; out&gt;, self=&lt;optimized out&gt;) at logpipe.h:290
<br>&gt; #6&nbsp; &#32;log_source_queue (s=0x80160ff00, msg=0x801610500, 
<br>&gt; path_options=&lt;optimized out&gt;, user_data=&lt;optimized out&gt;) at
<br>&gt; logsource.c:290 #7&nbsp; &#32;0x0000000800669332 in log_pipe_queue
<br>&gt; (path_options=&lt;optimized out&gt;,&nbsp; &#32;msg=&lt;optimized out&gt;, s=&lt;optimized out&gt;)
<br>&gt; at logpipe.h:304 #8&nbsp; &#32;afinter_source_post (s=&lt;optimized out&gt;) at
<br>&gt; afinter.c:115 #9&nbsp; &#32;0x00000008006a3297 in iv_event_run_pending_events ()
<br>&gt; from&nbsp; &#32;/usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; #10 0x00000008006a3644 in iv_event_raw_got_event () from 
<br>&gt; /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; #11 0x00000008006a4c5a in iv_main () from 
<br>&gt; /usr/local/lib/libsyslog-ng-3.4.0alpha1.so
<br>&gt; #12 0x0000000800685bae in main_loop_run () at mainloop.c:731
<br>&gt; #13 0x0000000000401722 in main ()
<br>&gt; 
<br>&gt; The config is quite simple:
<br>&gt; 
<br>&gt; fb81# cat /usr/local/etc/syslog-ng.conf
<br>&gt; #############################################################################
<br>&gt; # Default syslog-ng.conf file which collects all local logs into a
<br>&gt; # single file called /var/log/messages.
<br>&gt; #
<br>&gt; 
<br>&gt; @version: 3.4
<br>&gt; @include "scl.conf"
<br>&gt; 
<br>&gt; source s_local {
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;system();
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;internal();
<br>&gt; };
<br>&gt; 
<br>&gt; source s_network {
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;udp();
<br>&gt; };
<br>&gt; 
<br>&gt; destination d_local {
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;file("/var/log/messages");
<br>&gt; };
<br>&gt; 
<br>&gt; log {
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;source(s_local);
<br>&gt; 
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;# uncomment this line to open port 514 to receive messages
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;#source(s_network);
<br>&gt;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#32;destination(d_local);
<br>&gt; };
<br>&gt; 
<br>&gt; 
<br>&gt; Bye,
<br>&gt; 
<br>&gt; -- 
<br>&gt; Peter Czanik (CzP)&lt;<a href="mailto:czanik@balabit.hu">czanik@balabit.hu</a>&gt;
<br>&gt; BalaBit IT Security / syslog-ng upstream
<br>&gt; <a href="http://czanik.blogs.balabit.com/">http://czanik.blogs.balabit.com/</a>
<br>&gt; 
<br>&gt; 
<br>&gt; ______________________________________________________________________________
<br>&gt; Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a>
<br>&gt; Documentation:
<br>&gt; <a href="http://www.balabit.com/support/documentation/?product=syslog-ng">http://www.balabit.com/support/documentation/?product=syslog-ng</a> FAQ:
<br>&gt; <a href="http://www.balabit.com/wiki/syslog-ng-faq">http://www.balabit.com/wiki/syslog-ng-faq</a>
<br>&gt; 
<br><br></p>
</body>
</html>