kabyru

Valgrind Dump

Jan 14th, 2020
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.61 KB | None | 0 0
  1. ==25== Memcheck, a memory error detector
  2. ==25== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  3. ==25== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  4. ==25== Command: ./commonMod test.txt test2.txt testOut.txt testOut2.txt finalOutput.txt
  5. ==25== Parent PID: 6
  6. ==25==
  7. ==25== error calling PR_SET_PTRACER, vgdb might block
  8. ==25==
  9. ==25== HEAP SUMMARY:
  10. ==25== in use at exit: 9,091 bytes in 339 blocks
  11. ==25== total heap usage: 345 allocs, 6 frees, 33,667 bytes allocated
  12. ==25==
  13. ==25== 4 bytes in 1 blocks are indirectly lost in loss record 1 of 15
  14. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  15. ==25== by 0x108B0D: createWord (commonMod.c:26)
  16. ==25== by 0x108BC3: addWord (commonMod.c:46)
  17. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  18. ==25== by 0x1092D6: main (commonMod.c:285)
  19. ==25==
  20. ==25== 5 bytes in 1 blocks are indirectly lost in loss record 2 of 15
  21. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  22. ==25== by 0x108B0D: createWord (commonMod.c:26)
  23. ==25== by 0x108BC3: addWord (commonMod.c:46)
  24. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  25. ==25== by 0x1092BF: main (commonMod.c:284)
  26. ==25==
  27. ==25== 6 bytes in 1 blocks are indirectly lost in loss record 3 of 15
  28. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  29. ==25== by 0x108B0D: createWord (commonMod.c:26)
  30. ==25== by 0x108C3F: addWord (commonMod.c:64)
  31. ==25== by 0x108E6E: readFileMakeList (commonMod.c:123)
  32. ==25== by 0x1092D6: main (commonMod.c:285)
  33. ==25==
  34. ==25== 32 bytes in 1 blocks are indirectly lost in loss record 4 of 15
  35. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  36. ==25== by 0x108AD0: createWord (commonMod.c:20)
  37. ==25== by 0x108C3F: addWord (commonMod.c:64)
  38. ==25== by 0x108E6E: readFileMakeList (commonMod.c:123)
  39. ==25== by 0x1092D6: main (commonMod.c:285)
  40. ==25==
  41. ==25== 139 bytes in 30 blocks are indirectly lost in loss record 5 of 15
  42. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  43. ==25== by 0x108B0D: createWord (commonMod.c:26)
  44. ==25== by 0x108C3F: addWord (commonMod.c:64)
  45. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  46. ==25== by 0x1092D6: main (commonMod.c:285)
  47. ==25==
  48. ==25== 552 bytes in 1 blocks are still reachable in loss record 6 of 15
  49. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  50. ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
  51. ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  52. ==25== by 0x108CC0: readFileMakeList (commonMod.c:79)
  53. ==25== by 0x1092BF: main (commonMod.c:284)
  54. ==25==
  55. ==25== 552 bytes in 1 blocks are still reachable in loss record 7 of 15
  56. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  57. ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
  58. ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  59. ==25== by 0x108CC0: readFileMakeList (commonMod.c:79)
  60. ==25== by 0x1092D6: main (commonMod.c:285)
  61. ==25==
  62. ==25== 552 bytes in 1 blocks are still reachable in loss record 8 of 15
  63. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  64. ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
  65. ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  66. ==25== by 0x109009: printToOutputFile (commonMod.c:188)
  67. ==25== by 0x10932D: main (commonMod.c:296)
  68. ==25==
  69. ==25== 552 bytes in 1 blocks are still reachable in loss record 9 of 15
  70. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  71. ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
  72. ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  73. ==25== by 0x109009: printToOutputFile (commonMod.c:188)
  74. ==25== by 0x109340: main (commonMod.c:297)
  75. ==25==
  76. ==25== 552 bytes in 1 blocks are still reachable in loss record 10 of 15
  77. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  78. ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
  79. ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
  80. ==25== by 0x1090B6: createCombinedOutputFile (commonMod.c:211)
  81. ==25== by 0x109357: main (commonMod.c:300)
  82. ==25==
  83. ==25== 833 bytes in 134 blocks are indirectly lost in loss record 11 of 15
  84. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  85. ==25== by 0x108B0D: createWord (commonMod.c:26)
  86. ==25== by 0x108C3F: addWord (commonMod.c:64)
  87. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  88. ==25== by 0x1092BF: main (commonMod.c:284)
  89. ==25==
  90. ==25== 960 bytes in 30 blocks are indirectly lost in loss record 12 of 15
  91. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  92. ==25== by 0x108AD0: createWord (commonMod.c:20)
  93. ==25== by 0x108C3F: addWord (commonMod.c:64)
  94. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  95. ==25== by 0x1092D6: main (commonMod.c:285)
  96. ==25==
  97. ==25== 1,173 (32 direct, 1,141 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 15
  98. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  99. ==25== by 0x108AD0: createWord (commonMod.c:20)
  100. ==25== by 0x108BC3: addWord (commonMod.c:46)
  101. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  102. ==25== by 0x1092D6: main (commonMod.c:285)
  103. ==25==
  104. ==25== 4,288 bytes in 134 blocks are indirectly lost in loss record 14 of 15
  105. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  106. ==25== by 0x108AD0: createWord (commonMod.c:20)
  107. ==25== by 0x108C3F: addWord (commonMod.c:64)
  108. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  109. ==25== by 0x1092BF: main (commonMod.c:284)
  110. ==25==
  111. ==25== 5,158 (32 direct, 5,126 indirect) bytes in 1 blocks are definitely lost in loss record 15 of 15
  112. ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  113. ==25== by 0x108AD0: createWord (commonMod.c:20)
  114. ==25== by 0x108BC3: addWord (commonMod.c:46)
  115. ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
  116. ==25== by 0x1092BF: main (commonMod.c:284)
  117. ==25==
  118. ==25== LEAK SUMMARY:
  119. ==25== definitely lost: 64 bytes in 2 blocks
  120. ==25== indirectly lost: 6,267 bytes in 332 blocks
  121. ==25== possibly lost: 0 bytes in 0 blocks
  122. ==25== still reachable: 2,760 bytes in 5 blocks
  123. ==25== suppressed: 0 bytes in 0 blocks
  124. ==25==
  125. ==25== For counts of detected and suppressed errors, rerun with: -v
  126. ==25== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Add Comment
Please, Sign In to add comment