Downloaded 3.13.0 (candidate) on mac osx 10.7.4
If I set the following options before I new the context

   "--log_handles --trace_gc --gc_interval=10 --gc_global"

the Context::New/VM bootstrapping raises the following exception.

      CAST_ACCESSOR(NormalizedMapCache) // raises cast_accessor 
ASSERT(object->Is##type())

If I start any of the examples with the same options they have no problems.

I'm linking with our product which has a pretty large footprint.

Any sugestion as to what might be going on or how to address this will be
appreciated. (also tried 3.12.19, I'm seeing the same issue).

The following is the call stack.

#9  __pthread_kill ()
#10 pthread_kill ()
#11 abort ()
#12 v8::internal::OS::Abort () at ../src/platform-macos.cc:176
#13 V8_Fatal (file=<value temporarily unavailable, due to optimizations>, 
line=<value temporarily unavailable, due to optimizations>, format=<value 
temporarily unavailable, due to optimizations>) at ../src/checks.cc:58
#14 v8::internal::Context::normalized_map_cache (this=<value temporarily 
unavailable, due to optimizations>) at objects-inl.h:2228
#15 v8::internal::IncrementalMarking::Step (this=0x101817cb8, 
allocated_bytes=<value temporarily unavailable, due to optimizations>, 
action=v8::internal::IncrementalMarking::NO_GC_VIA_STACK_GUARD) at 
../src/incremental-marking.cc:834
#16 v8::internal::IncrementalMarking::IsComplete () at 
src/incremental-marking.h:561
#17 v8::internal::Heap::CollectGarbage (this=0x101815410, space=<value 
temporarily unavailable, due to optimizations>, 
collector=v8::internal::MARK_COMPACTOR, gc_reason=0x100cc5a3d "allocation 
failure", collector_reason=0x100cc5ef3 "GC in old space requested") at 
../src/heap.cc:563
#18 v8::internal::Failure::allocation_space () at src/objects.h:440
#19 v8::internal::Factory::NewSharedFunctionInfo (this=0x101815400) at 
heap-inl.h:1061
#20 v8::internal::Factory::NewFunctionHelper (this=0x101815400) at 
../src/factory.cc:1101
#21 v8::internal::Factory::NewFunction (this=0x101815400) at 
../src/factory.cc:1113
#22 v8::internal::Genesis::CreateEmptyFunction (this=0x7fff5f9a9b80, 
isolate=0x101815400) at ../src/bootstrapper.cc:474
#23 v8::internal::Genesis::Genesis (this=0x7fff5f9a9b80, 
isolate=0x101815400, extensions=<value temporarily unavailable, due to 
optimizations>) at ../src/bootstrapper.cc:2342
#24 v8::internal::Genesis::Genesis () at src/bootstrapper.cc:2364
#25 v8::internal::Bootstrapper::CreateEnvironment (this=<value temporarily 
unavailable, due to optimizations>, isolate=0x101815400, extensions=0x0) at 
../src/bootstrapper.cc:307
#26 v8::Context::New (extensions=0x0) at ../src/api.cc:4397

   v8::HandleScope scope;
   char s_rgcFlags[] = "--log_handles --trace_gc --gc_interval=10 
--gc_global";
   v8::V8::SetFlagsFromString(s_rgcFlags, sizeof(s_rgcFlags)-1);
   v8::V8::AddGCPrologueCallback(GCPrologue);
   v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New();
   global->Set(v8::String::New("_log"), v8::FunctionTemplate::New(_LogMsg));
   global->Set(v8::String::New("pushParams"), 
v8::FunctionTemplate::New(_pushParams));
   global->Set(v8::String::New("popParam"), 
v8::FunctionTemplate::New(_popParam));
   global->Set(v8::String::New("DispatchCos"), 
v8::FunctionTemplate::New(_DispatchCos));
   global->Set(v8::String::New("NewInst"), 
v8::FunctionTemplate::New(_NewInst));
   m_context = v8::Context::New(NULL, global);

I'm compiling with clang/clang++

$CXX -v
Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.0
Thread model: posix

uname -a
Darwin GKMacLap.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 
19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64

Tried gcc 4.2 all builds (x64.debug and x64.release) i have the same 
problem!! 

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

Reply via email to