Skip to content

Instantly share code, notes, and snippets.

@avsej
Created June 11, 2012 11:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avsej/2909622 to your computer and use it in GitHub Desktop.
Save avsej/2909622 to your computer and use it in GitHub Desktop.
avsej:libcouchbase [git:dlclose] $ valgrind --tool=memcheck --leak-check=full ../install/bin/cbc-cp .gitignore
==9347== Memcheck, a memory error detector
==9347== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==9347== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==9347== Command: ../install/bin/cbc-cp .gitignore
==9347==
Stored ".gitignore" CAS 0x38b79371be330000
==9347==
==9347== HEAP SUMMARY:
==9347== in use at exit: 4,479 bytes in 41 blocks
==9347== total heap usage: 3,330 allocs, 3,289 frees, 307,629 bytes allocated
==9347==
==9347== 35 bytes in 1 blocks are possibly lost in loss record 11 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x409A0E: Getopt::parse(int, char**) (commandlineparser.cc:112)
==9347== by 0x406BDF: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:659)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 38 bytes in 1 blocks are possibly lost in loss record 12 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406ABC: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:625)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 45 bytes in 1 blocks are possibly lost in loss record 13 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406A48: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:621)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 46 bytes in 1 blocks are possibly lost in loss record 14 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x404062: main (cbc.cc:922)
==9347==
==9347== 46 bytes in 1 blocks are possibly lost in loss record 15 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406BA1: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:633)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 47 bytes in 1 blocks are possibly lost in loss record 16 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406A82: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:623)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 47 bytes in 1 blocks are possibly lost in loss record 17 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406B67: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:631)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 51 bytes in 1 blocks are possibly lost in loss record 18 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406AF6: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:627)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 51 bytes in 1 blocks are possibly lost in loss record 19 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406B30: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:629)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== 85 bytes in 1 blocks are possibly lost in loss record 32 of 35
==9347== at 0x4C286E7: operator new(unsigned long) (vg_replace_malloc.c:287)
==9347== by 0x571CAB8: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E4A4: char* std::string::_S_construct<char const*>(char const*, char const*, std::allocator<char> const&, std::forward_iterator_tag) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x571E582: std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.17)
==9347== by 0x4090C7: CommandLineOption::CommandLineOption(char, char const*, bool, char const*) (commandlineparser.cc:32)
==9347== by 0x406E76: handleCommandLineOptions(cbc_command_t, int, char**) (cbc.cc:656)
==9347== by 0x4042B7: main (cbc.cc:970)
==9347==
==9347== LEAK SUMMARY:
==9347== definitely lost: 0 bytes in 0 blocks
==9347== indirectly lost: 0 bytes in 0 blocks
==9347== possibly lost: 491 bytes in 10 blocks
==9347== still reachable: 3,988 bytes in 31 blocks
==9347== suppressed: 0 bytes in 0 blocks
==9347== Reachable blocks (those to which a pointer was found) are not shown.
==9347== To see them, rerun with: --leak-check=full --show-reachable=yes
==9347==
==9347== For counts of detected and suppressed errors, rerun with: -v
==9347== ERROR SUMMARY: 10 errors from 10 contexts (suppressed: 12 from 6)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment