Skip to content

Instantly share code, notes, and snippets.

@whizz
Created April 22, 2012 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whizz/2464624 to your computer and use it in GitHub Desktop.
Save whizz/2464624 to your computer and use it in GitHub Desktop.
Output of: valgrind --log-file=noitd.leaks --leak-check=full noitd -D
==32074== Memcheck, a memory error detector
==32074== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==32074== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==32074== Command: noitd -D
==32074== Parent PID: 27740
==32074==
==32074== Syscall param ioctl(TIOCSWINSZ) points to uninitialised byte(s)
==32074== at 0x3F1FCDDE07: ioctl (in /lib64/libc-2.12.so)
==32074== by 0x41C212: clientstat (noit_console_telnet.c:1424)
==32074== by 0x41CBCB: noit_console_telnet_telrcv (noit_console_telnet.c:2114)
==32074== by 0x41903F: noit_console_handler (noit_console.c:457)
==32074== by 0x442A0B: eventer_epoll_impl_trigger (eventer_epoll_impl.c:202)
==32074== by 0x442C3A: eventer_epoll_impl_loop (eventer_epoll_impl.c:268)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074== by 0x4168FE: noit_main (noit_main.c:217)
==32074== by 0x416157: main (noitd.c:225)
==32074== Address 0x7feffd514 is on thread 1's stack
==32074==
==32074==
==32074== HEAP SUMMARY:
==32074== in use at exit: 8,065,887 bytes in 186,398 blocks
==32074== total heap usage: 1,743,305 allocs, 1,556,907 frees, 288,757,866 bytes allocated
==32074==
==32074== 8 bytes in 1 blocks are definitely lost in loss record 319 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x426B71: noit_blank_module (noit_module.c:122)
==32074== by 0x906C61B: noit_lua_loader_load (lua.c:857)
==32074== by 0x427C76: noit_module_init (noit_module.c:505)
==32074== by 0x415C57: child_main (noitd.c:193)
==32074== by 0x4168FE: noit_main (noit_main.c:217)
==32074== by 0x416157: main (noitd.c:225)
==32074==
==32074== 85 bytes in 5 blocks are definitely lost in loss record 1,876 of 2,835
==32074== at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==32074== by 0x90710A6: nl_base64_encode (lua_noit.c:1066)
==32074== by 0x9080510: luaD_precall (ldo.c:319)
==32074== by 0x907A9E3: luaV_execute (lvm.c:587)
==32074== by 0x9079866: luaD_rawrunprotected (ldo.c:116)
==32074== by 0x907C449: lua_resume (ldo.c:427)
==32074== by 0x906EB67: noit_lua_resume (lua.c:686)
==32074== by 0x906EFC0: noit_lua_initiate (lua.c:820)
==32074== by 0x4268A9: noit_check_recur_handler (noit_check_tools.c:81)
==32074== by 0x44357A: eventer_dispatch_timed (eventer_impl.c:281)
==32074== by 0x442B4B: eventer_epoll_impl_loop (eventer_epoll_impl.c:234)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074==
==32074== 112 bytes in 2 blocks are definitely lost in loss record 1,935 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x445712: eventer_alloc (eventer.c:42)
==32074== by 0x9F41D95: noit_snmp_send (snmp.c:972)
==32074== by 0x4268A9: noit_check_recur_handler (noit_check_tools.c:81)
==32074== by 0x44357A: eventer_dispatch_timed (eventer_impl.c:281)
==32074== by 0x442B4B: eventer_epoll_impl_loop (eventer_epoll_impl.c:234)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074== by 0x4168FE: noit_main (noit_main.c:217)
==32074== by 0x416157: main (noitd.c:225)
==32074==
==32074== 320 bytes in 1 blocks are possibly lost in loss record 2,259 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x3F1F8117F2: _dl_allocate_tls (in /lib64/ld-2.12.so)
==32074== by 0x3F2040701F: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so)
==32074== by 0x44BF49: jlog_logio_open (noit_log.c:545)
==32074== by 0x44ABA7: noit_log_stream_new (noit_log.c:727)
==32074== by 0x42B286: noit_conf_log_init (noit_conf.c:1503)
==32074== by 0x41645A: noit_main (noit_main.c:151)
==32074== by 0x416157: main (noitd.c:225)
==32074==
==32074== 320 bytes in 1 blocks are possibly lost in loss record 2,260 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x3F1F8117F2: _dl_allocate_tls (in /lib64/ld-2.12.so)
==32074== by 0x3F2040701F: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so)
==32074== by 0x44BCB9: jlog_logio_reopen (noit_log.c:436)
==32074== by 0x44BF59: jlog_logio_open (noit_log.c:549)
==32074== by 0x44ABA7: noit_log_stream_new (noit_log.c:727)
==32074== by 0x42B286: noit_conf_log_init (noit_conf.c:1503)
==32074== by 0x41645A: noit_main (noit_main.c:151)
==32074== by 0x416157: main (noitd.c:225)
==32074==
==32074== 320 bytes in 1 blocks are possibly lost in loss record 2,261 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x3F1F8117F2: _dl_allocate_tls (in /lib64/ld-2.12.so)
==32074== by 0x3F2040701F: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so)
==32074== by 0x44BCB9: jlog_logio_reopen (noit_log.c:436)
==32074== by 0x44A04A: noit_log_reopen_all (noit_log.c:1017)
==32074== by 0x415BC0: child_main (noitd.c:162)
==32074== by 0x4168FE: noit_main (noit_main.c:217)
==32074== by 0x416157: main (noitd.c:225)
==32074==
==32074== 1,280 bytes in 4 blocks are possibly lost in loss record 2,540 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x3F1F8117F2: _dl_allocate_tls (in /lib64/ld-2.12.so)
==32074== by 0x3F2040701F: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so)
==32074== by 0x443EE7: eventer_jobq_maybe_spawn (eventer_jobq.c:167)
==32074== by 0x4441BC: eventer_jobq_enqueue (eventer_jobq.c:183)
==32074== by 0x442F21: eventer_epoll_impl_add (eventer_epoll_impl.c:90)
==32074== by 0x4263D5: noit_check_run_full_asynch_opts (noit_check_tools.c:188)
==32074== by 0x98C24B6: postgres_initiate (postgres.c:311)
==32074== by 0x4268A9: noit_check_recur_handler (noit_check_tools.c:81)
==32074== by 0x44357A: eventer_dispatch_timed (eventer_impl.c:281)
==32074== by 0x442B4B: eventer_epoll_impl_loop (eventer_epoll_impl.c:234)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074==
==32074== 1,920 bytes in 6 blocks are possibly lost in loss record 2,580 of 2,835
==32074== at 0x4A04A28: calloc (vg_replace_malloc.c:467)
==32074== by 0x3F1F8117F2: _dl_allocate_tls (in /lib64/ld-2.12.so)
==32074== by 0x3F2040701F: pthread_create@@GLIBC_2.2.5 (in /lib64/libpthread-2.12.so)
==32074== by 0x443EE7: eventer_jobq_maybe_spawn (eventer_jobq.c:167)
==32074== by 0x4441BC: eventer_jobq_enqueue (eventer_jobq.c:183)
==32074== by 0x442F21: eventer_epoll_impl_add (eventer_epoll_impl.c:90)
==32074== by 0x4263D5: noit_check_run_full_asynch_opts (noit_check_tools.c:188)
==32074== by 0x92A00C9: selfcheck_initiate (selfcheck.c:214)
==32074== by 0x4268A9: noit_check_recur_handler (noit_check_tools.c:81)
==32074== by 0x44357A: eventer_dispatch_timed (eventer_impl.c:281)
==32074== by 0x442B4B: eventer_epoll_impl_loop (eventer_epoll_impl.c:234)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074==
==32074== 2,016 bytes in 18 blocks are definitely lost in loss record 2,586 of 2,835
==32074== at 0x4A05FDE: malloc (vg_replace_malloc.c:236)
==32074== by 0x907044D: nl_gunzip (lua_noit.c:1286)
==32074== by 0x9080510: luaD_precall (ldo.c:319)
==32074== by 0x907A9E3: luaV_execute (lvm.c:587)
==32074== by 0x9079866: luaD_rawrunprotected (ldo.c:116)
==32074== by 0x907C449: lua_resume (ldo.c:427)
==32074== by 0x906EB67: noit_lua_resume (lua.c:686)
==32074== by 0x906FCF4: noit_lua_socket_read_complete (lua_noit.c:651)
==32074== by 0x442A0B: eventer_epoll_impl_trigger (eventer_epoll_impl.c:202)
==32074== by 0x442C3A: eventer_epoll_impl_loop (eventer_epoll_impl.c:268)
==32074== by 0x415CDE: child_main (noitd.c:219)
==32074== by 0x4168FE: noit_main (noit_main.c:217)
==32074==
==32074== LEAK SUMMARY:
==32074== definitely lost: 2,221 bytes in 26 blocks
==32074== indirectly lost: 0 bytes in 0 blocks
==32074== possibly lost: 4,160 bytes in 13 blocks
==32074== still reachable: 8,059,506 bytes in 186,359 blocks
==32074== suppressed: 0 bytes in 0 blocks
==32074== Reachable blocks (those to which a pointer was found) are not shown.
==32074== To see them, rerun with: --leak-check=full --show-reachable=yes
==32074==
==32074== For counts of detected and suppressed errors, rerun with: -v
==32074== Use --track-origins=yes to see where uninitialised values come from
==32074== ERROR SUMMARY: 10 errors from 10 contexts (suppressed: 3359 from 20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment