Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.73 KB | None | 0 0
  1. # valgrind ./a.out
  2. ==31275== Memcheck, a memory error detector
  3. ==31275== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  4. ==31275== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
  5. ==31275== Command: ./a.out
  6. ==31275==
  7. ==31275== Conditional jump or move depends on uninitialised value(s)
  8. ==31275== at 0x4011E14: index (in /usr/lib/ld-2.23.so)
  9. ==31275==
  10. ==31275== Conditional jump or move depends on uninitialised value(s)
  11. ==31275== at 0x4011E18: index (in /usr/lib/ld-2.23.so)
  12. ==31275==
  13. ==31275== Conditional jump or move depends on uninitialised value(s)
  14. ==31275== at 0x4005A5A: expand_dynamic_string_token (in /usr/lib/ld-2.23.so)
  15. ==31275==
  16. ==31275== Invalid write of size 4
  17. ==31275== at 0x103EA: f (test_valgrind.c:6)
  18. ==31275== by 0x103FB: main (test_valgrind.c:11)
  19. ==31275== Address 0x4947050 is 0 bytes after a block of size 40 alloc'd
  20. ==31275== at 0x483FD48: malloc (in /usr/lib/valgrind/vgpreload_memcheck-arm-linux.so)
  21. ==31275==
  22. ==31275==
  23. ==31275== HEAP SUMMARY:
  24. ==31275== in use at exit: 40 bytes in 1 blocks
  25. ==31275== total heap usage: 1 allocs, 0 frees, 40 bytes allocated
  26. ==31275==
  27. ==31275== LEAK SUMMARY:
  28. ==31275== definitely lost: 40 bytes in 1 blocks
  29. ==31275== indirectly lost: 0 bytes in 0 blocks
  30. ==31275== possibly lost: 0 bytes in 0 blocks
  31. ==31275== still reachable: 0 bytes in 0 blocks
  32. ==31275== suppressed: 0 bytes in 0 blocks
  33. ==31275== Rerun with --leak-check=full to see details of leaked memory
  34. ==31275==
  35. ==31275== For counts of detected and suppressed errors, rerun with: -v
  36. ==31275== Use --track-origins=yes to see where uninitialised values come from
  37. ==31275== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement