nagyistge / pyv8

Automatically exported from code.google.com/p/pyv8
0 stars 0 forks source link

eval failed in some situation #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. writing a python test script as follows
import PyV8
class PyContext():
    def hello(self):
        print 'hello'
ctx = PyV8.JSContext( PyContext() )
engine = PyV8.JSEngine()
ctx.enter()
ctx.eval("var i = 10;")
this code will fail with following message
#
# Fatal error in f:\javascript\v8\src\handles-inl.h, line 65
# CHECK(reinterpret_cast<Address>(*location_) != kHandleZapValue) failed
#
==== Stack trace ============================================
Security context: 26B33D31 <JS Object>#0#
    1: /* anonymous */ [26B08091 <undefined>:1] (this=26B33DD1 <JS Global Object
>#1#)
==== Details ================================================
[1]: /* anonymous */ [26B08091 <undefined>:1] (this=26B33DD1 <JS Global Object>#
1#) {
  // expression stack (top to bottom)
  [02] : 0
  [01] : 26B34049 <FixedArray[2]>#2#
  [00] : 26B289C1 <FixedArray[67]>#3#
--------- s o u r c e   c o d e ---------
var i = 10;
-----------------------------------------
}
==== Key         ============================================
 #0# 26B33D31: 26B33D31 <JS Object>
 #1# 26B33DD1: 26B33DD1 <JS Global Object>
 #2# 26B34049: 26B34049 <FixedArray[2]>
                 0: 1D40CCCD <String[1]: i>
                 1: 26B08091 <undefined>
 #3# 26B289C1: 26B289C1 <FixedArray[67]>
                 0: 26B28AD5 <JS Function Empty>#4#
                 1: 0
                 2: 26B33D31 <JS Object>#0#
                 3: 26B33D31 <JS Object>#0#
                 4: 26B33DD1 <JS Global Object>#1#
                 5: 26B33D31 <JS Object>#0#
                 6: 26B331E1 <an Arguments>#5#
                 7: 26B332A9 <an Arguments>#6#
                 8: 26B33301 <an Arguments>#7#
                 9: 2C9093C1 <Map(elements=1)>#8#
                  ...
 #4# 26B28AD5: 26B28AD5 <JS Function Empty>
 #5# 26B331E1: 26B331E1 <an Arguments>
            callee: 26B08091 <undefined>
            length: 26B08091 <undefined>
 #6# 26B332A9: 26B332A9 <an Arguments>
            callee: 26B08091 <undefined>
            length: 26B08091 <undefined>
 #7# 26B33301: 26B33301 <an Arguments>
            length: 26B08091 <undefined>
 #8# 2C9093C1: 2C9093C1 <Map(elements=1)>
=====================

Python 2.7.3
PyV8 0.9
v8 3.11.3 debug build
Windows XP SP3

Original issue reported on code.google.com by yus...@gmail.com on 1 Jun 2012 at 11:03

GoogleCodeExporter commented 8 years ago

Original comment by flier...@gmail.com on 2 Jun 2012 at 2:58

GoogleCodeExporter commented 8 years ago
Please use the latest SVN trunk code and verify the fix

Original comment by flier...@gmail.com on 14 Aug 2013 at 3:29