Status: Accepted
Owner: ----
Labels: Type-Bug Priority-Medium

New issue 274 by christian.plesner.hansen: Possible memory leaks from  
handle stack
http://code.google.com/p/v8/issues/detail?id=274

cctest/test-regexp/Graph and cctest/test-api/Threading2 report:

==4437== 4,088 bytes in 1 blocks are possibly lost in loss record 11 of 16
==4437==    at 0x68F06A9: operator new[](unsigned int)
/home/kcc/depot2-kcc-ts_valgrind-client/google_vendor_src_branch/valgrind/trunk/coregrind/m_replacemalloc/vg_replace_malloc.c:279
==4437==    by 0x813B360: void** v8::internal::NewArray<void*>(int)
/home/plesner/Documents/vms/google/v8/src/allocation.h:110
==4437==    by 0x813FAF6:
v8::internal::HandleScopeImplementer::GetSpareOrNewBlock()
/home/plesner/Documents/vms/google/v8/src/api.h:425
==4437==    by 0x813B52F: v8::internal::HandleScope::CreateHandle(void*)
/home/plesner/Documents/vms/google/v8/src/handles.cc:79
==4437==    by 0x804CAE8:
v8::internal::Handle<v8::internal::Object>::Handle(v8::internal::Object*)
/home/plesner/Documents/vms/google/v8/src/handles-inl.h:41
==4437==    by 0x8179329:
v8::internal::MacroAssembler::MacroAssembler(void*, int)
/home/plesner/Documents/vms/google/v8/src/macro-assembler-ia32.cc:46
==4437==    by 0x80EE66F: v8::internal::CodeStub::GetCode()
/home/plesner/Documents/vms/google/v8/src/code-stubs.cc:47
==4437==    by 0x8141215: v8::internal::Heap::CreateFixedStubs()
/home/plesner/Documents/vms/google/v8/src/heap.cc:1129
==4437==    by 0x8146E85: v8::internal::Heap::CreateInitialObjects()
/home/plesner/Documents/vms/google/v8/src/heap.cc:1224
==4437==    by 0x814CB32: v8::internal::Heap::Setup(bool)
/home/plesner/Documents/vms/google/v8/src/heap.cc:2813
==4437==    by 0x821E5E5:
v8::internal::V8::Initialize(v8::internal::Deserializer*)
/home/plesner/Documents/vms/google/v8/src/v8.cc:60
==4437==    by 0x80A4315: TestGraph()
/home/plesner/Documents/vms/google/v8/test/cctest/test-regexp.cc:1561

cctest/test-api/Threading2 also reports

==31756== 36,944 (152 direct, 36,792 indirect) bytes in 33 blocks are
definitely lost in loss record 28 of 32
==31756==    at 0x68F1A29: malloc
/home/kcc/depot2-kcc-ts_valgrind-client/google_vendor_src_branch/valgrind/trunk/coregrind/m_replacemalloc/vg_replace_malloc.c:207
==31756==    by 0x80BEC89: v8::internal::Malloced::New(unsigned int)
/home/plesner/Documents/vms/google/v8/src/allocation.cc:37
==31756==    by 0x807DB06:
v8::internal::FreeStoreAllocationPolicy::New(unsigned int)
/home/plesner/Documents/vms/google/v8/src/allocation.h:132
==31756==    by 0x80CEC26: v8::internal::List<void**,
v8::internal::FreeStoreAllocationPolicy>::NewData(int)
/home/plesner/Documents/vms/google/v8/src/list.h:117
==31756==    by 0x813FA66: v8::internal::List<void**,
v8::internal::FreeStoreAllocationPolicy>::Add(void** const&)
/home/plesner/Documents/vms/google/v8/src/list-inl.h:44
==31756==    by 0x813B54E: v8::internal::HandleScope::CreateHandle(void*)
/home/plesner/Documents/vms/google/v8/src/handles.cc:82
==31756==    by 0x80CE701:
v8::internal::Handle<v8::internal::Proxy>::Handle(v8::internal::Proxy*)
/home/plesner/Documents/vms/google/v8/src/handles-inl.h:41
==31756==    by 0x8131253: v8::internal::Factory::NewProxy(unsigned char*,
v8::internal::PretenureFlag)
/home/plesner/Documents/vms/google/v8/src/factory.cc:187
==31756==    by 0x80C3F14: v8::External::New(void*)
/home/plesner/Documents/vms/google/v8/src/api.cc:2390
==31756==    by 0x806BD28: TestExternal()
/home/plesner/Documents/vms/google/v8/test/cctest/test-api.cc:1260
==31756==    by 0x804E5B3: CallTestNumber(int)
/home/plesner/Documents/vms/google/v8/test/cctest/test-api.cc:4984
==31756==    by 0x804E5DC: ApiTestFuzzer::CallTest()
/home/plesner/Documents/vms/google/v8/test/cctest/test-api.cc:5041

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to