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

New issue 268 by christian.plesner.hansen: Valgrind reports leaks in code  
generator
http://code.google.com/p/v8/issues/detail?id=268

Running

   valgrind --leak-check=full --smc-check=all ./shell_g
../test/mjsunit/{mjsunit,bugs/bug-900066}.js

gives me

==22600== 88 bytes in 1 blocks are possibly lost in loss record 10 of 18
==22600==    at 0x6431A29: malloc
/home/kcc/depot2-kcc-ts_valgrind-client/google_vendor_src_branch/valgrind/trunk/coregrind/m_replacemalloc/vg_replace_malloc.c:207
==22600==    by 0x81664F5: v8::internal::Malloced::New(unsigned int)
/home/plesner/Documents/vms/google/v8/src/allocation.cc:37
==22600==    by 0x80573DC:
v8::internal::FreeStoreAllocationPolicy::New(unsigned int)
/home/plesner/Documents/vms/google/v8/src/allocation.h:132
==22600==    by 0x81ABFED: v8::internal::List<v8::internal::FrameElement,
v8::internal::FreeStoreAllocationPolicy>::NewData(int)
/home/plesner/Documents/vms/google/v8/src/list.h:117
==22600==    by 0x81AC05F: v8::internal::List<v8::internal::FrameElement,
v8::internal::FreeStoreAllocationPolicy>::Add(v8::internal::FrameElement
const&) /home/plesner/Documents/vms/google/v8/src/list-inl.h:44
==22600==    by 0x81AACCA: v8::internal::JumpTarget::ComputeEntryFrame(int)
/home/plesner/Documents/vms/google/v8/src/jump-target.cc:214
==22600==    by 0x81A8849: v8::internal::JumpTarget::Bind(int)
/home/plesner/Documents/vms/google/v8/src/jump-target-ia32.cc:142
==22600==    by 0x8199657: v8::internal::DeferredCode::BindExit()
/home/plesner/Documents/vms/google/v8/src/codegen.h:99
==22600==    by 0x8193315: v8::internal::CodeGenerator::CheckStack()
/home/plesner/Documents/vms/google/v8/src/codegen-ia32.cc:1546
==22600==    by 0x8195AD3:
v8::internal::CodeGenerator::GenCode(v8::internal::FunctionLiteral*)
/home/plesner/Documents/vms/google/v8/src/codegen-ia32.cc:252
==22600==    by 0x819C5F4:
v8::internal::CodeGenerator::MakeCode(v8::internal::FunctionLiteral*,
v8::internal::Handle<v8::internal::Script>, bool)
/home/plesner/Documents/vms/google/v8/src/codegen.cc:147
==22600==    by 0x806C6F2:
v8::internal::MakeCode(v8::internal::FunctionLiteral*,
v8::internal::Handle<v8::internal::Script>,
v8::internal::Handle<v8::internal::Context>, bool)
/home/plesner/Documents/vms/google/v8/src/compiler.cc:78
==22600==
==22600==
==22600== 46,128 (19,584 direct, 26,544 indirect) bytes in 288 blocks are
definitely lost in loss record 16 of 18
==22600==    at 0x6431A29: malloc
/home/kcc/depot2-kcc-ts_valgrind-client/google_vendor_src_branch/valgrind/trunk/coregrind/m_replacemalloc/vg_replace_malloc.c:207
==22600==    by 0x81664F5: v8::internal::Malloced::New(unsigned int)
/home/plesner/Documents/vms/google/v8/src/allocation.cc:37
==22600==    by 0x8075CB0: v8::internal::Malloced::operator new(unsigned
int) /home/plesner/Documents/vms/google/v8/src/allocation.h:69
==22600==    by 0x81AAC6A: v8::internal::JumpTarget::ComputeEntryFrame(int)
/home/plesner/Documents/vms/google/v8/src/jump-target.cc:212
==22600==    by 0x81A8849: v8::internal::JumpTarget::Bind(int)
/home/plesner/Documents/vms/google/v8/src/jump-target-ia32.cc:142
==22600==    by 0x8199657: v8::internal::DeferredCode::BindExit()
/home/plesner/Documents/vms/google/v8/src/codegen.h:99
==22600==    by 0x8193315: v8::internal::CodeGenerator::CheckStack()
/home/plesner/Documents/vms/google/v8/src/codegen-ia32.cc:1546
==22600==    by 0x8195AD3:
v8::internal::CodeGenerator::GenCode(v8::internal::FunctionLiteral*)
/home/plesner/Documents/vms/google/v8/src/codegen-ia32.cc:252
==22600==    by 0x819C5F4:
v8::internal::CodeGenerator::MakeCode(v8::internal::FunctionLiteral*,
v8::internal::Handle<v8::internal::Script>, bool)
/home/plesner/Documents/vms/google/v8/src/codegen.cc:147
==22600==    by 0x806C6F2:
v8::internal::MakeCode(v8::internal::FunctionLiteral*,
v8::internal::Handle<v8::internal::Script>,
v8::internal::Handle<v8::internal::Context>, bool)
/home/plesner/Documents/vms/google/v8/src/compiler.cc:78
==22600==    by 0x806C84D: v8::internal::MakeFunction(bool, bool,
v8::internal::Handle<v8::internal::Script>,
v8::internal::Handle<v8::internal::Context>, v8::Extension*,
v8::internal::ScriptDataImpl*)
/home/plesner/Documents/vms/google/v8/src/compiler.cc:119
==22600==    by 0x806D417:
v8::internal::Compiler::Compile(v8::internal::Handle<v8::internal::String>,
v8::internal::Handle<v8::internal::Object>, int, int, v8::Extension*,
v8::internal::ScriptDataImpl*)
/home/plesner/Documents/vms/google/v8/src/compiler.cc:216


--
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