Advertisement
Guest User

valgrind with boost

a guest
Jul 1st, 2011
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1.  
  2. ==9319== Memcheck, a memory error detector
  3. ==9319== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
  4. ==9319== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
  5. ==9319== Command: ./a.out http://google.com
  6. ==9319==
  7. url: http://google.com
  8. ==9319== Source and destination overlap in memcpy(0x7ce5960, 0x7ce5828, 528)
  9. ==9319== at 0x4C27B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  10. ==9319== by 0x4ED910E: boost::re_detail::raw_storage::insert(unsigned long, unsigned long) (in /usr/lib/libboost_regex.so.1.46.1)
  11. ==9319== by 0x4EBC17F: boost::re_detail::basic_regex_creator<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::insert_state(long, boost::re_detail::syntax_element_type, unsigned long) (in /usr/lib/libboost_regex.so.1.46.1)
  12. ==9319== by 0x4EBC299: boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::parse_repeat(unsigned long, unsigned long) (in /usr/lib/libboost_regex.so.1.46.1)
  13. ==9319== by 0x4EC51BD: boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::parse_extended() (in /usr/lib/libboost_regex.so.1.46.1)
  14. ==9319== by 0x4EC0610: boost::re_detail::basic_regex_parser<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::parse(char const*, char const*, unsigned int) (in /usr/lib/libboost_regex.so.1.46.1)
  15. ==9319== by 0x4EC61DC: boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::do_assign(char const*, char const*, unsigned int) (in /usr/lib/libboost_regex.so.1.46.1)
  16. ==9319== by 0x4042F1: boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, char const*, unsigned int) (basic_regex.hpp:379)
  17. ==9319== by 0x403E26: boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::assign(char const*, unsigned int) (basic_regex.hpp:364)
  18. ==9319== by 0x403981: boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<char> > >::basic_regex(char const*, unsigned int) (basic_regex.hpp:333)
  19. ==9319== by 0x402F99: main (regex.cpp:18)
  20. ==9319==
  21. scheme: http
  22. domain: google.com
  23. found: 0
  24. ==9319== Source and destination overlap in memcpy(0x7ce5058, 0x7ce505f, 10)
  25. ==9319== at 0x4C27B46: memcpy (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
  26. ==9319== by 0x51D67A8: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib/libstdc++.so.6.0.16)
  27. ==9319== by 0x51D6D20: std::string::erase(unsigned long, unsigned long) (in /usr/lib/libstdc++.so.6.0.16)
  28. ==9319== by 0x40334C: main (regex.cpp:42)
  29. ==9319==
  30. ==9319==
  31. ==9319== HEAP SUMMARY:
  32. ==9319== in use at exit: 0 bytes in 0 blocks
  33. ==9319== total heap usage: 33 allocs, 33 frees, 21,524 bytes allocated
  34. ==9319==
  35. ==9319== All heap blocks were freed -- no leaks are possible
  36. ==9319==
  37. ==9319== For counts of detected and suppressed errors, rerun with: -v
  38. ==9319== ERROR SUMMARY: 6 errors from 2 contexts (suppressed: 9 from 7)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement