Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==25== Memcheck, a memory error detector
- ==25== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==25== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==25== Command: ./commonMod test.txt test2.txt testOut.txt testOut2.txt finalOutput.txt
- ==25== Parent PID: 6
- ==25==
- ==25== error calling PR_SET_PTRACER, vgdb might block
- ==25==
- ==25== HEAP SUMMARY:
- ==25== in use at exit: 9,091 bytes in 339 blocks
- ==25== total heap usage: 345 allocs, 6 frees, 33,667 bytes allocated
- ==25==
- ==25== 4 bytes in 1 blocks are indirectly lost in loss record 1 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108B0D: createWord (commonMod.c:26)
- ==25== by 0x108BC3: addWord (commonMod.c:46)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 5 bytes in 1 blocks are indirectly lost in loss record 2 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108B0D: createWord (commonMod.c:26)
- ==25== by 0x108BC3: addWord (commonMod.c:46)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092BF: main (commonMod.c:284)
- ==25==
- ==25== 6 bytes in 1 blocks are indirectly lost in loss record 3 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108B0D: createWord (commonMod.c:26)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108E6E: readFileMakeList (commonMod.c:123)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 32 bytes in 1 blocks are indirectly lost in loss record 4 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108AD0: createWord (commonMod.c:20)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108E6E: readFileMakeList (commonMod.c:123)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 139 bytes in 30 blocks are indirectly lost in loss record 5 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108B0D: createWord (commonMod.c:26)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 552 bytes in 1 blocks are still reachable in loss record 6 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
- ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==25== by 0x108CC0: readFileMakeList (commonMod.c:79)
- ==25== by 0x1092BF: main (commonMod.c:284)
- ==25==
- ==25== 552 bytes in 1 blocks are still reachable in loss record 7 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
- ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==25== by 0x108CC0: readFileMakeList (commonMod.c:79)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 552 bytes in 1 blocks are still reachable in loss record 8 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
- ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==25== by 0x109009: printToOutputFile (commonMod.c:188)
- ==25== by 0x10932D: main (commonMod.c:296)
- ==25==
- ==25== 552 bytes in 1 blocks are still reachable in loss record 9 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
- ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==25== by 0x109009: printToOutputFile (commonMod.c:188)
- ==25== by 0x109340: main (commonMod.c:297)
- ==25==
- ==25== 552 bytes in 1 blocks are still reachable in loss record 10 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x4EBAE49: __fopen_internal (iofopen.c:65)
- ==25== by 0x4EBAE49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==25== by 0x1090B6: createCombinedOutputFile (commonMod.c:211)
- ==25== by 0x109357: main (commonMod.c:300)
- ==25==
- ==25== 833 bytes in 134 blocks are indirectly lost in loss record 11 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108B0D: createWord (commonMod.c:26)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092BF: main (commonMod.c:284)
- ==25==
- ==25== 960 bytes in 30 blocks are indirectly lost in loss record 12 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108AD0: createWord (commonMod.c:20)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 1,173 (32 direct, 1,141 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108AD0: createWord (commonMod.c:20)
- ==25== by 0x108BC3: addWord (commonMod.c:46)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092D6: main (commonMod.c:285)
- ==25==
- ==25== 4,288 bytes in 134 blocks are indirectly lost in loss record 14 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108AD0: createWord (commonMod.c:20)
- ==25== by 0x108C3F: addWord (commonMod.c:64)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092BF: main (commonMod.c:284)
- ==25==
- ==25== 5,158 (32 direct, 5,126 indirect) bytes in 1 blocks are definitely lost in loss record 15 of 15
- ==25== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==25== by 0x108AD0: createWord (commonMod.c:20)
- ==25== by 0x108BC3: addWord (commonMod.c:46)
- ==25== by 0x108D86: readFileMakeList (commonMod.c:100)
- ==25== by 0x1092BF: main (commonMod.c:284)
- ==25==
- ==25== LEAK SUMMARY:
- ==25== definitely lost: 64 bytes in 2 blocks
- ==25== indirectly lost: 6,267 bytes in 332 blocks
- ==25== possibly lost: 0 bytes in 0 blocks
- ==25== still reachable: 2,760 bytes in 5 blocks
- ==25== suppressed: 0 bytes in 0 blocks
- ==25==
- ==25== For counts of detected and suppressed errors, rerun with: -v
- ==25== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Add Comment
Please, Sign In to add comment