Created
June 15, 2011 10:04
-
-
Save JakubOboza/1026834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valgrind | |
segmentation fault |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fixed in valgrind: r11813 - trunk |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svn co svn://svn.valgrind.org/valgrind/trunk valgrind && cd valgrind && ./autogen.sh && ./configure && make && make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
valgrind --leak-check=yes ./main | |
==30652== Memcheck, a memory error detector | |
==30652== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. | |
==30652== Using Valgrind-3.7.0.SVN and LibVEX; rerun with -h for copyright info | |
==30652== Command: ./main | |
==30652== | |
==30652== Invalid write of size 4 | |
==30652== at 0x100000EEE: f (main.c:6) | |
==30652== by 0x100000EFE: main (main.c:11) | |
==30652== Address 0x100004108 is 0 bytes after a block of size 40 alloc'd | |
==30652== at 0xE3A5: malloc (vg_replace_malloc.c:236) | |
==30652== by 0x100000EE1: f (main.c:5) | |
==30652== by 0x100000EFE: main (main.c:11) | |
==30652== | |
==30652== | |
==30652== HEAP SUMMARY: | |
==30652== in use at exit: 128 bytes in 2 blocks | |
==30652== total heap usage: 2 allocs, 0 frees, 128 bytes allocated | |
==30652== | |
==30652== 40 bytes in 1 blocks are definitely lost in loss record 1 of 2 | |
==30652== at 0xE3A5: malloc (vg_replace_malloc.c:236) | |
==30652== by 0x100000EE1: f (main.c:5) | |
==30652== by 0x100000EFE: main (main.c:11) | |
==30652== | |
==30652== LEAK SUMMARY: | |
==30652== definitely lost: 40 bytes in 1 blocks | |
==30652== indirectly lost: 0 bytes in 0 blocks | |
==30652== possibly lost: 0 bytes in 0 blocks | |
==30652== still reachable: 0 bytes in 0 blocks | |
==30652== suppressed: 88 bytes in 1 blocks | |
==30652== | |
==30652== For counts of detected and suppressed errors, rerun with: -v | |
==30652== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment