Advertisement
Guest User

AdiKhajuria-CS50-Pset5-Valgrind

a guest
Oct 21st, 2016
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.51 KB | None | 0 0
  1. ==18491== Memcheck, a memory error detector
  2. ==18491== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
  3. ==18491== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
  4. ==18491== Command: ./speller dictionaries/test texts/test.txt
  5. ==18491==
  6. --18491-- Valgrind options:
  7. --18491-- --memcheck:leak-check=full
  8. --18491-- --memcheck:track-origins=yes
  9. --18491-- --leak-check=full
  10. --18491-- --show-leak-kinds=all
  11. --18491-- -v
  12. --18491-- Contents of /proc/version:
  13. --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
  14. --18491-- Arch and hwcaps: AMD64, LittleEndian, amd64-cx16-rdtscp-sse3-avx
  15. --18491-- Page sizes: currently 4096, max supported 4096
  16. --18491-- Valgrind library directory: /usr/lib/valgrind
  17. --18491-- Reading syms from /home/ubuntu/workspace/pset5/speller
  18. --18491-- Reading syms from /lib/x86_64-linux-gnu/ld-2.19.so
  19. --18491-- Considering /lib/x86_64-linux-gnu/ld-2.19.so ..
  20. --18491-- .. CRC mismatch (computed 46abf574 wanted 3ca2d3ca)
  21. --18491-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/ld-2.19.so ..
  22. --18491-- .. CRC is valid
  23. --18491-- Reading syms from /usr/lib/valgrind/memcheck-amd64-linux
  24. --18491-- Considering /usr/lib/valgrind/memcheck-amd64-linux ..
  25. --18491-- .. CRC mismatch (computed 4f1eed43 wanted a323a3ab)
  26. --18491-- object doesn't have a symbol table
  27. --18491-- object doesn't have a dynamic symbol table
  28. --18491-- Scheduler: using generic scheduler lock implementation.
  29. --18491-- Reading suppressions file: /usr/lib/valgrind/default.supp
  30. ==18491== embedded gdbserver: reading from /tmp/vgdb-pipe-from-vgdb-to-18491-by-ubuntu-on-???
  31. ==18491== embedded gdbserver: writing to /tmp/vgdb-pipe-to-vgdb-from-18491-by-ubuntu-on-???
  32. ==18491== embedded gdbserver: shared mem /tmp/vgdb-pipe-shared-mem-vgdb-18491-by-ubuntu-on-???
  33. ==18491==
  34. ==18491== TO CONTROL THIS PROCESS USING vgdb (which you probably
  35. ==18491== don't want to do, unless you know exactly what you're doing,
  36. ==18491== or are doing some strange experiment):
  37. ==18491== /usr/lib/valgrind/../../bin/vgdb --pid=18491 ...command...
  38. ==18491==
  39. ==18491== TO DEBUG THIS PROCESS USING GDB: start GDB like this
  40. ==18491== /path/to/gdb ./speller
  41. ==18491== and then give GDB the following command
  42. ==18491== target remote | /usr/lib/valgrind/../../bin/vgdb --pid=18491
  43. ==18491== --pid is optional if only one valgrind process is running
  44. ==18491==
  45. --18491-- REDIR: 0x4019c50 (ld-linux-x86-64.so.2:strlen) redirected to 0x380764b1 (???)
  46. --18491-- Reading syms from /usr/lib/valgrind/vgpreload_core-amd64-linux.so
  47. --18491-- Considering /usr/lib/valgrind/vgpreload_core-amd64-linux.so ..
  48. --18491-- .. CRC mismatch (computed fc68135e wanted 45f5e986)
  49. --18491-- object doesn't have a symbol table
  50. --18491-- Reading syms from /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so
  51. --18491-- Considering /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so ..
  52. --18491-- .. CRC mismatch (computed ae683f7e wanted 08c06df2)
  53. --18491-- object doesn't have a symbol table
  54. ==18491== WARNING: new redirection conflicts with existing -- ignoring it
  55. --18491-- old: 0x04019c50 (strlen ) R-> (0000.0) 0x380764b1 ???
  56. --18491-- new: 0x04019c50 (strlen ) R-> (2007.0) 0x04c2e1a0 strlen
  57. --18491-- REDIR: 0x4019a00 (ld-linux-x86-64.so.2:index) redirected to 0x4c2dd50 (index)
  58. --18491-- REDIR: 0x4019c20 (ld-linux-x86-64.so.2:strcmp) redirected to 0x4c2f2f0 (strcmp)
  59. --18491-- REDIR: 0x401a970 (ld-linux-x86-64.so.2:mempcpy) redirected to 0x4c31da0 (mempcpy)
  60. --18491-- Reading syms from /lib/x86_64-linux-gnu/libc-2.19.so
  61. --18491-- Considering /lib/x86_64-linux-gnu/libc-2.19.so ..
  62. --18491-- .. CRC mismatch (computed ac9b5ddb wanted a10d05bf)
  63. --18491-- Considering /usr/lib/debug/lib/x86_64-linux-gnu/libc-2.19.so ..
  64. --18491-- .. CRC is valid
  65. --18491-- REDIR: 0x4ec3c50 (libc.so.6:strcasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  66. --18491-- REDIR: 0x4ec5f40 (libc.so.6:strncasecmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  67. --18491-- REDIR: 0x4ec3420 (libc.so.6:memcpy@GLIBC_2.2.5) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  68. --18491-- REDIR: 0x4ec16b0 (libc.so.6:rindex) redirected to 0x4c2da30 (rindex)
  69. --18491-- REDIR: 0x4eb9660 (libc.so.6:malloc) redirected to 0x4c2ab10 (malloc)
  70. --18491-- REDIR: 0x4ec2300 (libc.so.6:__GI_strstr) redirected to 0x4c32030 (__strstr_sse2)
  71. --18491-- REDIR: 0x4ec1670 (libc.so.6:strncpy) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  72. --18491-- REDIR: 0x4ed40b0 (libc.so.6:__strncpy_sse2_unaligned) redirected to 0x4c2e770 (__strncpy_sse2_unaligned)
  73. --18491-- REDIR: 0x4eb9d00 (libc.so.6:free) redirected to 0x4c2bd80 (free)
  74. --18491-- REDIR: 0x4eca9b0 (libc.so.6:strchrnul) redirected to 0x4c319b0 (strchrnul)
  75.  
  76. MISSPELLED WORDS
  77.  
  78. --18491-- REDIR: 0x4ebdf60 (libc.so.6:strcmp) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  79. --18491-- REDIR: 0x4f76e00 (libc.so.6:__strcmp_ssse3) redirected to 0x4c2f1b0 (strcmp)
  80. found aid
  81. found at
  82. found blanket
  83. found bag
  84. found cat
  85. found caterpillar
  86. return from size(): 6
  87.  
  88. --18491-- REDIR: 0x4ebdd10 (libc.so.6:index) redirected to 0x4a25720 (_vgnU_ifunc_wrapper)
  89. --18491-- REDIR: 0x4ebdd40 (libc.so.6:__GI_strchr) redirected to 0x4c2db90 (__GI_strchr)
  90. All done!
  91.  
  92. WORDS MISSPELLED: 0
  93. WORDS IN DICTIONARY: 6
  94. WORDS IN TEXT: 6
  95. --18491-- REDIR: 0x4ebf9b0 (libc.so.6:strlen) redirected to 0x4c2e0e0 (strlen)
  96. TIME IN load: 0.04
  97. TIME IN check: 0.01
  98. TIME IN size: 0.00
  99. TIME IN unload: 0.00
  100. TIME IN TOTAL: 0.05
  101.  
  102. ==18491==
  103. ==18491== HEAP SUMMARY:
  104. ==18491== in use at exit: 336 bytes in 6 blocks
  105. ==18491== total heap usage: 8 allocs, 2 frees, 1,472 bytes allocated
  106. ==18491==
  107. ==18491== Searching for pointers to 6 not-freed blocks
  108. ==18491== Checked 78,632 bytes
  109. ==18491==
  110. ==18491== 336 bytes in 6 blocks are still reachable in loss record 1 of 1
  111. ==18491== at 0x4C2AB80: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  112. ==18491== by 0x401287: load (dictionary.c:89)
  113. ==18491== by 0x4009BD: main (speller.c:45)
  114. ==18491==
  115. ==18491== LEAK SUMMARY:
  116. ==18491== definitely lost: 0 bytes in 0 blocks
  117. ==18491== indirectly lost: 0 bytes in 0 blocks
  118. ==18491== possibly lost: 0 bytes in 0 blocks
  119. ==18491== still reachable: 336 bytes in 6 blocks
  120. ==18491== suppressed: 0 bytes in 0 blocks
  121. ==18491==
  122. ==18491== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
  123. ==18491== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement