Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==7688== Memcheck, a memory error detector
- ==7688== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
- ==7688== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
- ==7688== Command: ./a.out
- ==7688==
- ==7688== Thread 8:
- ==7688== Invalid read of size 32
- ==7688== at 0x108D30: _mm256_add_epi8 (avx2intrin.h:107)
- ==7688== by 0x108D30: main._omp_fn.0 (minimal-memleaks.cpp:25)
- ==7688== by 0x51DB95D: ??? (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
- ==7688== by 0x5FA66DA: start_thread (pthread_create.c:463)
- ==7688== by 0x551588E: clone (clone.S:95)
- ==7688== Address 0x61e1980 is 29,280 bytes inside an unallocated block of size 4,077,760 in arena "client"
- ==7688==
- ==7688== Invalid read of size 32
- ==7688== at 0x108D45: _mm256_add_epi8 (avx2intrin.h:107)
- ==7688== by 0x108D45: main._omp_fn.0 (minimal-memleaks.cpp:25)
- ==7688== by 0x51DB95D: ??? (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
- ==7688== by 0x5FA66DA: start_thread (pthread_create.c:463)
- ==7688== by 0x551588E: clone (clone.S:95)
- ==7688== Address 0x61e2180 is 31,328 bytes inside an unallocated block of size 4,077,760 in arena "client"
- ==7688==
- ==7688== Thread 1:
- ==7688== Invalid read of size 32
- ==7688== at 0x108D45: _mm256_add_epi8 (avx2intrin.h:107)
- ==7688== by 0x108D45: main._omp_fn.0 (minimal-memleaks.cpp:25)
- ==7688== by 0x51D2ECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
- ==7688== by 0x108AF0: main (minimal-memleaks.cpp:20)
- ==7688== Address 0x61d8580 is 0 bytes after a block of size 2,048 alloc'd
- ==7688== at 0x4C320A6: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==7688== by 0x108A89: main (minimal-memleaks.cpp:13)
- ==7688==
- ==7688== Conditional jump or move depends on uninitialised value(s)
- ==7688== at 0x547FA65: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1241)
- ==7688== by 0x5473976: fwrite (iofwrite.c:39)
- ==7688== by 0x4F4FCB3: std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
- ==7688== by 0x108B30: operator<< <std::char_traits<char> > (ostream:509)
- ==7688== by 0x108B30: operator<< <std::char_traits<char> > (ostream:520)
- ==7688== by 0x108B30: main (minimal-memleaks.cpp:30)
- ==7688==
- ==7688== Syscall param write(buf) points to uninitialised byte(s)
- ==7688== at 0x5504187: write (write.c:27)
- ==7688== by 0x547F1BC: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1203)
- ==7688== by 0x5480F50: new_do_write (fileops.c:457)
- ==7688== by 0x5480F50: _IO_do_write@@GLIBC_2.2.5 (fileops.c:433)
- ==7688== by 0x5481402: _IO_file_overflow@@GLIBC_2.2.5 (fileops.c:798)
- ==7688== by 0x547C34A: putc (putc.c:31)
- ==7688== by 0x4F4F7B9: std::ostream::put(char) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
- ==7688== by 0x4F4F9BE: std::basic_ostream<char, std::char_traits<char> >& std::endl<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
- ==7688== by 0x108B38: operator<< (ostream:113)
- ==7688== by 0x108B38: main (minimal-memleaks.cpp:30)
- ==7688== Address 0x61da728 is 8 bytes inside a block of size 1,024 alloc'd
- ==7688== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==7688== by 0x547218B: _IO_file_doallocate (filedoalloc.c:101)
- ==7688== by 0x5482378: _IO_doallocbuf (genops.c:365)
- ==7688== by 0x5481497: _IO_file_overflow@@GLIBC_2.2.5 (fileops.c:759)
- ==7688== by 0x547F9EC: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1266)
- ==7688== by 0x5473976: fwrite (iofwrite.c:39)
- ==7688== by 0x4F4FCB3: std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
- ==7688== by 0x108B16: operator<< <std::char_traits<char> > (ostream:561)
- ==7688== by 0x108B16: main (minimal-memleaks.cpp:30)
- ==7688==
- result: r
- ==7688==
- ==7688== HEAP SUMMARY:
- ==7688== in use at exit: 7,584 bytes in 15 blocks
- ==7688== total heap usage: 19 allocs, 4 frees, 116,176 bytes allocated
- ==7688==
- ==7688== LEAK SUMMARY:
- ==7688== definitely lost: 0 bytes in 0 blocks
- ==7688== indirectly lost: 0 bytes in 0 blocks
- ==7688== possibly lost: 3,344 bytes in 11 blocks
- ==7688== still reachable: 4,240 bytes in 4 blocks
- ==7688== suppressed: 0 bytes in 0 blocks
- ==7688== Rerun with --leak-check=full to see details of leaked memory
- ==7688==
- ==7688== For counts of detected and suppressed errors, rerun with: -v
- ==7688== Use --track-origins=yes to see where uninitialised values come from
- ==7688== ERROR SUMMARY: 57 errors from 5 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment