Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==6029== Memcheck, a memory error detector
- ==6029== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
- ==6029== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
- ==6029== Command: ./src/ascii-combat
- ==6029== Parent PID: 5927
- ==6029==
- --6029--
- --6029-- Valgrind options:
- --6029-- --tool=memcheck
- --6029-- --leak-check=full
- --6029-- -v
- --6029-- --log-file=valgrind.log
- --6029-- Contents of /proc/version:
- --6029-- Linux version 2.6.39-ARCH (thomas@evey) (gcc version 4.6.1 (GCC) ) #1 SMP PREEMPT Sat Jul 9 14:57:41 CEST 2011
- --6029-- Arch and hwcaps: AMD64, amd64-sse3-cx16-lzcnt
- --6029-- Page sizes: currently 4096, max supported 4096
- --6029-- Valgrind library directory: /usr/lib/valgrind
- --6029-- Reading syms from /home/weegee/docs/projekte/c/ascii-combat/src/ascii-combat (0x400000)
- --6029-- Reading syms from /lib/ld-2.14.so (0x4000000)
- --6029-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux (0x38000000)
- --6029-- object doesn't have a symbol table
- --6029-- object doesn't have a dynamic symbol table
- --6029-- Reading suppressions file: /usr/lib/valgrind/default.supp
- --6029-- REDIR: 0x4016a30 (strlen) redirected to 0x3805f7b7 (???)
- --6029-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so (0x4a21000)
- --6029-- object doesn't have a symbol table
- --6029-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so (0x4c22000)
- --6029-- object doesn't have a symbol table
- ==6029== WARNING: new redirection conflicts with existing -- ignoring it
- --6029-- new: 0x04016a30 (strlen ) R-> 0x04c26de0 strlen
- --6029-- REDIR: 0x4016770 (index) redirected to 0x4c26a00 (index)
- --6029-- REDIR: 0x4016920 (strcmp) redirected to 0x4c279e0 (strcmp)
- --6029-- Reading syms from /lib/libncursesw.so.5.9 (0x4e2c000)
- --6029-- object doesn't have a symbol table
- --6029-- Reading syms from /lib/libc-2.14.so (0x5087000)
- --6029-- object doesn't have a symbol table
- --6029-- REDIR: 0x51052e0 (rindex) redirected to 0x4c26790 (rindex)
- --6029-- REDIR: 0x510e810 (strchrnul) redirected to 0x4c28b20 (strchrnul)
- --6029-- REDIR: 0x51037b0 (strlen) redirected to 0x4c26d80 (strlen)
- --6029-- REDIR: 0x51039d0 (strncmp) redirected to 0x4c27220 (strncmp)
- --6029-- REDIR: 0x50ff180 (calloc) redirected to 0x4c24a30 (calloc)
- --6029-- REDIR: 0x5103890 (strnlen) redirected to 0x4c26d20 (strnlen)
- --6029-- REDIR: 0x5101cf0 (index) redirected to 0x4c26870 (index)
- --6029-- REDIR: 0x50fdfd0 (malloc) redirected to 0x4c263a0 (malloc)
- --6029-- REDIR: 0x51072b0 (mempcpy) redirected to 0x4c28c40 (mempcpy)
- --6029-- REDIR: 0x510c330 (memcpy) redirected to 0x4c27ae0 (memcpy)
- --6029-- REDIR: 0x5105bf0 (strstr) redirected to 0x4c28f30 (strstr)
- --6029-- REDIR: 0x51065c0 (memcpy) redirected to 0x4c27ae0 (memcpy)
- --6029-- REDIR: 0x50fe5c0 (realloc) redirected to 0x4c26470 (realloc)
- --6029-- REDIR: 0x50fe4e0 (free) redirected to 0x4c25500 (free)
- --6029-- REDIR: 0x5105220 (strncpy) redirected to 0x4c26fa0 (strncpy)
- --6029-- REDIR: 0x5101d70 (strcmp) redirected to 0x4c27920 (strcmp)
- --6029-- REDIR: 0x5106770 (memset) redirected to 0x4c28990 (memset)
- --6029-- REDIR: 0x51031c0 (strcpy) redirected to 0x4c26e00 (strcpy)
- ==6029==
- ==6029== HEAP SUMMARY:
- ==6029== in use at exit: 170,161 bytes in 335 blocks
- ==6029== total heap usage: 399 allocs, 64 frees, 236,199 bytes allocated
- ==6029==
- ==6029== Searching for pointers to 335 not-freed blocks
- ==6029== Checked 349,992 bytes
- ==6029==
- ==6029== 40 bytes in 1 blocks are definitely lost in loss record 5 of 39
- ==6029== at 0x4C2640D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==6029== by 0x401827: main (main.c:39)
- ==6029==
- ==6029== LEAK SUMMARY:
- ==6029== definitely lost: 40 bytes in 1 blocks
- ==6029== indirectly lost: 0 bytes in 0 blocks
- ==6029== possibly lost: 0 bytes in 0 blocks
- ==6029== still reachable: 170,121 bytes in 334 blocks
- ==6029== suppressed: 0 bytes in 0 blocks
- ==6029== Reachable blocks (those to which a pointer was found) are not shown.
- ==6029== To see them, rerun with: --leak-check=full --show-reachable=yes
- ==6029==
- ==6029== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 7 from 7)
- --6029--
- --6029-- used_suppression: 7 dl-hack3-cond-1
- ==6029==
- ==6029== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 7 from 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement