[syslog-ng] [Bug 278] Many memory leak problems happen when do configuration reloading

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Wed Apr 23 09:19:24 CEST 2014


https://bugzilla.balabit.com/show_bug.cgi?id=278


Xufeng Zhang <xufeng.zhang at windriver.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical




--- Comment #7 from Xufeng Zhang <xufeng.zhang at windriver.com>  2014-04-23 09:19:23 ---
Hello,

Does anybody know how to fix below kind of memory leak?
it could be triggered by append below config line:
=======================================================================
rewrite r_host_1 { set("10.15.15.2", value("HOST")); };
rewrite r_program_1 { set("xxx", value("PROGRAM")); };
destination d_1 { udp("10.15.15.4" port(514) localip("10.15.15.2") template("$MSG\n") flags(syslog-protocol) frac_digits(3) log_fifo_size(1000)); };
log { source(s_to_remote); rewrite(r_host_1); rewrite(r_program_1); filter(f_level_7); destination(d_1); }; 
=======================================================================

==25796== 20 bytes in 2 blocks are definitely lost in loss record 17 of 622
==25796==    at 0x4A05F58: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==25796==    by 0x3B6FA7C6B1: strdup (strdup.c:43)
==25796==    by 0x3B74E4D082: _cfg_lexer_lex (cfg-lex.l:205)
==25796==    by 0x3B74E293A1: cfg_lexer_lex (cfg-lexer.c:759)
==25796==    by 0x3B74E5C7A6: rewrite_expr_parse (rewrite-expr-grammar.c:2824)
==25796==    by 0x3B74E4EDD2: T.102 (cfg-parser.h:83)
==25796==    by 0x3B74E5016D: main_parse (cfg-grammar.y:606)
==25796==    by 0x3B74E26DC2: cfg_run_parser (cfg-parser.h:83)
==25796==    by 0x3B74E26ED5: cfg_read_config (cfg.c:382)
==25796==    by 0x3B74E3E4CE: main_loop_init (mainloop.c:729)
==25796==    by 0x401774: main (main.c:246)
==25796== 40 bytes in 4 blocks are definitely lost in loss record 514 of 622
==25796==    at 0x4A05F58: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==25796==    by 0x3B6FA7C6B1: strdup (strdup.c:43)
==25796==    by 0x3B74E4D082: _cfg_lexer_lex (cfg-lex.l:205)
==25796==    by 0x3B74E293A1: cfg_lexer_lex (cfg-lexer.c:759)
==25796==    by 0x3B74E5C7A6: rewrite_expr_parse (rewrite-expr-grammar.c:2824)
==25796==    by 0x3B74E4EDD2: T.102 (cfg-parser.h:83)
==25796==    by 0x3B74E5016D: main_parse (cfg-grammar.y:606)
==25796==    by 0x3B74E26DC2: cfg_run_parser (cfg-parser.h:83)
==25796==    by 0x3B74E26ED5: cfg_read_config (cfg.c:382)
==25796==    by 0x3B74E3DB85: main_loop_reload_config_initiate (mainloop.c:611)
==25796==    by 0x3B74E6457A: iv_signal_event (iv_signal.c:170)
==25796==    by 0x3B74E62FC8: iv_event_raw_got_event (iv_event_raw_posix.c:89)


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list