Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- help50 valgrind ./speller dictionaries/small texts/lalaland.txt
- ==3713== Memcheck, a memory error detector
- ==3713== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==3713== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==3713== Command: ./speller dictionaries/small texts/lalaland.txt
- ==3713==
- ==3713== Invalid read of size 1
- ==3713== at 0x5355950: __strcpy_ssse3 (strcpy-ssse3.S:32)
- ==3713== by 0x401219: load (dictionary.c:86)
- ==3713== by 0x400964: main (speller.c:40)
- ==3713== Address 0x0 is not stack'd, malloc'd or (recently) free'd
- ==3713==
- ==3713==
- ==3713== Process terminating with default action of signal 11 (SIGSEGV)
- ==3713== Access not within mapped region at address 0x0
- ==3713== at 0x5355950: __strcpy_ssse3 (strcpy-ssse3.S:32)
- ==3713== by 0x401219: load (dictionary.c:86)
- ==3713== by 0x400964: main (speller.c:40)
- ==3713== If you believe this happened as a result of a stack
- ==3713== overflow in your program's main thread (unlikely but
- ==3713== possible), you can try to increase the size of the
- ==3713== main thread stack using the --main-stacksize= flag.
- ==3713== The main thread stack size used in this run was 8388608.
- ==3713==
- ==3713== HEAP SUMMARY:
- ==3713== in use at exit: 653 bytes in 3 blocks
- ==3713== total heap usage: 4 allocs, 1 frees, 4,749 bytes allocated
- ==3713==
- ==3713== 45 bytes in 1 blocks are definitely lost in loss record 1 of 3
- ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3713== by 0x4011B0: load (dictionary.c:76)
- ==3713== by 0x400964: main (speller.c:40)
- ==3713==
- ==3713== 56 bytes in 1 blocks are still reachable in loss record 2 of 3
- ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3713== by 0x4011E8: load (dictionary.c:80)
- ==3713== by 0x400964: main (speller.c:40)
- ==3713==
- ==3713== 552 bytes in 1 blocks are still reachable in loss record 3 of 3
- ==3713== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3713== by 0x5258E49: __fopen_internal (iofopen.c:65)
- ==3713== by 0x5258E49: fopen@@GLIBC_2.2.5 (iofopen.c:89)
- ==3713== by 0x40118E: load (dictionary.c:71)
- ==3713== by 0x400964: main (speller.c:40)
- ==3713==
- ==3713== LEAK SUMMARY:
- ==3713== definitely lost: 45 bytes in 1 blocks
- ==3713== indirectly lost: 0 bytes in 0 blocks
- ==3713== possibly lost: 0 bytes in 0 blocks
- ==3713== still reachable: 608 bytes in 2 blocks
- ==3713== suppressed: 0 bytes in 0 blocks
- ==3713==
- ==3713== For counts of detected and suppressed errors, rerun with: -v
- ==3713== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
- /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