==13012== Memcheck, a memory error detector ==13012== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al. ==13012== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info ==13012== Command: ./pa05 i ./inputs/10-intinput outputs/10-intinput.out ==13012== Parent PID: 12994 ==13012== --13012-- --13012-- Valgrind options: --13012-- --tool=memcheck --13012-- --leak-check=full --13012-- --verbose --13012-- --log-file=outputs/valgrind-log10 --13012-- Contents of /proc/version: --13012-- Linux version 2.6.32-358.18.1.el6.x86_64 (mockbuild@x86-003.build.bos.redhat.com) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Fri Aug 2 17:04:38 EDT 2013 --13012-- Arch and hwcaps: AMD64, amd64-sse3-cx16 --13012-- Page sizes: currently 4096, max supported 4096 --13012-- Valgrind library directory: /usr/lib64/valgrind --13012-- Reading syms from /home/shay/a/scorya/ECE264/solutions/ECE264Solutions/PA05/pa05 --13012-- Reading syms from /usr/lib64/valgrind/memcheck-amd64-linux --13012-- object doesn't have a dynamic symbol table --13012-- Reading syms from /lib64/ld-2.12.so --13012-- Scheduler: using generic scheduler lock implementation. --13012-- Reading suppressions file: /usr/lib64/valgrind/default.supp ==13012== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-13012-by-scorya-on-ecelinux19.ecn.purdue.edu ==13012== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-13012-by-scorya-on-ecelinux19.ecn.purdue.edu ==13012== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-13012-by-scorya-on-ecelinux19.ecn.purdue.edu ==13012== ==13012== TO CONTROL THIS PROCESS USING vgdb (which you probably ==13012== don't want to do, unless you know exactly what you're doing, ==13012== or are doing some strange experiment): ==13012== /usr/lib64/valgrind/../../bin/vgdb --pid=13012 ...command... ==13012== ==13012== TO DEBUG THIS PROCESS USING GDB: start GDB like this ==13012== /path/to/gdb ./pa05 ==13012== and then give GDB the following command ==13012== target remote | /usr/lib64/valgrind/../../bin/vgdb --pid=13012 ==13012== --pid is optional if only one valgrind process is running ==13012== --13012-- REDIR: 0x3c42c17520 (strlen) redirected to 0x38049551 (vgPlain_amd64_linux_REDIR_FOR_strlen) --13012-- Reading syms from /usr/lib64/valgrind/vgpreload_core-amd64-linux.so --13012-- Reading syms from /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so --13012-- REDIR: 0x3c42c17390 (index) redirected to 0x4a07bf0 (index) --13012-- REDIR: 0x3c42c17410 (strcmp) redirected to 0x4a08530 (strcmp) --13012-- Reading syms from /lib64/libc-2.12.so --13012-- REDIR: 0x3c43084ec0 (strcasecmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --13012-- REDIR: 0x3c43087180 (strncasecmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --13012-- REDIR: 0x3c43082e30 (__GI_strrchr) redirected to 0x4a07a70 (__GI_strrchr) --13012-- REDIR: 0x3c4307f8d0 (strcmp) redirected to 0x480155c (_vgnU_ifunc_wrapper) --13012-- REDIR: 0x3c43127ac0 (__strcmp_sse42) redirected to 0x4a08490 (strcmp) --13012-- REDIR: 0x3c4307a8e0 (malloc) redirected to 0x4a0696c (malloc) --13012-- REDIR: 0x3c4307b710 (free) redirected to 0x4a06369 (free) --13012-- REDIR: 0x3c4308ace0 (strchrnul) redirected to 0x4a09f10 (strchrnul) --13012-- REDIR: 0x3c43081350 (__GI_strlen) redirected to 0x4a07f70 (__GI_strlen) --13012-- REDIR: 0x3c430846f0 (mempcpy) redirected to 0x4a09f80 (mempcpy) --13012-- REDIR: 0x3c43089860 (memcpy) redirected to 0x4a08b20 (memcpy) ==13012== ==13012== HEAP SUMMARY: ==13012== in use at exit: 568 bytes in 1 blocks ==13012== total heap usage: 3 allocs, 2 frees, 1,180 bytes allocated ==13012== ==13012== Searching for pointers to 1 not-freed blocks ==13012== Checked 65,264 bytes ==13012== ==13012== LEAK SUMMARY: ==13012== definitely lost: 0 bytes in 0 blocks ==13012== indirectly lost: 0 bytes in 0 blocks ==13012== possibly lost: 0 bytes in 0 blocks ==13012== still reachable: 568 bytes in 1 blocks ==13012== suppressed: 0 bytes in 0 blocks ==13012== Reachable blocks (those to which a pointer was found) are not shown. ==13012== To see them, rerun with: --leak-check=full --show-reachable=yes ==13012== ==13012== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6) --13012-- --13012-- used_suppression: 4 U1004-ARM-_dl_relocate_object --13012-- used_suppression: 2 glibc-2.5.x-on-SUSE-10.2-(PPC)-2a ==13012== ==13012== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 6 from 6)