Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@nkallen
Last active December 22, 2015 06:29
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 nkallen/6431776 to your computer and use it in GitHub Desktop.
Save nkallen/6431776 to your computer and use it in GitHub Desktop.
==27613== Memcheck, a memory error detector
==27613== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==27613== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==27613== Command: node --expose-gc example/walk-history.js
==27613==
==27613== Warning: noted but unhandled ioctl 0x5451 with no size/direction hints
==27613== This could cause spurious value errors to appear.
==27613== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==27613== Warning: noted but unhandled ioctl 0x5451 with no size/direction hints
==27613== This could cause spurious value errors to appear.
==27613== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==27613== Warning: noted but unhandled ioctl 0x5451 with no size/direction hints
==27613== This could cause spurious value errors to appear.
==27613== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==27613== Warning: set address range perms: large range [0x143d5a79c000, 0x143d7a79c000) (noaccess)
==27613== Warning: set address range perms: large range [0x143d5a79c000, 0x143d7a79c000) (noaccess)
==27613==
==27613== HEAP SUMMARY:
==27613== in use at exit: 92,278 bytes in 87 blocks
==27613== total heap usage: 629,093 allocs, 629,006 frees, 287,588,040 bytes allocated
==27613==
==27613== 24 bytes in 1 blocks are definitely lost in loss record 10 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5A2BFD: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==27613== by 0x58E69B: node::Load(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==27613== by 0x58FC29: node::Start(int, char**) (in /usr/bin/nodejs)
==27613== by 0x5C8E76C: (below main) (libc-start.c:226)
==27613==
==27613== 24 bytes in 1 blocks are definitely lost in loss record 11 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5A2BFD: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==27613== by 0x59FC52: node::MainSource() (in /usr/bin/nodejs)
==27613== by 0x58E6A3: node::Load(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==27613== by 0x58FC29: node::Start(int, char**) (in /usr/bin/nodejs)
==27613== by 0x5C8E76C: (below main) (libc-start.c:226)
==27613==
==27613== 56 bytes in 1 blocks are definitely lost in loss record 16 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5907B5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==27613== by 0x7087EA: ??? (in /usr/bin/nodejs)
==27613== by 0x143D5A806361: ???
==27613== by 0x143D5A80D3F2: ???
==27613== by 0x143D5A837014: ???
==27613== by 0x143D5A80CCCD: ???
==27613== by 0x143D5A82F1F7: ???
==27613== by 0x143D5A82E9E7: ???
==27613== by 0x143D5A834335: ???
==27613== by 0x143D5A82DEC4: ???
==27613== by 0x143D5A82D9A4: ???
==27613==
==27613== 224 (96 direct, 128 indirect) bytes in 4 blocks are definitely lost in loss record 25 of 33
==27613== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x72E8CD7: git__malloc (util.h:27)
==27613== by 0x72E8DEB: git__global_state (global.c:156)
==27613== by 0x72BA96F: set_error (errors.c:24)
==27613== by 0x72BAB3F: giterr_set (errors.c:74)
==27613== by 0x72891BE: git_futils_find_in_dirlist (fileops.c:721)
==27613== by 0x728921F: git_futils_find_global_file (fileops.c:733)
==27613== by 0x72C68A3: git_config_find_global_r (config.c:542)
==27613== by 0x72E42DE: git_repository_config__weakptr (repository.c:524)
==27613== by 0x72E3419: load_config_data (repository.c:137)
==27613== by 0x72E3E81: git_repository_open_ext (repository.c:394)
==27613== by 0x72E3EFF: git_repository_open (repository.c:408)
==27613==
==27613== 344 bytes in 1 blocks are possibly lost in loss record 26 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5AC6BC: node::TTYWrap::New(v8::Arguments const&) (in /usr/bin/nodejs)
==27613== by 0x7087EA: ??? (in /usr/bin/nodejs)
==27613== by 0x143D5A806361: ???
==27613== by 0x143D5A80D3F2: ???
==27613== by 0x143D5A8822BF: ???
==27613== by 0x143D5A80D1E9: ???
==27613== by 0x143D5A87D8B6: ???
==27613== by 0x143D5A87E1F1: ???
==27613== by 0x143D5A80D506: ???
==27613== by 0x143D5A806115: ???
==27613== by 0x72F782: ??? (in /usr/bin/nodejs)
==27613==
==27613== 960 bytes in 40 blocks are definitely lost in loss record 27 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5A2BFD: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==27613== by 0x59FCA4: node::DefineJavaScript(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==27613== by 0x58BA26: ??? (in /usr/bin/nodejs)
==27613== by 0x70B8CA: ??? (in /usr/bin/nodejs)
==27613== by 0x143D5A806361: ???
==27613== by 0x143D5A82D712: ???
==27613== by 0x143D5A80D506: ???
==27613== by 0x143D5A806115: ???
==27613== by 0x72F782: ??? (in /usr/bin/nodejs)
==27613== by 0x73104A: v8::internal::Execution::Call(v8::internal::Handle<v8::internal::Object>, v8::internal::Handle<v8::internal::Object>, int, v8::internal::Handle<v8::internal::Object>*, bool*, bool) (in /usr/bin/nodejs)
==27613== by 0x6ED294: v8::Function::Call(v8::Handle<v8::Object>, int, v8::Handle<v8::Value>*) (in /usr/bin/nodejs)
==27613==
==27613== 8,248 (56 direct, 8,192 indirect) bytes in 1 blocks are definitely lost in loss record 32 of 33
==27613== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==27613== by 0x5907B5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==27613== by 0x7087EA: ??? (in /usr/bin/nodejs)
==27613== by 0x143D5A806361: ???
==27613== by 0x143D5A80D3F2: ???
==27613== by 0x143D5A8AD762: ???
==27613== by 0x143D5A80CCCD: ???
==27613== by 0x143D5A80D1E3: ???
==27613== by 0x143D5A893774: ???
==27613== by 0x143D5A80CCCD: ???
==27613== by 0x143D5A892F1F: ???
==27613== by 0x143D5A80CCCD: ???
==27613==
==27613== LEAK SUMMARY:
==27613== definitely lost: 1,216 bytes in 48 blocks
==27613== indirectly lost: 8,320 bytes in 2 blocks
==27613== possibly lost: 344 bytes in 1 blocks
==27613== still reachable: 82,398 bytes in 36 blocks
==27613== suppressed: 0 bytes in 0 blocks
==27613== Reachable blocks (those to which a pointer was found) are not shown.
==27613== To see them, rerun with: --leak-check=full --show-reachable=yes
==27613==
==27613== For counts of detected and suppressed errors, rerun with: -v
==27613== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 2 from 2)
for (var i = 0; i < 20; i++) {
git.Repo.open(path.resolve(__dirname, '../.git'), function(error, repo) {
if (error) throw error;
repo.getMaster(function(error, branch) {
if (error) throw error;
var history = branch.history();
history.on('commit', function(commit) {
console.log('commit ' + commit.sha());
console.log('Author:', commit.author().name() + ' <' + commit.author().email() + '>');
console.log('Date:', commit.date());
console.log('\n ' + commit.message());
});
history.start();
});
});
}
process.on('exit', function() {
global.gc();
git.Threads.shutdown();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment