Status: New
Owner: ----

New issue 531 by dcnosferatu: Memleak on x64 arch
http://code.google.com/p/v8/issues/detail?id=531

Hi,

I'm using v8 on a Debian Lenny ( 2.6.26-2-amd64 ); while playing with
some basic examples ( http://code.google.com/apis/v8/get_started.html
) and testing memory and speed related stuff I discovered a memleak in
Context::New(). I've traced down the problem to execution.cc line 92
( macro call CALL_GENERATED_CODE ). Although the call is not causing a
crash in runtime I was able to reproduce it using valgrind ( dump is
below ). Same result on a openSUSE 11.0 (X86-64) 2.6.25.20-0.5-default so I
believe it's a x64 issue.

Thread 1: status = VgTs_Runnable
==00:00:00:03.921 1204==    at 0xB073C8B: ???
==00:00:00:03.921 1204==    by 0x46582C:
_ZN2v88internalL6InvokeEbNS0_6HandleINS0_10JSFunctionEEENS1_INS0_6ObjectEEEiPPPS4_Pb
(execution.cc:92)
==00:00:00:03.921 1204==    by 0x465D47:
v8::internal::Execution::Call(v8::internal::Handle<v8::internal::JSFunction>,
v8::internal::Handle<v8::internal::Object>, int, v8::internal::Object***,
bool*) (execution.cc:119)
==00:00:00:03.921 1204==    by 0x44A934:
v8::internal::Genesis::CompileScriptCached(v8::internal::Vector<char
const>, v8::internal::Handle<v8::internal::String>,
v8::internal::SourceCodeCache*, v8::Extension*, bool) (bootstrapper.cc:945)
==00:00:00:03.921 1204==    by 0x44AD53:
v8::internal::Genesis::CompileNative(v8::internal::Vector<char const>,
v8::internal::Handle<v8::internal::String>) (bootstrapper.cc:897)
==00:00:00:03.921 1204==    by 0x44B067:
v8::internal::Genesis::CompileBuiltin(int) (bootstrapper.cc:887)
==00:00:00:03.921 1204==    by 0x44B8C0:
v8::internal::Genesis::InstallNatives() (bootstrapper.cc:1145)
==00:00:00:03.921 1204==    by 0x44BE35:
v8::internal::Genesis::Genesis(v8::internal::Handle<v8::internal::Object>,
v8::Handle<v8::ObjectTemplate>, v8::ExtensionConfiguration*)
(bootstrapper.cc:1586)
==00:00:00:03.921 1204==    by 0x44BF19:
v8::internal::Bootstrapper::CreateEnvironment(v8::internal::Handle<v8::internal::Object>,
v8::Handle<v8::ObjectTemplate>, v8::ExtensionConfiguration*)
(bootstrapper.cc:379)
==00:00:00:03.921 1204==    by 0x43832B:
v8::Context::New(v8::ExtensionConfiguration*,
v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>) (api.cc:2747)
==00:00:00:03.921 1204==    by 0x41B4FF: main (in
/home/root/soft/snmpTrapReceiver/bin/snmpTrapReceiver)


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