Guest User

Untitled

a guest
Sep 29th, 2019
322
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. ==7688== Memcheck, a memory error detector
  2. ==7688== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
  3. ==7688== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
  4. ==7688== Command: ./a.out
  5. ==7688==
  6. ==7688== Thread 8:
  7. ==7688== Invalid read of size 32
  8. ==7688== at 0x108D30: _mm256_add_epi8 (avx2intrin.h:107)
  9. ==7688== by 0x108D30: main._omp_fn.0 (minimal-memleaks.cpp:25)
  10. ==7688== by 0x51DB95D: ??? (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
  11. ==7688== by 0x5FA66DA: start_thread (pthread_create.c:463)
  12. ==7688== by 0x551588E: clone (clone.S:95)
  13. ==7688== Address 0x61e1980 is 29,280 bytes inside an unallocated block of size 4,077,760 in arena "client"
  14. ==7688==
  15. ==7688== Invalid read of size 32
  16. ==7688== at 0x108D45: _mm256_add_epi8 (avx2intrin.h:107)
  17. ==7688== by 0x108D45: main._omp_fn.0 (minimal-memleaks.cpp:25)
  18. ==7688== by 0x51DB95D: ??? (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
  19. ==7688== by 0x5FA66DA: start_thread (pthread_create.c:463)
  20. ==7688== by 0x551588E: clone (clone.S:95)
  21. ==7688== Address 0x61e2180 is 31,328 bytes inside an unallocated block of size 4,077,760 in arena "client"
  22. ==7688==
  23. ==7688== Thread 1:
  24. ==7688== Invalid read of size 32
  25. ==7688== at 0x108D45: _mm256_add_epi8 (avx2intrin.h:107)
  26. ==7688== by 0x108D45: main._omp_fn.0 (minimal-memleaks.cpp:25)
  27. ==7688== by 0x51D2ECE: GOMP_parallel (in /usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0)
  28. ==7688== by 0x108AF0: main (minimal-memleaks.cpp:20)
  29. ==7688== Address 0x61d8580 is 0 bytes after a block of size 2,048 alloc'd
  30. ==7688== at 0x4C320A6: memalign (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  31. ==7688== by 0x108A89: main (minimal-memleaks.cpp:13)
  32. ==7688==
  33. ==7688== Conditional jump or move depends on uninitialised value(s)
  34. ==7688== at 0x547FA65: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1241)
  35. ==7688== by 0x5473976: fwrite (iofwrite.c:39)
  36. ==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)
  37. ==7688== by 0x108B30: operator<< <std::char_traits<char> > (ostream:509)
  38. ==7688== by 0x108B30: operator<< <std::char_traits<char> > (ostream:520)
  39. ==7688== by 0x108B30: main (minimal-memleaks.cpp:30)
  40. ==7688==
  41. ==7688== Syscall param write(buf) points to uninitialised byte(s)
  42. ==7688== at 0x5504187: write (write.c:27)
  43. ==7688== by 0x547F1BC: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1203)
  44. ==7688== by 0x5480F50: new_do_write (fileops.c:457)
  45. ==7688== by 0x5480F50: _IO_do_write@@GLIBC_2.2.5 (fileops.c:433)
  46. ==7688== by 0x5481402: _IO_file_overflow@@GLIBC_2.2.5 (fileops.c:798)
  47. ==7688== by 0x547C34A: putc (putc.c:31)
  48. ==7688== by 0x4F4F7B9: std::ostream::put(char) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.25)
  49. ==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)
  50. ==7688== by 0x108B38: operator<< (ostream:113)
  51. ==7688== by 0x108B38: main (minimal-memleaks.cpp:30)
  52. ==7688== Address 0x61da728 is 8 bytes inside a block of size 1,024 alloc'd
  53. ==7688== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  54. ==7688== by 0x547218B: _IO_file_doallocate (filedoalloc.c:101)
  55. ==7688== by 0x5482378: _IO_doallocbuf (genops.c:365)
  56. ==7688== by 0x5481497: _IO_file_overflow@@GLIBC_2.2.5 (fileops.c:759)
  57. ==7688== by 0x547F9EC: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1266)
  58. ==7688== by 0x5473976: fwrite (iofwrite.c:39)
  59. ==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)
  60. ==7688== by 0x108B16: operator<< <std::char_traits<char> > (ostream:561)
  61. ==7688== by 0x108B16: main (minimal-memleaks.cpp:30)
  62. ==7688==
  63. result: r
  64. ==7688==
  65. ==7688== HEAP SUMMARY:
  66. ==7688== in use at exit: 7,584 bytes in 15 blocks
  67. ==7688== total heap usage: 19 allocs, 4 frees, 116,176 bytes allocated
  68. ==7688==
  69. ==7688== LEAK SUMMARY:
  70. ==7688== definitely lost: 0 bytes in 0 blocks
  71. ==7688== indirectly lost: 0 bytes in 0 blocks
  72. ==7688== possibly lost: 3,344 bytes in 11 blocks
  73. ==7688== still reachable: 4,240 bytes in 4 blocks
  74. ==7688== suppressed: 0 bytes in 0 blocks
  75. ==7688== Rerun with --leak-check=full to see details of leaked memory
  76. ==7688==
  77. ==7688== For counts of detected and suppressed errors, rerun with: -v
  78. ==7688== Use --track-origins=yes to see where uninitialised values come from
  79. ==7688== ERROR SUMMARY: 57 errors from 5 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment