Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /tmp$ valgrind ./test
- ==21481== Memcheck, a memory error detector
- ==21481== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
- ==21481== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
- ==21481== Command: ./test
- ==21481==
- ==21481== Invalid read of size 8
- ==21481== at 0x5B0F948: wcscmp (wcscmp.S:500)
- ==21481== by 0x52C6884: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52C68F8: std::moneypunct<wchar_t, false>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BD534: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BD66C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x5AA8479: __cxa_finalize (cxa_finalize.c:55)
- ==21481== by 0x4E3AD12: ??? (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x400FF26: _dl_fini (dl-fini.c:253)
- ==21481== by 0x5AA8070: __run_exit_handlers (exit.c:77)
- ==21481== by 0x5AA80F4: exit (exit.c:99)
- ==21481== by 0x5A8DDEB: (below main) (libc-start.c:294)
- ==21481== Address 0x6055438 is 0 bytes after a block of size 8 alloc'd
- ==21481== at 0x4C2AFE7: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==21481== by 0x52C7F91: std::moneypunct<wchar_t, false>::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BFA37: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52C0501: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x4E422D1: boost::filesystem::path::codecvt() (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x4E43D9E: boost::filesystem::path::parent_path() const (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x4015D3: boost::filesystem::path::has_branch_path() const (in /tmp/test)
- ==21481== by 0x401295: main (in /tmp/test)
- ==21481==
- ==21481== Invalid read of size 8
- ==21481== at 0x5B0F948: wcscmp (wcscmp.S:500)
- ==21481== by 0x52C6794: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52C6808: std::moneypunct<wchar_t, true>::~moneypunct() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BD534: std::locale::_Impl::~_Impl() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BD66C: std::locale::~locale() (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x5AA8479: __cxa_finalize (cxa_finalize.c:55)
- ==21481== by 0x4E3AD12: ??? (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x400FF26: _dl_fini (dl-fini.c:253)
- ==21481== by 0x5AA8070: __run_exit_handlers (exit.c:77)
- ==21481== by 0x5AA80F4: exit (exit.c:99)
- ==21481== by 0x5A8DDEB: (below main) (libc-start.c:294)
- ==21481== Address 0x6055668 is 0 bytes after a block of size 8 alloc'd
- ==21481== at 0x4C2AFE7: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
- ==21481== by 0x52C7991: std::moneypunct<wchar_t, true>::_M_initialize_moneypunct(__locale_struct*, char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52BFA84: std::locale::_Impl::_Impl(char const*, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x52C0501: std::locale::locale(char const*) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.18)
- ==21481== by 0x4E422D1: boost::filesystem::path::codecvt() (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x4E43D9E: boost::filesystem::path::parent_path() const (in /usr/lib/libboost_filesystem.so.1.54.0)
- ==21481== by 0x4015D3: boost::filesystem::path::has_branch_path() const (in /tmp/test)
- ==21481== by 0x401295: main (in /tmp/test)
- ==21481==
- ==21481==
- ==21481== HEAP SUMMARY:
- ==21481== in use at exit: 0 bytes in 0 blocks
- ==21481== total heap usage: 98 allocs, 98 frees, 13,484 bytes allocated
- ==21481==
- ==21481== All heap blocks were freed -- no leaks are possible
- ==21481==
- ==21481== For counts of detected and suppressed errors, rerun with: -v
- ==21481== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement