Message4919
I get reproducible crashes when parsing a simple PEP 342 coroutine in
Jython, e.g.
def dechunk(target):
while True:
for item in (yield):
target.send(item)
The error is:
java.lang.VerifyError: (class: org/python/pycode/_pyx0, method:
dechunk$1 signature:
(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject;)
Register 3 contains wrong type
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.getConstructor(Class.java:1657)
at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:68)
at
org.python.compiler.LegacyCompiler$LazyLegacyBundle.loadCode(LegacyCompiler.java:43)
at org.python.core.CompilerFacade.compile(CompilerFacade.java:34)
at org.python.core.Py.compile_flags(Py.java:1631)
at org.python.core.Py.compile_flags(Py.java:1636)
at org.python.core.Py.compile_flags(Py.java:1646)
at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:166)
at org.python.util.jython.run(jython.java:229)
at org.python.util.jython.main(jython.java:117)
This is with Jython 2.5.0 final (and latest SVN) on Linux using SUN's
Java 6:
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Server VM (build 11.0-b15, mixed mode) |
|
Date |
User |
Action |
Args |
2009-07-19 14:23:08 | scoder | set | recipients:
+ scoder |
2009-07-19 14:23:07 | scoder | set | messageid: <1248013387.71.0.867421441422.issue1406@psf.upfronthosting.co.za> |
2009-07-19 14:23:07 | scoder | link | issue1406 messages |
2009-07-19 14:23:05 | scoder | create | |
|