Advertisement
Guest User

valgrind report

a guest
Mar 22nd, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.91 KB | None | 0 0
  1.  
  2. ==18905== Memcheck, a memory error detector
  3. ==18905== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
  4. ==18905== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
  5. ==18905== Command: ./debug
  6. ==18905==
  7. ==18905==
  8. ==18905== HEAP SUMMARY:
  9. ==18905== in use at exit: 74,048 bytes in 9 blocks
  10. ==18905== total heap usage: 26 allocs, 17 frees, 180,537,360 bytes allocated
  11. ==18905==
  12. ==18905== 192 bytes in 4 blocks are still reachable in loss record 1 of 3
  13. ==18905== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  14. ==18905== by 0x406D80: __gnu_cxx::new_allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> >::allocate(unsigned long, void const*) (in /path/to/debug)
  15. ==18905== by 0x406CFB: std::allocator_traits<std::allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> > >::allocate(std::allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> >&, unsigned long) (in /path/to/debug)
  16. ==18905== by 0x406AE4: std::__allocated_ptr<std::allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> > > std::__allocate_guarded<std::allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> > >(std::allocator<std::_Sp_counted_ptr_inplace<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, (__gnu_cxx::_Lock_policy)2> >&) (in /path/to/debug)
  17. ==18905== by 0x40690A: std::__shared_count<(__gnu_cxx::_Lock_policy)2>::__shared_count<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, std::_Bind_simple<void (*())()> >(std::_Sp_make_shared_tag, std::thread::_Impl<std::_Bind_simple<void (*())()> >*, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > > const&, std::_Bind_simple<void (*())()>&&) (shared_ptr_base.h:615)
  18. ==18905== by 0x406875: std::__shared_ptr<std::thread::_Impl<std::_Bind_simple<void (*())()> >, (__gnu_cxx::_Lock_policy)2>::__shared_ptr<std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, std::_Bind_simple<void (*())()> >(std::_Sp_make_shared_tag, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > > const&, std::_Bind_simple<void (*())()>&&) (shared_ptr_base.h:1096)
  19. ==18905== by 0x40680C: std::shared_ptr<std::thread::_Impl<std::_Bind_simple<void (*())()> > >::shared_ptr<std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, std::_Bind_simple<void (*())()> >(std::_Sp_make_shared_tag, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > > const&, std::_Bind_simple<void (*())()>&&) (shared_ptr.h:319)
  20. ==18905== by 0x40677E: std::shared_ptr<std::thread::_Impl<std::_Bind_simple<void (*())()> > > std::allocate_shared<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > >, std::_Bind_simple<void (*())()> >(std::allocator<std::thread::_Impl<std::_Bind_simple<void (*())()> > > const&, std::_Bind_simple<void (*())()>&&) (in /path/to/debug)
  21. ==18905== by 0x4066EF: std::shared_ptr<std::thread::_Impl<std::_Bind_simple<void (*())()> > > std::make_shared<std::thread::_Impl<std::_Bind_simple<void (*())()> >, std::_Bind_simple<void (*())()> >(std::_Bind_simple<void (*())()>&&) (shared_ptr.h:635)
  22. ==18905== by 0x4065C2: std::shared_ptr<std::thread::_Impl<std::_Bind_simple<void (*())()> > > std::thread::_M_make_routine<std::_Bind_simple<void (*())()> >(std::_Bind_simple<void (*())()>&&) (in /path/to/debug)
  23. ==18905== by 0x404E83: std::thread::thread<void (&)()>(void (&)()) (thread:137)
  24. ==18905== by 0x404979: main (DEBUG.cpp:59)
  25. ==18905==
  26. ==18905== 1,152 bytes in 4 blocks are possibly lost in loss record 2 of 3
  27. ==18905== at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  28. ==18905== by 0x40138B4: allocate_dtv (dl-tls.c:322)
  29. ==18905== by 0x40138B4: _dl_allocate_tls (dl-tls.c:539)
  30. ==18905== by 0x56E326E: allocate_stack (allocatestack.c:588)
  31. ==18905== by 0x56E326E: pthread_create@@GLIBC_2.2.5 (pthread_create.c:539)
  32. ==18905== by 0x4EF2DC2: std::thread::_M_start_thread(std::shared_ptr<std::thread::_Impl_base>, void (*)()) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
  33. ==18905== by 0x404EAB: std::thread::thread<void (&)()>(void (&)()) (thread:137)
  34. ==18905== by 0x404979: main (DEBUG.cpp:59)
  35. ==18905==
  36. ==18905== 72,704 bytes in 1 blocks are still reachable in loss record 3 of 3
  37. ==18905== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  38. ==18905== by 0x4EC3EFF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
  39. ==18905== by 0x40106C9: call_init.part.0 (dl-init.c:72)
  40. ==18905== by 0x40107DA: call_init (dl-init.c:30)
  41. ==18905== by 0x40107DA: _dl_init (dl-init.c:120)
  42. ==18905== by 0x4000C69: ??? (in /lib/x86_64-linux-gnu/ld-2.23.so)
  43. ==18905==
  44. ==18905== LEAK SUMMARY:
  45. ==18905== definitely lost: 0 bytes in 0 blocks
  46. ==18905== indirectly lost: 0 bytes in 0 blocks
  47. ==18905== possibly lost: 1,152 bytes in 4 blocks
  48. ==18905== still reachable: 72,896 bytes in 5 blocks
  49. ==18905== suppressed: 0 bytes in 0 blocks
  50. ==18905==
  51. ==18905== For counts of detected and suppressed errors, rerun with: -v
  52. ==18905== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement