Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- shijunxiao@m0212:~/NFD$ valgrind --leak-check=full build/unit-tests-daemon -t Face/TestGenericLinkService/Fragmentation/FragmentationOverMtu
- ==19292== Memcheck, a memory error detector
- ==19292== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
- ==19292== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
- ==19292== Command: build/unit-tests-daemon -t Face/TestGenericLinkService/Fragmentation/FragmentationOverMtu
- ==19292==
- Running 1 test case...
- ==19292== Conditional jump or move depends on uninitialised value(s)
- ==19292== at 0x5A626F5: ndn::encoding::Estimator::prependNonNegativeInteger(unsigned long) (estimator.cpp:83)
- ==19292== by 0x5A4FAA3: unsigned long ndn::encoding::prependNonNegativeIntegerBlock<false>(ndn::encoding::EncodingImpl<false>&, unsigned int, unsigned long) (block-helpers.cpp:31)
- ==19292== by 0x5390AD: ndn::lp::detail::EncodeHelper<false, std::integral_constant<unsigned long, 81ul>, unsigned long>::encode(ndn::encoding::EncodingImpl<false>&, unsigned long) (field-decl.hpp:93)
- ==19292== by 0x5363F5: unsigned long ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::encode<false, unsigned long>(ndn::encoding::EncodingImpl<false>&, unsigned long const&) (field-decl.hpp:142)
- ==19292== by 0x5335AD: ndn::lp::Packet& ndn::lp::Packet::add<ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false> >(ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::ValueType const&) (packet.hpp:163)
- ==19292== by 0x532BCA: ndn::lp::Packet& ndn::lp::Packet::set<ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false> >(ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::ValueType const&) (packet.hpp:147)
- ==19292== by 0x87A12D: nfd::face::GenericLinkService::assignSequence(ndn::lp::Packet&) (generic-link-service.cpp:163)
- ==19292== by 0x87D693: std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)>::operator()(nfd::face::GenericLinkService*, ndn::lp::Packet&) const (in /home/shijunxiao/NFD/build/unit-tests-daemon)
- ==19292== by 0x87D26C: _ZNSt5_BindIFSt7_Mem_fnIMN3nfd4face18GenericLinkServiceEFvRN3ndn2lp6PacketEEEPS3_St12_PlaceholderILi1EEEE6__callIvIS7_EILi0ELi1EEEET_OSt5tupleIIDpT0_EESt12_Index_tupleIIXspT1_EEE (functional:1146)
- ==19292== by 0x87CA52: void std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)>::operator()<ndn::lp::Packet&, void>(ndn::lp::Packet&&&) (functional:1205)
- ==19292== by 0x87BEA6: std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)> std::for_each<__gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)> >(__gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, __gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)>) (stl_algo.h:4379)
- ==19292== by 0x87A1BB: nfd::face::GenericLinkService::assignSequences(std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> >&) (generic-link-service.cpp:169)
- ==19292==
- ==19292== Conditional jump or move depends on uninitialised value(s)
- ==19292== at 0x5A618CE: ndn::encoding::Encoder::prependNonNegativeInteger(unsigned long) (encoder.cpp:203)
- ==19292== by 0x5A4FB08: unsigned long ndn::encoding::prependNonNegativeIntegerBlock<true>(ndn::encoding::EncodingImpl<true>&, unsigned int, unsigned long) (block-helpers.cpp:31)
- ==19292== by 0x5390D4: ndn::lp::detail::EncodeHelper<true, std::integral_constant<unsigned long, 81ul>, unsigned long>::encode(ndn::encoding::EncodingImpl<true>&, unsigned long) (field-decl.hpp:93)
- ==19292== by 0x53641D: unsigned long ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::encode<true, unsigned long>(ndn::encoding::EncodingImpl<true>&, unsigned long const&) (field-decl.hpp:142)
- ==19292== by 0x5335DF: ndn::lp::Packet& ndn::lp::Packet::add<ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false> >(ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::ValueType const&) (packet.hpp:165)
- ==19292== by 0x532BCA: ndn::lp::Packet& ndn::lp::Packet::set<ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false> >(ndn::lp::detail::FieldDecl<ndn::lp::field_location_tags::Header, unsigned long, 81ul, false>::ValueType const&) (packet.hpp:147)
- ==19292== by 0x87A12D: nfd::face::GenericLinkService::assignSequence(ndn::lp::Packet&) (generic-link-service.cpp:163)
- ==19292== by 0x87D693: std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)>::operator()(nfd::face::GenericLinkService*, ndn::lp::Packet&) const (in /home/shijunxiao/NFD/build/unit-tests-daemon)
- ==19292== by 0x87D26C: _ZNSt5_BindIFSt7_Mem_fnIMN3nfd4face18GenericLinkServiceEFvRN3ndn2lp6PacketEEEPS3_St12_PlaceholderILi1EEEE6__callIvIS7_EILi0ELi1EEEET_OSt5tupleIIDpT0_EESt12_Index_tupleIIXspT1_EEE (functional:1146)
- ==19292== by 0x87CA52: void std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)>::operator()<ndn::lp::Packet&, void>(ndn::lp::Packet&&&) (functional:1205)
- ==19292== by 0x87BEA6: std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)> std::for_each<__gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)> >(__gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, __gnu_cxx::__normal_iterator<ndn::lp::Packet*, std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> > >, std::_Bind<std::_Mem_fn<void (nfd::face::GenericLinkService::*)(ndn::lp::Packet&)> ()(nfd::face::GenericLinkService*, std::_Placeholder<1>)>) (stl_algo.h:4379)
- ==19292== by 0x87A1BB: nfd::face::GenericLinkService::assignSequences(std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> >&) (generic-link-service.cpp:169)
- ==19292==
- *** No errors detected
- ==19292== Invalid read of size 8
- ==19292== at 0x75E42A8: wcscmp (wcscmp.S:479)
- ==19292== by 0x6DA1113: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6DA1198: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D95A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D95C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x757E5B0: __run_exit_handlers (exit.c:78)
- ==19292== by 0x757E634: exit (exit.c:100)
- ==19292== by 0x7564773: (below main) (libc-start.c:258)
- ==19292== Address 0xa3afba8 is 0 bytes after a block of size 8 alloc'd
- ==19292== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==19292== by 0x6DA0DED: std::moneypunct<wchar_t, false>::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D9811E: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D9865E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x5FE8A3A: boost::filesystem3::path::wchar_t_codecvt_facet() (in /usr/lib/libboost_filesystem.so.1.48.0)
- ==19292== by 0x5FE5076: boost::filesystem3::detail::current_path(boost::system::error_code*) (in /usr/lib/libboost_filesystem.so.1.48.0)
- ==19292== by 0x68701A: boost::filesystem3::current_path() (operations.hpp:360)
- ==19292== by 0x681DB7: __static_initialization_and_destruction_0(int, int) (command-validator.t.cpp:88)
- ==19292== by 0x682746: _GLOBAL__sub_I__ZN3nfd5tests20MgmtCommandValidator7TwoKeys11test_methodEv (command-validator.t.cpp:656)
- ==19292== by 0x9A955C: __libc_csu_init (in /home/shijunxiao/NFD/build/unit-tests-daemon)
- ==19292== by 0x75646FF: (below main) (libc-start.c:185)
- ==19292==
- ==19292== Invalid read of size 8
- ==19292== at 0x75E42A8: wcscmp (wcscmp.S:479)
- ==19292== by 0x6DA1003: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6DA1088: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D95A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D95C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x757E5B0: __run_exit_handlers (exit.c:78)
- ==19292== by 0x757E634: exit (exit.c:100)
- ==19292== by 0x7564773: (below main) (libc-start.c:258)
- ==19292== Address 0xa3afdd8 is 0 bytes after a block of size 8 alloc'd
- ==19292== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==19292== by 0x6DA07FD: std::moneypunct<wchar_t, true>::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D9816B: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x6D9865E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
- ==19292== by 0x5FE8A3A: boost::filesystem3::path::wchar_t_codecvt_facet() (in /usr/lib/libboost_filesystem.so.1.48.0)
- ==19292== by 0x5FE5076: boost::filesystem3::detail::current_path(boost::system::error_code*) (in /usr/lib/libboost_filesystem.so.1.48.0)
- ==19292== by 0x68701A: boost::filesystem3::current_path() (operations.hpp:360)
- ==19292== by 0x681DB7: __static_initialization_and_destruction_0(int, int) (command-validator.t.cpp:88)
- ==19292== by 0x682746: _GLOBAL__sub_I__ZN3nfd5tests20MgmtCommandValidator7TwoKeys11test_methodEv (command-validator.t.cpp:656)
- ==19292== by 0x9A955C: __libc_csu_init (in /home/shijunxiao/NFD/build/unit-tests-daemon)
- ==19292== by 0x75646FF: (below main) (libc-start.c:185)
- ==19292==
- ==19292==
- ==19292== HEAP SUMMARY:
- ==19292== in use at exit: 552 bytes in 5 blocks
- ==19292== total heap usage: 4,595 allocs, 4,590 frees, 375,030 bytes allocated
- ==19292==
- ==19292== LEAK SUMMARY:
- ==19292== definitely lost: 0 bytes in 0 blocks
- ==19292== indirectly lost: 0 bytes in 0 blocks
- ==19292== possibly lost: 0 bytes in 0 blocks
- ==19292== still reachable: 552 bytes in 5 blocks
- ==19292== suppressed: 0 bytes in 0 blocks
- ==19292== Reachable blocks (those to which a pointer was found) are not shown.
- ==19292== To see them, rerun with: --leak-check=full --show-reachable=yes
- ==19292==
- ==19292== For counts of detected and suppressed errors, rerun with: -v
- ==19292== Use --track-origins=yes to see where uninitialised values come from
- ==19292== ERROR SUMMARY: 16 errors from 4 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement