[root@catamount ~]# G_SLICE=always-malloc [root@catamount ~]# export G_SLICE [root@catamount ~]# /usr/bin/valgrind /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 ==19346== Memcheck, a memory error detector ==19346== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. ==19346== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info ==19346== 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 ==19346== syslog-ng: Error setting file number limit; limit='4096'; error='Operation not permitted' ==19346== Syscall param epoll_ctl(event) points to uninitialised byte(s) ==19346== at 0x64F3ECA: epoll_ctl (in /lib64/libc-2.12.so) ==19346== by 0x4E7F8FF: iv_epoll_pollable (iv_method_epoll.c:153) ==19346== by 0x4E6356B: log_writer_start_watches (logwriter.c:426) ==19346== by 0x4E62CFD: log_writer_reopen (logwriter.c:1229) ==19346== by 0x6DC25FD: afprogram_dd_reopen (afprog.c:280) ==19346== by 0x4E5096A: log_dest_group_init (logpipe.h:239) ==19346== by 0x4E4C166: log_center_init (logpipe.h:239) ==19346== by 0x4E4D3EF: cfg_init (cfg.c:255) ==19346== by 0x4E664BC: main_loop_init (mainloop.c:481) ==19346== by 0x401584: main (in /usr/local/sbin/syslog-ng) ==19346== Address 0x7ff000128 is on thread 1's stack ==19346== ^C==19346== Invalid read of size 8 ==19346== at 0x4E51A81: log_dest_driver_deinit_method (driver.c:172) ==19346== by 0x6DC284C: afprogram_dd_deinit (afprog.c:344) ==19346== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19346== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19346== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19346== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19346== by 0x4E7F417: iv_main (iv_main.c:252) ==19346== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19346== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19346== Address 0x684a928 is 8 bytes inside a block of size 24 free'd ==19346== at 0x4C2695D: free (vg_replace_malloc.c:366) ==19346== by 0x590EFDF: g_list_remove (in /lib64/libglib-2.0.so.0.2200.5) ==19346== by 0x4E51A5F: log_dest_driver_deinit_method (driver.h:190) ==19346== by 0x6DC284C: afprogram_dd_deinit (afprog.c:344) ==19346== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19346== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19346== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19346== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19346== by 0x4E7F417: iv_main (iv_main.c:252) ==19346== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19346== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19346== ==19346== Invalid read of size 8 ==19346== at 0x4E51A81: log_dest_driver_deinit_method (driver.c:172) ==19346== by 0x6FD07DA: afsocket_dd_deinit (afsocket.c:1221) ==19346== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19346== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19346== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19346== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19346== by 0x4E7F417: iv_main (iv_main.c:252) ==19346== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19346== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19346== Address 0x684f358 is 8 bytes inside a block of size 24 free'd ==19346== at 0x4C2695D: free (vg_replace_malloc.c:366) ==19346== by 0x590EFDF: g_list_remove (in /lib64/libglib-2.0.so.0.2200.5) ==19346== by 0x4E51A5F: log_dest_driver_deinit_method (driver.h:190) ==19346== by 0x6FD07DA: afsocket_dd_deinit (afsocket.c:1221) ==19346== by 0x4E50CAC: log_dest_group_deinit (logpipe.h:254) ==19346== by 0x4E4C575: log_center_deinit (logpipe.h:254) ==19346== by 0x4E659EF: main_loop_exit_finish (mainloop.c:585) ==19346== by 0x4E80EE8: iv_run_timers (iv_timer.c:345) ==19346== by 0x4E7F417: iv_main (iv_main.c:252) ==19346== by 0x4E6570D: main_loop_run (mainloop.c:731) ==19346== by 0x4015B0: main (in /usr/local/sbin/syslog-ng) ==19346== ==19346== ==19346== HEAP SUMMARY: ==19346== in use at exit: 169,334 bytes in 3,407 blocks ==19346== total heap usage: 226,539 allocs, 223,132 frees, 178,250,594 bytes allocated ==19346== ==19346== LEAK SUMMARY: ==19346== definitely lost: 197 bytes in 2 blocks ==19346== indirectly lost: 1,823 bytes in 22 blocks ==19346== possibly lost: 0 bytes in 0 blocks ==19346== still reachable: 167,314 bytes in 3,383 blocks ==19346== suppressed: 0 bytes in 0 blocks ==19346== Rerun with --leak-check=full to see details of leaked memory ==19346== ==19346== For counts of detected and suppressed errors, rerun with: -v ==19346== Use --track-origins=yes to see where uninitialised values come from ==19346== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 66 from 9)