[root@catamount ~]# /usr/bin/valgrind --leak-check=full /usr/local/sbin/syslog-ng --cfgfile=/usr/local/etc/syslog-ng/syslog-ng.erempel.conf --persist-file=/var/local/syslog-ng.erempel.persist --pidfile=/var/run/syslog-ng.erempel.pid --foreground ==19487== Memcheck, a memory error detector ==19487== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==19487== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==19487== Command: /usr/local/sbin/syslog-ng --cfgfile=/usr/local/etc/syslog-ng/syslog-ng.erempel.conf --persist-file=/var/local/syslog-ng.erempel.persist --pidfile=/var/run/syslog-ng.erempel.pid --foreground ==19487== syslog-ng: Error setting file number limit; limit='4096'; error='Operation not permitted' ==19487== Syscall param epoll_ctl(event) points to uninitialised byte(s) ==19487== at 0x64F3ECA: epoll_ctl (in /lib64/libc-2.12.so) ==19487== by 0x4E7F8FF: iv_epoll_pollable (iv_method_epoll.c:153) ==19487== by 0x4E6356B: log_writer_start_watches (logwriter.c:426) ==19487== by 0x4E62CFD: log_writer_reopen (logwriter.c:1229) ==19487== by 0x6DC25FD: afprogram_dd_reopen (afprog.c:280) ==19487== by 0x4E5096A: log_dest_group_init (logpipe.h:239) ==19487== by 0x4E4C166: log_center_init (logpipe.h:239) ==19487== by 0x4E4D3EF: cfg_init (cfg.c:255) ==19487== by 0x4E664BC: main_loop_init (mainloop.c:481) ==19487== by 0x401584: main (in /usr/local/sbin/syslog-ng) ==19487== Address 0x7ff000128 is on thread 1's stack ==19487== ^C==19487== Invalid read of size 8 ==19487== at 0x4E51A81: log_dest_driver_deinit_method (driver.c:172) ==19487== by 0x6DC284C: afprogram_dd_deinit (afprog.c:344) ==19487== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19487== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19487== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19487== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19487== by 0x4E7F417: iv_main (iv_main.c:252) ==19487== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19487== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19487== Address 0x684a928 is 8 bytes inside a block of size 24 free'd ==19487== at 0x4C2695D: free (vg_replace_malloc.c:366) ==19487== by 0x590EFDF: g_list_remove (in /lib64/libglib-2.0.so.0.2200.5) ==19487== by 0x4E51A5F: log_dest_driver_deinit_method (driver.h:190) ==19487== by 0x6DC284C: afprogram_dd_deinit (afprog.c:344) ==19487== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19487== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19487== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19487== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19487== by 0x4E7F417: iv_main (iv_main.c:252) ==19487== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19487== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19487== ==19487== Invalid read of size 8 ==19487== at 0x4E51A81: log_dest_driver_deinit_method (driver.c:172) ==19487== by 0x6FD07DA: afsocket_dd_deinit (afsocket.c:1221) ==19487== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19487== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19487== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19487== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19487== by 0x4E7F417: iv_main (iv_main.c:252) ==19487== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19487== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19487== Address 0x684f358 is 8 bytes inside a block of size 24 free'd ==19487== at 0x4C2695D: free (vg_replace_malloc.c:366) ==19487== by 0x590EFDF: g_list_remove (in /lib64/libglib-2.0.so.0.2200.5) ==19487== by 0x4E51A5F: log_dest_driver_deinit_method (driver.h:190) ==19487== by 0x6FD07DA: afsocket_dd_deinit (afsocket.c:1221) ==19487== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19487== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19487== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19487== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19487== by 0x4E7F417: iv_main (iv_main.c:252) ==19487== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19487== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19487== ==19487== ==19487== HEAP SUMMARY: ==19487== in use at exit: 169,334 bytes in 3,407 blocks ==19487== total heap usage: 226,539 allocs, 223,132 frees, 178,250,594 bytes allocated ==19487== ==19487== 13 bytes in 1 blocks are definitely lost in loss record 11 of 604 ==19487== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==19487== by 0x59197D2: g_malloc (in /lib64/libglib-2.0.so.0.2200.5) ==19487== by 0x5930FCD: g_strdup (in /lib64/libglib-2.0.so.0.2200.5) ==19487== by 0x4E6E999: log_tags_init (tags.c:162) ==19487== by 0x4E4B721: app_startup (apphook.c:120) ==19487== by 0x4E663AE: main_loop_init (mainloop.c:663) ==19487== by 0x401584: main (in /usr/local/sbin/syslog-ng) ==19487== ==19487== 2,007 (184 direct, 1,823 indirect) bytes in 1 blocks are definitely lost in loss record 589 of 604 ==19487== at 0x4C26FDE: malloc (vg_replace_malloc.c:236) ==19487== by 0x59197D2: g_malloc (in /lib64/libglib-2.0.so.0.2200.5) ==19487== by 0x4E544AF: g_process_set_argv_space (gprocess.c:500) ==19487== by 0x40148C: main (in /usr/local/sbin/syslog-ng) ==19487== ==19487== LEAK SUMMARY: ==19487== definitely lost: 197 bytes in 2 blocks ==19487== indirectly lost: 1,823 bytes in 22 blocks ==19487== possibly lost: 0 bytes in 0 blocks ==19487== still reachable: 167,314 bytes in 3,383 blocks ==19487== suppressed: 0 bytes in 0 blocks ==19487== Reachable blocks (those to which a pointer was found) are not shown. ==19487== To see them, rerun with: --leak-check=full --show-reachable=yes ==19487== ==19487== For counts of detected and suppressed errors, rerun with: -v ==19487== Use --track-origins=yes to see where uninitialised values come from ==19487== ERROR SUMMARY: 6 errors from 5 contexts (suppressed: 66 from 9)