Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Number of non zero elements 4
- ==3163== Invalid write of size 4
- ==3163== at 0x401499: Matrix::Matrix(char const*) (matrix.cpp:46)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163== Address 0x5aba878 is 0 bytes after a block of size 8 alloc'd
- ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3163== by 0x40134C: Matrix::Matrix(char const*) (matrix.cpp:36)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163==
- ==3163== Invalid write of size 8
- ==3163== at 0x4014E6: Matrix::Matrix(char const*) (matrix.cpp:47)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163== Address 0x5aba7e0 is 0 bytes after a block of size 16 alloc'd
- ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3163== by 0x4012D8: Matrix::Matrix(char const*) (matrix.cpp:34)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163==
- ==3163== Invalid write of size 8
- ==3163== at 0x401534: Matrix::Matrix(char const*) (matrix.cpp:48)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163== Address 0x5aba830 is 0 bytes after a block of size 16 alloc'd
- ==3163== at 0x4C2C820: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==3163== by 0x401312: Matrix::Matrix(char const*) (matrix.cpp:35)
- ==3163== by 0x400E8F: main (main.cpp:7)
- ==3163==
- 0x5ab7910 0x5ab7970 0x5ab79d0 0x5ab7a80 0x5ab7a30
- ==3163==
- ==3163== HEAP SUMMARY:
- ==3163== in use at exit: 72,704 bytes in 1 blocks
- ==3163== total heap usage: 57 allocs, 56 frees, 92,540 bytes allocated
- ==3163==
- ==3163== LEAK SUMMARY:
- ==3163== definitely lost: 0 bytes in 0 blocks
- ==3163== indirectly lost: 0 bytes in 0 blocks
- ==3163== possibly lost: 0 bytes in 0 blocks
- ==3163== still reachable: 72,704 bytes in 1 blocks
- ==3163== suppressed: 0 bytes in 0 blocks
- ==3163== Rerun with --leak-check=full to see details of leaked memory
- ==3163==
- ==3163== For counts of detected and suppressed errors, rerun with: -v
- ==3163== ERROR SUMMARY: 6 errors from 3 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement