Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created October 31, 2012 21:42
Show Gist options
  • Save springmeyer/3990088 to your computer and use it in GitHub Desktop.
Save springmeyer/3990088 to your computer and use it in GitHub Desktop.
node-blend master @1ce7618f621003cf524438f47346ef13abf5e6aa
ubuntu@ip-10-196-0-40:~/node-blend$ valgrind --leak-check=full node test.js
==8843== Memcheck, a memory error detector
==8843== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==8843== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==8843== Command: node test.js
==8843==
==8843== Warning: set address range perms: large range [0x320507d19000, 0x320527d19000) (noaccess)
==8843== Thread 3:
==8843== Conditional jump or move depends on uninitialised value(s)
==8843== at 0x72D74E0: inflateReset2 (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4)
==8843== by 0x72D75D8: inflateInit2_ (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4)
==8843== by 0x6E670D3: png_create_read_struct_2 (in /lib/x86_64-linux-gnu/libpng12.so.0.46.0)
==8843== by 0x6E67296: png_create_read_struct (in /lib/x86_64-linux-gnu/libpng12.so.0.46.0)
==8843== by 0x6C36FAA: PNGImageReader::PNGImageReader(unsigned char*, unsigned long) (reader.cpp:8)
==8843== by 0x6C373AA: ImageReader::create(unsigned char*, unsigned long) (reader.cpp:208)
==8843== by 0x6C49012: Work_Blend(uv_work_s*) (blend.cpp:242)
==8843== by 0x5C3E4B: ??? (in /usr/bin/nodejs)
==8843== by 0x5A57E99: start_thread (pthread_create.c:308)
==8843== by 0x5D60CBC: clone (clone.S:112)
==8843==
done!
==8843== Warning: set address range perms: large range [0x320507d19000, 0x320527d19000) (noaccess)
==8843==
==8843== HEAP SUMMARY:
==8843== in use at exit: 295,415 bytes in 81 blocks
==8843== total heap usage: 6,403 allocs, 6,322 frees, 17,024,773 bytes allocated
==8843==
==8843== Thread 1:
==8843== 24 bytes in 1 blocks are definitely lost in loss record 6 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x58EC6D: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==8843== by 0x57C24B: node::Load(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==8843== by 0x57D659: node::Start(int, char**) (in /usr/bin/nodejs)
==8843== by 0x5C8E76C: (below main) (libc-start.c:226)
==8843==
==8843== 24 bytes in 1 blocks are definitely lost in loss record 7 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x58EC6D: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==8843== by 0x58BDC2: node::MainSource() (in /usr/bin/nodejs)
==8843== by 0x57C253: node::Load(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==8843== by 0x57D659: node::Start(int, char**) (in /usr/bin/nodejs)
==8843== by 0x5C8E76C: (below main) (libc-start.c:226)
==8843==
==8843== 72 bytes in 1 blocks are possibly lost in loss record 16 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x5B373D: node::SignalWatcher::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E31E9D: ???
==8843== by 0x320507E307DD: ???
==8843== by 0x320507E0C8A6: ???
==8843== by 0x320507E06115: ???
==8843== by 0x6EE982: ??? (in /usr/bin/nodejs)
==8843== by 0x6F016A: 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)
==8843== by 0x79D91A: v8::internal::Object::GetPropertyWithDefinedGetter(v8::internal::Object*, v8::internal::JSReceiver*) (in /usr/bin/nodejs)
==8843==
==8843== 288 bytes in 1 blocks are possibly lost in loss record 20 of 37
==8843== at 0x4C29DB4: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x4012074: _dl_allocate_tls (dl-tls.c:297)
==8843== by 0x5A58ABC: pthread_create@@GLIBC_2.2.5 (allocatestack.c:571)
==8843== by 0x574383: ??? (in /usr/bin/nodejs)
==8843== by 0x5C3F0B: ??? (in /usr/bin/nodejs)
==8843== by 0x5C5D57: eio_custom (in /usr/bin/nodejs)
==8843== by 0x5CE38A: uv_queue_work (in /usr/bin/nodejs)
==8843== by 0x6C47ADF: Blend(v8::Arguments const&) (blend.cpp:166)
==8843== by 0x6CD9EA: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E8E5BB: ???
==8843== by 0x320507E10C1D: ???
==8843==
==8843== 392 bytes in 1 blocks are possibly lost in loss record 21 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x59676C: node::TTYWrap::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E94B5F: ???
==8843== by 0x320507E0C589: ???
==8843== by 0x320507E2E2F0: ???
==8843== by 0x320507E306ED: ???
==8843== by 0x320507E0C8A6: ???
==8843== by 0x320507E06115: ???
==8843== by 0x6EE982: ??? (in /usr/bin/nodejs)
==8843==
==8843== 864 bytes in 36 blocks are definitely lost in loss record 24 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x58EC6D: node::ImmutableAsciiSource::CreateFromLiteral(char const*, unsigned long) (in /usr/bin/nodejs)
==8843== by 0x58BE14: node::DefineJavaScript(v8::Handle<v8::Object>) (in /usr/bin/nodejs)
==8843== by 0x579B17: ??? (in /usr/bin/nodejs)
==8843== by 0x6CD9EA: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E33AC9: ???
==8843== by 0x320507E0C8A6: ???
==8843== by 0x320507E06115: ???
==8843== by 0x6EE982: ??? (in /usr/bin/nodejs)
==8843== by 0x6F016A: 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)
==8843== by 0x6B113A: v8::Function::Call(v8::Handle<v8::Object>, int, v8::Handle<v8::Value>*) (in /usr/bin/nodejs)
==8843==
==8843== 2,335 bytes in 1 blocks are definitely lost in loss record 27 of 37
==8843== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x5D4B9B: uv_setup_args (in /usr/bin/nodejs)
==8843== by 0x57D518: node::Start(int, char**) (in /usr/bin/nodejs)
==8843== by 0x5C8E76C: (below main) (libc-start.c:226)
==8843==
==8843== 8,248 (56 direct, 8,192 indirect) bytes in 1 blocks are definitely lost in loss record 31 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x57EBA5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E3E26C: ???
==8843== by 0x320507E3DC68: ???
==8843== by 0x320507E0C0ED: ???
==8843== by 0x320507E0C583: ???
==8843== by 0x320507E73D49: ???
==8843== by 0x320507E68F78: ???
==8843== by 0x320507E67B61: ???
==8843==
==8843== 10,429 (56 direct, 10,373 indirect) bytes in 1 blocks are definitely lost in loss record 33 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x57EBA5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E3DB92: ???
==8843== by 0x320507E0C0ED: ???
==8843== by 0x320507E0C347: ???
==8843== by 0x320507E73D49: ???
==8843== by 0x320507E0C0ED: ???
==8843== by 0x320507E8E4DE: ???
==8843== by 0x320507E10C1D: ???
==8843==
==8843== 96,947 (56 direct, 96,891 indirect) bytes in 1 blocks are definitely lost in loss record 35 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x57EBA5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E3DB92: ???
==8843== by 0x320507E0C0ED: ???
==8843== by 0x320507E0C347: ???
==8843== by 0x320507E73D49: ???
==8843== by 0x320507E0C0ED: ???
==8843== by 0x320507E8E53C: ???
==8843== by 0x320507E10C1D: ???
==8843==
==8843== 163,896 (56 direct, 163,840 indirect) bytes in 1 blocks are definitely lost in loss record 37 of 37
==8843== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==8843== by 0x57EBA5: node::Buffer::New(v8::Arguments const&) (in /usr/bin/nodejs)
==8843== by 0x6CA9A6: ??? (in /usr/bin/nodejs)
==8843== by 0x320507E06361: ???
==8843== by 0x320507E0C792: ???
==8843== by 0x320507E0CA49: ???
==8843== by 0x320507E06275: ???
==8843== by 0x6EE982: ??? (in /usr/bin/nodejs)
==8843== by 0x6EED79: v8::internal::Execution::New(v8::internal::Handle<v8::internal::JSFunction>, int, v8::internal::Handle<v8::internal::Object>*, bool*) (in /usr/bin/nodejs)
==8843== by 0x6B0F31: v8::Function::NewInstance(int, v8::Handle<v8::Value>*) const (in /usr/bin/nodejs)
==8843== by 0x57EC2A: node::Buffer::New(char*, unsigned long, void (*)(char*, void*), void*) (in /usr/bin/nodejs)
==8843== by 0x6C44C06: Work_AfterBlend(uv_work_s*) (blend.cpp:360)
==8843==
==8843== LEAK SUMMARY:
==8843== definitely lost: 3,471 bytes in 43 blocks
==8843== indirectly lost: 279,296 bytes in 4 blocks
==8843== possibly lost: 752 bytes in 3 blocks
==8843== still reachable: 11,896 bytes in 31 blocks
==8843== suppressed: 0 bytes in 0 blocks
==8843== Reachable blocks (those to which a pointer was found) are not shown.
==8843== To see them, rerun with: --leak-check=full --show-reachable=yes
==8843==
==8843== For counts of detected and suppressed errors, rerun with: -v
==8843== Use --track-origins=yes to see where uninitialised values come from
==8843== ERROR SUMMARY: 13 errors from 12 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment