Advertisement
Guest User

Untitled

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