To reproduce:
1. Build v8 trunk (I was working off git commit 
64c43805a83091683d9c7e474367f5723f29d56c) in x86, Debug mode (though I have 
also seen it reproduce in x64 and Release) using Visual Studio 2012 Update 4.
2. Replace the contents of samples/shell.cc with the attached file (30 lines, 
boiled down from a more complicated example).
3. Run shell.exe in the debugger.
4. You get an Unhandled exception at 0x74DACB49 in shell.exe: 0xC0000005: 
Access violation executing location 0x00000000, with the stack trace (below).

It occurs the second time a compiled script is run.  Is there something wrong 
with running a compiled script twice?

  00000000()
  [Frames below may be incorrect and/or missing]  
> v8.dll!v8::internal::OS::Abort() Line 848
  v8.dll!V8_Fatal(const char * file=0x0ff48988, int line=1561, const char * 
format=0x0ff48974, ...) Line 89
  
v8.dll!v8::internal::Deoptimizer::DoComputeCompiledStubFrame(v8::internal::TranslationIterator
 * iterator=0x0033fb50, int frame_index=0) Line 1561
  v8.dll!v8::internal::Deoptimizer::DoComputeOutputFrames() Line 817
  
v8.dll!v8::internal::Deoptimizer::ComputeOutputFrames(v8::internal::Deoptimizer 
* deoptimizer=0x007c5500) Line 500
  0500a391()
  007c5500()
  3cc42875()
  3cc2202a()
  v8.dll!v8::internal::Invoke(bool is_construct=false, 
v8::internal::Handle<v8::internal::JSFunction> function={...}, 
v8::internal::Handle<v8::internal::Object> receiver={...}, int argc=0, 
v8::internal::Handle<v8::internal::Object> * args=0x00000000) Line 94
  v8.dll!v8::internal::Execution::Call(v8::internal::Isolate * 
isolate=0x00792198, v8::internal::Handle<v8::internal::Object> callable={...}, 
v8::internal::Handle<v8::internal::Object> receiver={...}, int argc=0, 
v8::internal::Handle<v8::internal::Object> * argv=0x00000000, bool 
convert_receiver=false) Line 149
  v8.dll!v8::Script::Run() Line 1634
  shell.exe!main(int argc=1, char * * argv=0x00792108) Line 25
  shell.exe!__tmainCRTStartup() Line 536
  shell.exe!mainCRTStartup() Line 377
  kernel32.dll!@BaseThreadInitThunk@12()
  ntdll.dll!___RtlUserThreadStart@8()
  ntdll.dll!__RtlUserThreadStart@8()


   
<http://v8.googlecode.com/issues/attachment?aid=33320000000&name=crash.cc&token=ABZ6GAcb1EqZLC6_89lErL98nSCo93GSnQ%3A1400803449095>
  
*crash.cc* 
817 bytes   
Download<http://v8.googlecode.com/issues/attachment?aid=33320000000&name=crash.cc&token=ABZ6GAcb1EqZLC6_89lErL98nSCo93GSnQ%3A1400803449095>
   
   May 20 (42 hours ago) Delete 
comment<http://code.google.com/p/v8/issues/detail?id=3332&sort=-id&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Area%20Stars#>
 
 #1 <http://code.google.com/p/v8/issues/detail?id=3332#c1> 
[email protected]<http://code.google.com/u/104067555281783763892/> 

I missed an essential point: the message provided by the V8_Fatal call:

#
# Fatal error in ..\..\src\deoptimizer.cc, line 1591
# CHECK(descriptor->register_param_count_ >= 0) failed
#

I can also reproduce this in VS2008.

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to