Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. Number of non zero elements 4
  2. ==3163== Invalid write of size 4
  3. ==3163== at 0x401499: Matrix::Matrix(char const*) (matrix.cpp:46)
  4. ==3163== by 0x400E8F: main (main.cpp:7)
  5. ==3163== Address 0x5aba878 is 0 bytes after a block of size 8 alloc'd
  6. ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  7. ==3163== by 0x40134C: Matrix::Matrix(char const*) (matrix.cpp:36)
  8. ==3163== by 0x400E8F: main (main.cpp:7)
  9. ==3163==
  10. ==3163== Invalid write of size 8
  11. ==3163== at 0x4014E6: Matrix::Matrix(char const*) (matrix.cpp:47)
  12. ==3163== by 0x400E8F: main (main.cpp:7)
  13. ==3163== Address 0x5aba7e0 is 0 bytes after a block of size 16 alloc'd
  14. ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  15. ==3163== by 0x4012D8: Matrix::Matrix(char const*) (matrix.cpp:34)
  16. ==3163== by 0x400E8F: main (main.cpp:7)
  17. ==3163==
  18. ==3163== Invalid write of size 8
  19. ==3163== at 0x401534: Matrix::Matrix(char const*) (matrix.cpp:48)
  20. ==3163== by 0x400E8F: main (main.cpp:7)
  21. ==3163== Address 0x5aba830 is 0 bytes after a block of size 16 alloc'd
  22. ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  23. ==3163== by 0x401312: Matrix::Matrix(char const*) (matrix.cpp:35)
  24. ==3163== by 0x400E8F: main (main.cpp:7)
  25. ==3163==
  26.  
  27. 0x5ab7910 0x5ab7970 0x5ab79d0 0x5ab7a80 0x5ab7a30
  28. ==3163==
  29. ==3163== HEAP SUMMARY:
  30. ==3163== in use at exit: 72,704 bytes in 1 blocks
  31. ==3163== total heap usage: 57 allocs, 56 frees, 92,540 bytes allocated
  32. ==3163==
  33. ==3163== LEAK SUMMARY:
  34. ==3163== definitely lost: 0 bytes in 0 blocks
  35. ==3163== indirectly lost: 0 bytes in 0 blocks
  36. ==3163== possibly lost: 0 bytes in 0 blocks
  37. ==3163== still reachable: 72,704 bytes in 1 blocks
  38. ==3163== suppressed: 0 bytes in 0 blocks
  39. ==3163== Rerun with --leak-check=full to see details of leaked memory
  40. ==3163==
  41. ==3163== For counts of detected and suppressed errors, rerun with: -v
  42. ==3163== ERROR SUMMARY: 6 errors from 3 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement