Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault #14

Closed
GoogleCodeExporter opened this issue May 22, 2015 · 1 comment
Closed

Segmentation fault #14

GoogleCodeExporter opened this issue May 22, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

The broken code is:

    ops = ['==', '!=', '>', '<', '>=', '<=', '===', '!==']
    t = [ 0, 1, 2, 15, 123, -100, 
          "'0'", "'1'", "'2'", "'15'", "'123'", "'-100'",
          .0, .1, .2, .15, .123, -.100, 
          "'.0'", "'.1'", "'.2'", "'.15'", "'.123'", "'-.100'",
          '"abc"', "'abc'", "'абв'", "'测试'",
          "true", "false", "NaN", "Infinity", "null",
          "{}", "[]", "function(){}" ]

    for op in ops:
        for a in t:
            for b in t:
                t_ = "(%s %s %s)" % (a, op, b)
                print ">", t_
                ctx.eval(t_)

System: ubuntu hardy, python 2.5

Unfortunately i have no tested it in windows, as PyV8 raise exception on
import:

>>> import PyV8

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import PyV8
  File "C:\Python26\lib\site-packages\PyV8.py", line 8, in <module>
    import _PyV8
AttributeError: 'Boost.Python.StaticProperty' object attribute '__doc__' is
read-only

system: windows xp, python 2.6.4

Original issue reported on code.google.com by buzz...@gmail.com on 18 Dec 2009 at 6:08

@GoogleCodeExporter
Copy link
Author

I have submitted the code that use add_property instead of def_readonly, could 
you help 
us to verify the issue on your system? Because my Win7 with Python 2.6.4.8 
can't reproduce 
the issue :(

Please check out the code from SVN after revision #173, and compile it with V8 
2.0.x, or use 
the private build in the attachment of issue #12 for your test.

Original comment by flier...@gmail.com on 20 Dec 2009 at 3:16

  • Changed state: Duplicate
  • Added labels: OpSys-Windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant