Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ==18905== Memcheck, a memory error detector
- ==18905== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
- ==18905== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
- ==18905== Command: ./debug
- ==18905==
- ==18905==
- ==18905== HEAP SUMMARY:
- ==18905== in use at exit: 74,048 bytes in 9 blocks
- ==18905== total heap usage: 26 allocs, 17 frees, 180,537,360 bytes allocated
- ==18905==
- ==18905== 192 bytes in 4 blocks are still reachable in loss record 1 of 3
- ==18905== at 0x4C2E0EF: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==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)
- ==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)
- ==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)
- ==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)
- ==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)
- ==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)
- ==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)
- ==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)
- ==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)
- ==18905== by 0x404E83: std::thread::thread<void (&)()>(void (&)()) (thread:137)
- ==18905== by 0x404979: main (DEBUG.cpp:59)
- ==18905==
- ==18905== 1,152 bytes in 4 blocks are possibly lost in loss record 2 of 3
- ==18905== at 0x4C2FB55: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18905== by 0x40138B4: allocate_dtv (dl-tls.c:322)
- ==18905== by 0x40138B4: _dl_allocate_tls (dl-tls.c:539)
- ==18905== by 0x56E326E: allocate_stack (allocatestack.c:588)
- ==18905== by 0x56E326E: pthread_create@@GLIBC_2.2.5 (pthread_create.c:539)
- ==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)
- ==18905== by 0x404EAB: std::thread::thread<void (&)()>(void (&)()) (thread:137)
- ==18905== by 0x404979: main (DEBUG.cpp:59)
- ==18905==
- ==18905== 72,704 bytes in 1 blocks are still reachable in loss record 3 of 3
- ==18905== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==18905== by 0x4EC3EFF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21)
- ==18905== by 0x40106C9: call_init.part.0 (dl-init.c:72)
- ==18905== by 0x40107DA: call_init (dl-init.c:30)
- ==18905== by 0x40107DA: _dl_init (dl-init.c:120)
- ==18905== by 0x4000C69: ??? (in /lib/x86_64-linux-gnu/ld-2.23.so)
- ==18905==
- ==18905== LEAK SUMMARY:
- ==18905== definitely lost: 0 bytes in 0 blocks
- ==18905== indirectly lost: 0 bytes in 0 blocks
- ==18905== possibly lost: 1,152 bytes in 4 blocks
- ==18905== still reachable: 72,896 bytes in 5 blocks
- ==18905== suppressed: 0 bytes in 0 blocks
- ==18905==
- ==18905== For counts of detected and suppressed errors, rerun with: -v
- ==18905== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement