Skip to content

Instantly share code, notes, and snippets.

@irl
Created November 8, 2012 14:29
Show Gist options
  • Save irl/4039110 to your computer and use it in GitHub Desktop.
Save irl/4039110 to your computer and use it in GitHub Desktop.
==12653== Memcheck, a memory error detector
==12653== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==12653== Using Valgrind-3.6.0 and LibVEX; rerun with -h for copyright info
==12653== Command: ../tasknc
==12653== Parent PID: 12652
==12653==
--12653--
--12653-- Valgrind options:
--12653-- --tool=memcheck
--12653-- --leak-check=full
--12653-- -v
--12653-- --show-reachable=yes
--12653-- --track-origins=yes
--12653-- --suppressions=valgrind.supp
--12653-- --log-file=valgrind_errors
--12653-- Contents of /proc/version:
--12653-- Linux version 2.6.32-220.el6.x86_64 ([email protected]) (gcc version 4.4.6 20110731 (Red Hat 4.4.6-3) (GCC) ) #1 SMP Tue Dec 6 19:48:22 GMT 2011
--12653-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--12653-- Page sizes: currently 4096, max supported 4096
--12653-- Valgrind library directory: /usr/lib64/valgrind
--12653-- Reading syms from /meta/i/irl/pkg/tasknc/tasknc (0x400000)
--12653-- Reading syms from /lib64/ld-2.12.so (0x4000000)
--12653-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux (0x38000000)
--12653-- object doesn't have a dynamic symbol table
--12653-- Reading suppressions file: valgrind.supp
--12653-- Reading suppressions file: /usr/lib64/valgrind/default.supp
--12653-- REDIR: 0x40174a0 (strlen) redirected to 0x38042ae7 (vgPlain_amd64_linux_REDIR_FOR_strlen)
--12653-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so (0x4a22000)
--12653-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c23000)
==12653== WARNING: new redirection conflicts with existing -- ignoring it
--12653-- new: 0x040174a0 (strlen ) R-> 0x04c28830 strlen
--12653-- REDIR: 0x4017310 (index) redirected to 0x4c28470 (index)
--12653-- REDIR: 0x4017390 (strcmp) redirected to 0x4c28df0 (strcmp)
--12653-- Reading syms from /lib64/libncursesw.so.5.7 (0x4e2d000)
--12653-- object doesn't have a symbol table
--12653-- Reading syms from /lib64/libc-2.12.so (0x505c000)
--12653-- Reading syms from /lib64/libtinfo.so.5.7 (0x53ef000)
--12653-- object doesn't have a symbol table
--12653-- Reading syms from /lib64/libdl-2.12.so (0x5610000)
--12653-- REDIR: 0x50e06b0 (strcasecmp) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x50e2970 (strncasecmp) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x50de620 (__GI_strrchr) redirected to 0x4c282f0 (__GI_strrchr)
--12653-- REDIR: 0x50dcb40 (__GI_strlen) redirected to 0x4c287f0 (__GI_strlen)
--12653-- REDIR: 0x50dcd70 (__GI_strncmp) redirected to 0x4c28cf0 (__GI_strncmp)
--12653-- REDIR: 0x50d60d0 (malloc) redirected to 0x4c26f10 (malloc)
--12653-- REDIR: 0x50e64d0 (strchrnul) redirected to 0x4c29f40 (strchrnul)
--12653-- REDIR: 0x50d6f00 (free) redirected to 0x4c26890 (free)
--12653-- REDIR: 0x50e5050 (memcpy) redirected to 0x4c28ec0 (memcpy)
--12653-- REDIR: 0x50db100 (__GI_strcmp) redirected to 0x4c28da0 (__GI_strcmp)
--12653-- REDIR: 0x50db040 (__GI_strchr) redirected to 0x4c283b0 (__GI_strchr)
--12653-- REDIR: 0x50dfee0 (mempcpy) redirected to 0x4c29fb0 (mempcpy)
==12653== Warning: ignored attempt to set SIGKILL handler in sigaction();
==12653== the SIGKILL signal is uncatchable
--12653-- REDIR: 0x50dcb00 (strlen) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x518e590 (__strlen_sse42) redirected to 0x4c287d0 (strlen)
--12653-- REDIR: 0x50d5d10 (calloc) redirected to 0x4c25900 (calloc)
--12653-- REDIR: 0x50de5f0 (rindex) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x5185320 (__strrchr_sse42) redirected to 0x4c282c0 (rindex)
--12653-- REDIR: 0x50db010 (index) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x5183210 (__strchr_sse42) redirected to 0x4c28380 (index)
--12653-- REDIR: 0x50d73f0 (realloc) redirected to 0x4c27030 (realloc)
--12653-- REDIR: 0x50de5c0 (strncpy) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x518fa40 (???) redirected to 0x4c289f0 (strncpy)
--12653-- REDIR: 0x50e9ea0 (strstr) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x51854c0 (__strstr_sse42) redirected to 0x4c2a190 (strstr)
--12653-- REDIR: 0x50db0c0 (strcmp) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x51832c0 (__strcmp_sse42) redirected to 0x4c28d50 (strcmp)
--12653-- REDIR: 0x50dcc20 (strnlen) redirected to 0x4c28770 (strnlen)
--12653-- REDIR: 0x50dc550 (strcpy) redirected to 0x4a22560 (_vgnU_ifunc_wrapper)
--12653-- REDIR: 0x518f020 (???) redirected to 0x4c28850 (strcpy)
--12653-- REDIR: 0xffffffffff600400 (???) redirected to 0x38042add (vgPlain_amd64_linux_REDIR_FOR_vtime)
--12653-- REDIR: 0x50dc580 (__GI_strcpy) redirected to 0x4c28920 (__GI_strcpy)
==12653== Invalid write of size 8
==12653== at 0x4076C8: wipe_screen (tasknc.c:795)
==12653== by 0x405C1B: statusbar_message (statusbar.c:369)
==12653== by 0x408674: configure (tasknc.c:270)
==12653== by 0x408BD5: main (tasknc.c:886)
==12653== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==12653==
==12653==
==12653== HEAP SUMMARY:
==12653== in use at exit: 525,393 bytes in 143 blocks
==12653== total heap usage: 352 allocs, 209 frees, 795,739 bytes allocated
==12653==
==12653== Searching for pointers to 143 not-freed blocks
==12653== Checked 560,616 bytes
==12653==
==12653== 18 bytes in 1 blocks are still reachable in loss record 2 of 27
==12653== at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==12653== by 0x5400B5F: _nc_tparm_analyze (in /lib64/libtinfo.so.5.7)
==12653== by 0x5400D54: tparm (in /lib64/libtinfo.so.5.7)
==12653== by 0x4E4001F: _nc_mvcur_init (in /lib64/libncursesw.so.5.7)
==12653== by 0x4E41A4D: newterm (in /lib64/libncursesw.so.5.7)
==12653== by 0x4E3E128: initscr (in /lib64/libncursesw.so.5.7)
==12653== by 0x407C5A: ncurses_init (tasknc.c:593)
==12653== by 0x408B57: main (tasknc.c:879)
==12653==
==12653== 36 bytes in 1 blocks are still reachable in loss record 5 of 27
==12653== at 0x4C26FDE: malloc (vg_replace_malloc.c:236)
==12653== by 0x4086A7: configure (tasknc.c:262)
==12653== by 0x408BD5: main (tasknc.c:886)
==12653==
==12653== 66 bytes in 1 blocks are still reachable in loss record 7 of 27
==12653== at 0x4C2710F: realloc (vg_replace_malloc.c:525)
==12653== by 0x53FD69A: _nc_doalloc (in /lib64/libtinfo.so.5.7)
==12653== by 0x540082A: ??? (in /lib64/libtinfo.so.5.7)
==12653== by 0x54016B8: tparm (in /lib64/libtinfo.so.5.7)
==12653== by 0x4E4001F: _nc_mvcur_init (in /lib64/libncursesw.so.5.7)
==12653== by 0x4E41A4D: newterm (in /lib64/libncursesw.so.5.7)
==12653== by 0x4E3E128: initscr (in /lib64/libncursesw.so.5.7)
==12653== by 0x407C5A: ncurses_init (tasknc.c:593)
==12653== by 0x408B57: main (tasknc.c:879)
==12653==
==12653== 69 bytes in 1 blocks are still reachable in loss record 8 of 27
==12653== at 0x4C2710F: realloc (vg_replace_malloc.c:525)
==12653== by 0x50CAEC2: vasprintf (in /lib64/libc-2.12.so)
==12653== by 0x405BFD: statusbar_message (statusbar.c:356)
==12653== by 0x408674: configure (tasknc.c:270)
==12653== by 0x408BD5: main (tasknc.c:886)
==12653==
==12653== LEAK SUMMARY:
==12653== definitely lost: 0 bytes in 0 blocks
==12653== indirectly lost: 0 bytes in 0 blocks
==12653== possibly lost: 0 bytes in 0 blocks
==12653== still reachable: 189 bytes in 4 blocks
==12653== suppressed: 525,204 bytes in 139 blocks
==12653==
==12653== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 6)
==12653==
==12653== 1 errors in context 1 of 1:
==12653== Invalid write of size 8
==12653== at 0x4076C8: wipe_screen (tasknc.c:795)
==12653== by 0x405C1B: statusbar_message (statusbar.c:369)
==12653== by 0x408674: configure (tasknc.c:270)
==12653== by 0x408BD5: main (tasknc.c:886)
==12653== Address 0x10 is not stack'd, malloc'd or (recently) free'd
==12653==
--12653--
--12653-- used_suppression: 2 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 3 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 4 ncurses-memleak
--12653-- used_suppression: 2 ncurses-memleak
--12653-- used_suppression: 4 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 2 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 1 ncurses-memleak
--12653-- used_suppression: 6 dl-hack3-cond-1
==12653==
==12653== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 6 from 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment