Advertisement
yoursunny

ndn-cxx 2528,24 valgrind Face/TestGenericLinkService/Fragmen

Nov 10th, 2015
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.63 KB | None | 0 0
  1. shijunxiao@m0212:~/NFD$ valgrind --leak-check=full build/unit-tests-daemon -t Face/TestGenericLinkService/Fragmentation/FragmentationOverMtu
  2. ==19292== Memcheck, a memory error detector
  3. ==19292== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
  4. ==19292== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
  5. ==19292== Command: build/unit-tests-daemon -t Face/TestGenericLinkService/Fragmentation/FragmentationOverMtu
  6. ==19292==
  7. Running 1 test case...
  8. ==19292== Conditional jump or move depends on uninitialised value(s)
  9. ==19292== at 0x5A626F5: ndn::encoding::Estimator::prependNonNegativeInteger(unsigned long) (estimator.cpp:83)
  10. ==19292== by 0x5A4FAA3: unsigned long ndn::encoding::prependNonNegativeIntegerBlock<false>(ndn::encoding::EncodingImpl<false>&, unsigned int, unsigned long) (block-helpers.cpp:31)
  11. ==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)
  12. ==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)
  13. ==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)
  14. ==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)
  15. ==19292== by 0x87A12D: nfd::face::GenericLinkService::assignSequence(ndn::lp::Packet&) (generic-link-service.cpp:163)
  16. ==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)
  17. ==19292== by 0x87D26C: _ZNSt5_BindIFSt7_Mem_fnIMN3nfd4face18GenericLinkServiceEFvRN3ndn2lp6PacketEEEPS3_St12_PlaceholderILi1EEEE6__callIvIS7_EILi0ELi1EEEET_OSt5tupleIIDpT0_EESt12_Index_tupleIIXspT1_EEE (functional:1146)
  18. ==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)
  19. ==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)
  20. ==19292== by 0x87A1BB: nfd::face::GenericLinkService::assignSequences(std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> >&) (generic-link-service.cpp:169)
  21. ==19292==
  22. ==19292== Conditional jump or move depends on uninitialised value(s)
  23. ==19292== at 0x5A618CE: ndn::encoding::Encoder::prependNonNegativeInteger(unsigned long) (encoder.cpp:203)
  24. ==19292== by 0x5A4FB08: unsigned long ndn::encoding::prependNonNegativeIntegerBlock<true>(ndn::encoding::EncodingImpl<true>&, unsigned int, unsigned long) (block-helpers.cpp:31)
  25. ==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)
  26. ==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)
  27. ==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)
  28. ==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)
  29. ==19292== by 0x87A12D: nfd::face::GenericLinkService::assignSequence(ndn::lp::Packet&) (generic-link-service.cpp:163)
  30. ==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)
  31. ==19292== by 0x87D26C: _ZNSt5_BindIFSt7_Mem_fnIMN3nfd4face18GenericLinkServiceEFvRN3ndn2lp6PacketEEEPS3_St12_PlaceholderILi1EEEE6__callIvIS7_EILi0ELi1EEEET_OSt5tupleIIDpT0_EESt12_Index_tupleIIXspT1_EEE (functional:1146)
  32. ==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)
  33. ==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)
  34. ==19292== by 0x87A1BB: nfd::face::GenericLinkService::assignSequences(std::vector<ndn::lp::Packet, std::allocator<ndn::lp::Packet> >&) (generic-link-service.cpp:169)
  35. ==19292==
  36.  
  37. *** No errors detected
  38. ==19292== Invalid read of size 8
  39. ==19292== at 0x75E42A8: wcscmp (wcscmp.S:479)
  40. ==19292== by 0x6DA1113: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  41. ==19292== by 0x6DA1198: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  42. ==19292== by 0x6D95A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  43. ==19292== by 0x6D95C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  44. ==19292== by 0x757E5B0: __run_exit_handlers (exit.c:78)
  45. ==19292== by 0x757E634: exit (exit.c:100)
  46. ==19292== by 0x7564773: (below main) (libc-start.c:258)
  47. ==19292== Address 0xa3afba8 is 0 bytes after a block of size 8 alloc'd
  48. ==19292== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  49. ==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)
  50. ==19292== by 0x6D9811E: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  51. ==19292== by 0x6D9865E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  52. ==19292== by 0x5FE8A3A: boost::filesystem3::path::wchar_t_codecvt_facet() (in /usr/lib/libboost_filesystem.so.1.48.0)
  53. ==19292== by 0x5FE5076: boost::filesystem3::detail::current_path(boost::system::error_code*) (in /usr/lib/libboost_filesystem.so.1.48.0)
  54. ==19292== by 0x68701A: boost::filesystem3::current_path() (operations.hpp:360)
  55. ==19292== by 0x681DB7: __static_initialization_and_destruction_0(int, int) (command-validator.t.cpp:88)
  56. ==19292== by 0x682746: _GLOBAL__sub_I__ZN3nfd5tests20MgmtCommandValidator7TwoKeys11test_methodEv (command-validator.t.cpp:656)
  57. ==19292== by 0x9A955C: __libc_csu_init (in /home/shijunxiao/NFD/build/unit-tests-daemon)
  58. ==19292== by 0x75646FF: (below main) (libc-start.c:185)
  59. ==19292==
  60. ==19292== Invalid read of size 8
  61. ==19292== at 0x75E42A8: wcscmp (wcscmp.S:479)
  62. ==19292== by 0x6DA1003: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  63. ==19292== by 0x6DA1088: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  64. ==19292== by 0x6D95A79: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  65. ==19292== by 0x6D95C4C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  66. ==19292== by 0x757E5B0: __run_exit_handlers (exit.c:78)
  67. ==19292== by 0x757E634: exit (exit.c:100)
  68. ==19292== by 0x7564773: (below main) (libc-start.c:258)
  69. ==19292== Address 0xa3afdd8 is 0 bytes after a block of size 8 alloc'd
  70. ==19292== at 0x4C2AC27: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  71. ==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)
  72. ==19292== by 0x6D9816B: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  73. ==19292== by 0x6D9865E: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.16)
  74. ==19292== by 0x5FE8A3A: boost::filesystem3::path::wchar_t_codecvt_facet() (in /usr/lib/libboost_filesystem.so.1.48.0)
  75. ==19292== by 0x5FE5076: boost::filesystem3::detail::current_path(boost::system::error_code*) (in /usr/lib/libboost_filesystem.so.1.48.0)
  76. ==19292== by 0x68701A: boost::filesystem3::current_path() (operations.hpp:360)
  77. ==19292== by 0x681DB7: __static_initialization_and_destruction_0(int, int) (command-validator.t.cpp:88)
  78. ==19292== by 0x682746: _GLOBAL__sub_I__ZN3nfd5tests20MgmtCommandValidator7TwoKeys11test_methodEv (command-validator.t.cpp:656)
  79. ==19292== by 0x9A955C: __libc_csu_init (in /home/shijunxiao/NFD/build/unit-tests-daemon)
  80. ==19292== by 0x75646FF: (below main) (libc-start.c:185)
  81. ==19292==
  82. ==19292==
  83. ==19292== HEAP SUMMARY:
  84. ==19292== in use at exit: 552 bytes in 5 blocks
  85. ==19292== total heap usage: 4,595 allocs, 4,590 frees, 375,030 bytes allocated
  86. ==19292==
  87. ==19292== LEAK SUMMARY:
  88. ==19292== definitely lost: 0 bytes in 0 blocks
  89. ==19292== indirectly lost: 0 bytes in 0 blocks
  90. ==19292== possibly lost: 0 bytes in 0 blocks
  91. ==19292== still reachable: 552 bytes in 5 blocks
  92. ==19292== suppressed: 0 bytes in 0 blocks
  93. ==19292== Reachable blocks (those to which a pointer was found) are not shown.
  94. ==19292== To see them, rerun with: --leak-check=full --show-reachable=yes
  95. ==19292==
  96. ==19292== For counts of detected and suppressed errors, rerun with: -v
  97. ==19292== Use --track-origins=yes to see where uninitialised values come from
  98. ==19292== ERROR SUMMARY: 16 errors from 4 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement