[syslog-ng] smtp on FreeBSD

Balazs Scheidler bazsi77 at gmail.com
Tue Apr 3 22:13:55 CEST 2012


I've just merged a branch to add support for huge nvtables.

It was resting in a separate branch for a while until the upstream sign-off has arrived.

that maybe the culprit.

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120403/e7e13e12/attachment-0001.htm 


More information about the syslog-ng mailing list