[Bug 127] New: 3.2.4 ose segfaults during startup
https://bugzilla.balabit.com/show_bug.cgi?id=127 Summary: 3.2.4 ose segfaults during startup Product: syslog-ng Version: 3.2.x Platform: PC OS/Version: Linux Status: NEW Severity: normal Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: balazs.nemeth@balabit.com Type of the Report: bug Estimated Hours: 0.0 This bugreport has been opened from an email came to info@balabit.com. ------------------------ Core was generated by `syslog-ng -d -p /var/run/syslog-ng.pid -e --enable-core -s'. Program terminated with signal 11, Segmentation fault. #0 0x00000031566795d0 in strcmp () from /lib64/libc.so.6 (gdb) bt #0 0x00000031566795d0 in strcmp () from /lib64/libc.so.6 #1 0x00002b71bfe565d5 in cfg_process_flag (handlers=0x2b71c0082230, base=0x228b5f0, flag=0xffffffff <Address 0xffffffff out of bounds>) at cfg-parser.c:249 #2 0x00002b71c04a6ec6 in afsocket_parse (lexer=0x2265440, last_driver=0x7fffe7126608) at afsocket-grammar.y:864 #3 0x00002b71bfe58c67 in cfg_parser_parse (self=0x2b71c06b2760, cfg=<value optimized out>, yylloc=<value optimized out>) at cfg-parser.h:82 #4 plugin_parse_config (self=0x2b71c06b2760, cfg=<value optimized out>, yylloc=<value optimized out>) at plugin.c:124 #5 0x00002b71bfe570ae in main_parse (lexer=0x2265440, dummy=0x7fffe7128a28) at cfg-grammar.y:539 #6 0x00002b71bfe37a01 in cfg_parser_parse (self=0x22649b0, lexer=0x2265440, parser=0x2b71c00829e0, result=0x2269640) at cfg-parser.h:82 #7 cfg_run_parser (self=0x22649b0, lexer=0x2265440, parser=0x2b71c00829e0, result=0x2269640) at cfg.c:376 #8 0x00002b71bfe37b03 in cfg_read_config (self=0x22649b0, fname=0x402bb7 "/etc/syslog-ng/syslog-ng.conf", syntax_only=<value optimized out>, preprocess_into=0x0) at cfg.c:398 #9 0x000000000040220c in initial_init () #10 0x000000000040280c in main () (gdb) quit This causes it: source 32001_udp { udp( port(32001) so_rcvbuf(12000000) flags(no_multi_line) ); }; ------------------ ps.: With the given config line snippet it is easy to reproduce. I have cc'd the original author of the email. I hope he doesn't mind it. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=127 Eric Duda <ericduda@yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ericduda@yahoo.com -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=127 --- Comment #1 from Eric Duda <ericduda@yahoo.com> 2011-06-29 15:01:20 --- I verified this bug happens on CentOS 5.6 x86_64. I complied syslog-ng myself. -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=127 Jose Oliveira <jpo@di.uminho.pt> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jpo@di.uminho.pt --- Comment #2 from Jose Oliveira <jpo@di.uminho.pt> 2011-06-29 16:54:56 --- I wasn't able to duplicate the problem in a 32-bit CentOS 5.6 system. System: CentOS release 5.6 (Final) Kernel: 2.6.18-238.12.1.el5 RPMS: eventlog-0.2.12-1.el5 syslog-ng-3.2.4-0.0.2.el5.1 Configuration file: standard Fedora/EPEL configuration + mentioned source ---------- # /etc/init.d/syslog-ng restart Stopping syslog-ng: [ OK ] Error parsing afsocket, Unknown flag no_multi_line in /etc/syslog-ng/syslog-ng.conf at line 30, column 45: udp( port(32001) so_rcvbuf(12000000) flags(no_multi_line) ); ^^^^^^^^^^^^^ syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng ---------- ---------- # syslog-ng -d -p /var/run/syslog-ng.pid -e --enable-core -s Trying to open module; module='syslogformat', filename='/lib/syslog-ng/libsyslogformat.so' Trying to open module; module='basicfuncs', filename='/lib/syslog-ng/libbasicfuncs.so' Trying to open module; module='afsocket', filename='/lib/syslog-ng/libafsocket.so' Trying to open module; module='affile', filename='/lib/syslog-ng/libaffile.so' Trying to open module; module='afprog', filename='/lib/syslog-ng/libafprog.so' Trying to open module; module='afuser', filename='/lib/syslog-ng/libafuser.so' Trying to open module; module='dbparser', filename='/lib/syslog-ng/libdbparser.so' Trying to open module; module='csvparser', filename='/lib/syslog-ng/libcsvparser.so' Error parsing afsocket, Unknown flag no_multi_line in /etc/syslog-ng/syslog-ng.conf at line 30, column 45: udp( port(32001) so_rcvbuf(12000000) flags(no_multi_line) ); ^^^^^^^^^^^^^ syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng ---------- /jpo -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=127 --- Comment #3 from Jose Oliveira <jpo@di.uminho.pt> 2011-06-29 17:09:26 --- BTW: The correct flag is "no-multi-line". -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=127 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution| |FIXED Status|NEW |RESOLVED --- Comment #4 from Balazs Scheidler <bazsi@balabit.hu> 2011-07-01 17:56:15 --- Thanks, this patch fixes it: commit f54686441496ded775877e33ad2c3e0310861b7b Author: Balazs Scheidler <bazsi@balabit.hu> Date: Fri Jul 1 17:49:51 2011 +0200 logreader flags: fixed segfault on unknown flags Also fixed dash vs. underscore equivalence on reader flags. Reported-By: Eric Duda <ericduda@yahoo.com> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com