Advertisement
jrhauser11

SPELLER - VALGRIND

Jul 29th, 2020
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. help50 valgrind ./speller dictionaries/small texts/lalaland.txt
  2. ==3713== Memcheck, a memory error detector
  3. ==3713== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  4. ==3713== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  5. ==3713== Command: ./speller dictionaries/small texts/lalaland.txt
  6. ==3713==
  7. ==3713== Invalid read of size 1
  8. ==3713== at 0x5355950: __strcpy_ssse3 (strcpy-ssse3.S:32)
  9. ==3713== by 0x401219: load (dictionary.c:86)
  10. ==3713== by 0x400964: main (speller.c:40)
  11. ==3713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
  12. ==3713==
  13. ==3713==
  14. ==3713== Process terminating with default action of signal 11 (SIGSEGV)
  15. ==3713== Access not within mapped region at address 0x0
  16. ==3713== at 0x5355950: __strcpy_ssse3 (strcpy-ssse3.S:32)
  17. ==3713== by 0x401219: load (dictionary.c:86)
  18. ==3713== by 0x400964: main (speller.c:40)
  19. ==3713== If you believe this happened as a result of a stack
  20. ==3713== overflow in your program's main thread (unlikely but
  21. ==3713== possible), you can try to increase the size of the
  22. ==3713== main thread stack using the --main-stacksize= flag.
  23. ==3713== The main thread stack size used in this run was 8388608.
  24. ==3713==
  25. ==3713== HEAP SUMMARY:
  26. ==3713== in use at exit: 653 bytes in 3 blocks
  27. ==3713== total heap usage: 4 allocs, 1 frees, 4,749 bytes allocated
  28. ==3713==
  29. ==3713== 45 bytes in 1 blocks are definitely lost in loss record 1 of 3
  30. ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  31. ==3713== by 0x4011B0: load (dictionary.c:76)
  32. ==3713== by 0x400964: main (speller.c:40)
  33. ==3713==
  34. ==3713== 56 bytes in 1 blocks are still reachable in loss record 2 of 3
  35. ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  36. ==3713== by 0x4011E8: load (dictionary.c:80)
  37. ==3713== by 0x400964: main (speller.c:40)
  38. ==3713==
  39. ==3713== 552 bytes in 1 blocks are still reachable in loss record 3 of 3
  40. ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  41. ==3713== by 0x5258E49: __fopen_internal (iofopen.c:65)
  42. ==3713== by 0x5258E49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  43. ==3713== by 0x40118E: load (dictionary.c:71)
  44. ==3713== by 0x400964: main (speller.c:40)
  45. ==3713==
  46. ==3713== LEAK SUMMARY:
  47. ==3713== definitely lost: 45 bytes in 1 blocks
  48. ==3713== indirectly lost: 0 bytes in 0 blocks
  49. ==3713== possibly lost: 0 bytes in 0 blocks
  50. ==3713== still reachable: 608 bytes in 2 blocks
  51. ==3713== suppressed: 0 bytes in 0 blocks
  52. ==3713==
  53. ==3713== For counts of detected and suppressed errors, rerun with: -v
  54. ==3713== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
  55. /etc/profile.d/cli.sh: line 94: 3713 Segmentation fault valgrind ./speller dictionaries/small texts/lalaland.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement