Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # valgrind ./a.out
- ==31275== Memcheck, a memory error detector
- ==31275== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
- ==31275== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
- ==31275== Command: ./a.out
- ==31275==
- ==31275== Conditional jump or move depends on uninitialised value(s)
- ==31275== at 0x4011E14: index (in /usr/lib/ld-2.23.so)
- ==31275==
- ==31275== Conditional jump or move depends on uninitialised value(s)
- ==31275== at 0x4011E18: index (in /usr/lib/ld-2.23.so)
- ==31275==
- ==31275== Conditional jump or move depends on uninitialised value(s)
- ==31275== at 0x4005A5A: expand_dynamic_string_token (in /usr/lib/ld-2.23.so)
- ==31275==
- ==31275== Invalid write of size 4
- ==31275== at 0x103EA: f (test_valgrind.c:6)
- ==31275== by 0x103FB: main (test_valgrind.c:11)
- ==31275== Address 0x4947050 is 0 bytes after a block of size 40 alloc'd
- ==31275== at 0x483FD48: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
- ==31275==
- ==31275==
- ==31275== HEAP SUMMARY:
- ==31275== in use at exit: 40 bytes in 1 blocks
- ==31275== total heap usage: 1 allocs, 0 frees, 40 bytes allocated
- ==31275==
- ==31275== LEAK SUMMARY:
- ==31275== definitely lost: 40 bytes in 1 blocks
- ==31275== indirectly lost: 0 bytes in 0 blocks
- ==31275== possibly lost: 0 bytes in 0 blocks
- ==31275== still reachable: 0 bytes in 0 blocks
- ==31275== suppressed: 0 bytes in 0 blocks
- ==31275== Rerun with --leak-check=full to see details of leaked memory
- ==31275==
- ==31275== For counts of detected and suppressed errors, rerun with: -v
- ==31275== Use --track-origins=yes to see where uninitialised values come from
- ==31275== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement