Comment #5 on issue 358 by tobias.kaes: Irregular crash in profiler test
http://code.google.com/p/v8/issues/detail?id=358

I think I figured out what the problem is, my initial observation was  
correct.

When copying the TickSample at
http://code.google.com/p/v8/source/browse/branches/bleeding_edge/src/log.cc#103 
 
we
copy the EmbeddedVector, including the base-class Vector

However the Vector has a start_ variable which happens to point to the  
stack of the
sampler thread. When the sampler thread exits it's memory location is no  
longer valid
and I'm getting the access violation when accessing the EmbeddedVector  
through the
Vector API

I don't know what the best solution would be, but probably EmbeddedVector  
needs to
implement a copy constructor which fixes the start_ variable in its  
base-class so it
points to the buffer of the copy-destination and not to the buffer of the  
copy-origin

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