Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==18491== Memcheck, a memory error detector
- ==18491== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==18491== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
- ==18491== Command: ./speller dictionaries/test texts/test.txt
- ==18491==
- --18491-- Valgrind options:
- --18491-- --memcheck:leak-check=full
- --18491-- --memcheck:track-origins=yes
- --18491-- --leak-check=full
- --18491-- --show-leak-kinds=all
- --18491-- -v
- --18491-- Contents of /proc/version:
- --18491-- Linux version 4.2.0-c9 (root@b197fb11a5c1) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP Thu Oct 20 09:52:05 UTC 2016
- --18491-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
- --18491-- Page sizes: currently 4096, max supported 4096
- --18491-- Valgrind library directory: /usr/lib/valgrind
- --18491-- Reading syms from /home/ubuntu/workspace/pset5/speller
- --18491-- Reading syms from /lib/x86_64-linux-gnu/ld-2.19.so
- --18491-- Considering /lib/x86_64-linux-gnu/ld-2.19.so ..
- --18491-- .. CRC mismatch (computed 46abf574 wanted 3ca2d3ca)
- --18491-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so ..
- --18491-- .. CRC is valid
- --18491-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
- --18491-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
- --18491-- .. CRC mismatch (computed 4f1eed43 wanted a323a3ab)
- --18491-- object doesn't have a symbol table
- --18491-- object doesn't have a dynamic symbol table
- --18491-- Scheduler: using generic scheduler lock implementation.
- --18491-- Reading suppressions file: /usr/lib/valgrind/default.supp
- ==18491== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-18491-by-ubuntu-on-???
- ==18491== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-18491-by-ubuntu-on-???
- ==18491== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-18491-by-ubuntu-on-???
- ==18491==
- ==18491== TO CONTROL THIS PROCESS USING vgdb (which you probably
- ==18491== don't want to do, unless you know exactly what you're doing,
- ==18491== or are doing some strange experiment):
- ==18491== /usr/lib/valgrind/../../bin/vgdb --pid=18491 ...command...
- ==18491==
- ==18491== TO DEBUG THIS PROCESS USING GDB: start GDB like this
- ==18491== /path/to/gdb ./speller
- ==18491== and then give GDB the following command
- ==18491== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=18491
- ==18491== --pid is optional if only one valgrind process is running
- ==18491==
- --18491-- REDIR: 0x4019c50 (ld-linux-x86-64.so.2:strlen) redirected to 0x380764b1 (???)
- --18491-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
- --18491-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
- --18491-- .. CRC mismatch (computed fc68135e wanted 45f5e986)
- --18491-- object doesn't have a symbol table
- --18491-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
- --18491-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
- --18491-- .. CRC mismatch (computed ae683f7e wanted 08c06df2)
- --18491-- object doesn't have a symbol table
- ==18491== WARNING: new redirection conflicts with existing -- ignoring it
- --18491-- old: 0x04019c50 (strlen ) R-> (0000.0) 0x380764b1 ???
- --18491-- new: 0x04019c50 (strlen ) R-> (2007.0) 0x04c2e1a0 strlen
- --18491-- REDIR: 0x4019a00 (ld-linux-x86-64.so.2:index) redirected to 0x4c2dd50 (index)
- --18491-- REDIR: 0x4019c20 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2f2f0 (strcmp)
- --18491-- REDIR: 0x401a970 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy)
- --18491-- Reading syms from /lib/x86_64-linux-gnu/libc-2.19.so
- --18491-- Considering /lib/x86_64-linux-gnu/libc-2.19.so ..
- --18491-- .. CRC mismatch (computed ac9b5ddb wanted a10d05bf)
- --18491-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so ..
- --18491-- .. CRC is valid
- --18491-- REDIR: 0x4ec3c50 (libc.so.6:strcasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4ec5f40 (libc.so.6:strncasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4ec3420 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4ec16b0 (libc.so.6:rindex) redirected to 0x4c2da30 (rindex)
- --18491-- REDIR: 0x4eb9660 (libc.so.6:malloc) redirected to 0x4c2ab10 (malloc)
- --18491-- REDIR: 0x4ec2300 (libc.so.6:__GI_strstr) redirected to 0x4c32030 (__strstr_sse2)
- --18491-- REDIR: 0x4ec1670 (libc.so.6:strncpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4ed40b0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2e770 (__strncpy_sse2_unaligned)
- --18491-- REDIR: 0x4eb9d00 (libc.so.6:free) redirected to 0x4c2bd80 (free)
- --18491-- REDIR: 0x4eca9b0 (libc.so.6:strchrnul) redirected to 0x4c319b0 (strchrnul)
- MISSPELLED WORDS
- --18491-- REDIR: 0x4ebdf60 (libc.so.6:strcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4f76e00 (libc.so.6:__strcmp_ssse3) redirected to 0x4c2f1b0 (strcmp)
- found aid
- found at
- found blanket
- found bag
- found cat
- found caterpillar
- return from size(): 6
- --18491-- REDIR: 0x4ebdd10 (libc.so.6:index) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
- --18491-- REDIR: 0x4ebdd40 (libc.so.6:__GI_strchr) redirected to 0x4c2db90 (__GI_strchr)
- All done!
- WORDS MISSPELLED: 0
- WORDS IN DICTIONARY: 6
- WORDS IN TEXT: 6
- --18491-- REDIR: 0x4ebf9b0 (libc.so.6:strlen) redirected to 0x4c2e0e0 (strlen)
- TIME IN load: 0.04
- TIME IN check: 0.01
- TIME IN size: 0.00
- TIME IN unload: 0.00
- TIME IN TOTAL: 0.05
- ==18491==
- ==18491== HEAP SUMMARY:
- ==18491== in use at exit: 336 bytes in 6 blocks
- ==18491== total heap usage: 8 allocs, 2 frees, 1,472 bytes allocated
- ==18491==
- ==18491== Searching for pointers to 6 not-freed blocks
- ==18491== Checked 78,632 bytes
- ==18491==
- ==18491== 336 bytes in 6 blocks are still reachable in loss record 1 of 1
- ==18491== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18491== by 0x401287: load (dictionary.c:89)
- ==18491== by 0x4009BD: main (speller.c:45)
- ==18491==
- ==18491== LEAK SUMMARY:
- ==18491== definitely lost: 0 bytes in 0 blocks
- ==18491== indirectly lost: 0 bytes in 0 blocks
- ==18491== possibly lost: 0 bytes in 0 blocks
- ==18491== still reachable: 336 bytes in 6 blocks
- ==18491== suppressed: 0 bytes in 0 blocks
- ==18491==
- ==18491== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
- ==18491== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement