Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==3027== Memcheck, a memory error detector
- ==3027== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
- ==3027== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
- ==3027== Command: ./a
- ==3027==
- Number of non zero elements 4
- Number of non zero elements 4
- ==3027== Invalid write of size 4
- ==3027== at 0x401499: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== Address 0x5aba878 is 0 bytes after a block of size 8 alloc'd
- ==3027== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3027== by 0x40134C: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027==
- ==3027== Invalid write of size 8
- ==3027== at 0x4014E6: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== Address 0x5aba7e0 is 0 bytes after a block of size 16 alloc'd
- ==3027== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3027== by 0x4012D8: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027==
- ==3027== Invalid write of size 8
- ==3027== at 0x401534: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== Address 0x5aba830 is 0 bytes after a block of size 16 alloc'd
- ==3027== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3027== by 0x401312: Matrix::Matrix(char const*) (in /home/asiaron/Documents/с++/lab22/a)
- ==3027== by 0x400E8F: main (in /home/asiaron/Documents/с++/lab22/a)
- ==3027==
- 0x5ab7910 0x5ab7970 0x5ab79d0 0x5ab7a80 0x5ab7a30
- ==3027==
- ==3027== HEAP SUMMARY:
- ==3027== in use at exit: 72,704 bytes in 1 blocks
- ==3027== total heap usage: 57 allocs, 56 frees, 92,540 bytes allocated
- ==3027==
- ==3027== LEAK SUMMARY:
- ==3027== definitely lost: 0 bytes in 0 blocks
- ==3027== indirectly lost: 0 bytes in 0 blocks
- ==3027== possibly lost: 0 bytes in 0 blocks
- ==3027== still reachable: 72,704 bytes in 1 blocks
- ==3027== suppressed: 0 bytes in 0 blocks
- ==3027== Rerun with --leak-check=full to see details of leaked memory
- ==3027==
- ==3027== For counts of detected and suppressed errors, rerun with: -v
- ==3027== ERROR SUMMARY: 6 errors from 3 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement