Hi,
When using v8 in a debug build, I'm getting a weird exception:
Unhandled exception at 0x00740cdd in SA cpo4.exe: 0xC0000005: Access
violation reading location 0x0000000c.
>SA cpo4.exe!unibrow::CharacterStream::GetNext() Line 132 + 0x8 bytes C++
SA cpo4.exe!v8::internal::String::IsEqualTo(v8::internal::Vector<char
const > str={...}) Line 4182 + 0xf bytes C++
SA cpo4.exe!v8::internal::Utf8SymbolKey::IsMatch(v8::internal::Object
* string=0x038a0155) Line 6063 C++
SA cpo4.exe!v8::internal::HashTable<0,1>::FindEntry
(v8::internal::HashTableKey * key=0x0012f90c) Line 6184 + 0x1f bytes C
++
SA cpo4.exe!v8::internal::SymbolTable::LookupKey
(v8::internal::HashTableKey * key=0x0012f90c, v8::internal::Object * *
s=0x0012f938) Line 6290 + 0xc bytes C++
SA cpo4.exe!v8::internal::SymbolTable::LookupSymbol
(v8::internal::Vector<char const > str={...}, v8::internal::Object * *
s=0x0012f938) Line 6285 + 0x10 bytes C++
SA cpo4.exe!v8::internal::Heap::LookupSymbol
(v8::internal::Vector<char const > string={...}) Line 2530 + 0x21
bytes C++
SA cpo4.exe!v8::internal::Heap::LookupAsciiSymbol(const char *
str=0x0096830c) Line 581 + 0x1c bytes C++
SA cpo4.exe!v8::internal::Oddball::Initialize(const char *
to_string=0x0096830c, v8::internal::Object * to_number=0x00000000)
Line 4484 + 0x9 bytes C++
SA cpo4.exe!v8::internal::Heap::CreateInitialObjects() Line 1182 +
0x25 bytes C++
SA cpo4.exe!v8::internal::Heap::Setup(bool create_heap_objects=true)
Line 2813 + 0x5 bytes C++
SA cpo4.exe!v8::internal::V8::Initialize(v8::internal::Deserializer *
des=0x00000000) Line 60 + 0x9 bytes C++
SA cpo4.exe!v8::V8::Initialize() Line 2197 + 0x7 bytes C++
SA cpo4.exe!v8::EnsureInitialized(const char * location=0x0095fd08)
Line 198 + 0xe bytes C++
SA cpo4.exe!v8::ObjectTemplate::New(v8::Handle<v8::FunctionTemplate>
constructor={...}) Line 807 + 0xa bytes C++
SA cpo4.exe!v8::ObjectTemplate::New() Line 800 + 0x1a bytes C++
The error only occurs in a debug build, and happens on the first
instantiation of a Handle:
v8::HandleScope handle_scope;
v8::Handle<v8::ObjectTemplate> gl=v8::ObjectTemplate::New(); //<- here
gl->Set(v8::String::New("print"), v8::FunctionTemplate::New(Print));
context = v8::Context::New(NULL, gl);
I'm building with msvc 2005 and added v8 and v8-base to my project.
--~--~---------~--~----~------------~-------~--~----~
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
-~----------~----~----~----~------~----~------~--~---