Issue2129

classification
Title: Old Jar Jar Links jar is causing VerifyError exceptions
Type: behaviour Severity: urgent
Components: Core Versions: Jython 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: zyasoft Nosy List: zyasoft
Priority: immediate Keywords:

Created on 2014-04-22.20:50:23 by zyasoft, last changed 2014-05-13.13:22:36 by zyasoft.

Messages
msg8299 (view) Author: Jim Baker (zyasoft) Date: 2014-04-22.20:50:23
Jython currently has 0.7 of the Jar Jar Links jar in extlibs. This should be upgraded to 1.4 to fix this VerifyError when run with the jarjar-ed version and corresponds to this problem: http://markmail.org/message/x22em42wpeq6xnth#mid:ydjlpwqitf3awziy


Here's how to reproduce. Move dist/jython-dev.jar out of the way (that works fine), this will produce the following command line for jython --print:

java -Xmx512m -Xss1024k -Dfile.encoding=UTF-8 -classpath dist/jython-standalone.jar -Dpython.home=dist -Dpython.executable=dist/bin/jython org.python.util.jython

Running this results in the following error:

$ java -Xmx512m -Xss1024k -Dfile.encoding=UTF-8 -classpath dist/jython-standalone.jar -Dpython.home=dist -Dpython.executable=dist/bin/jython org.python.util.jython
Exception in thread "main" java.lang.VerifyError: Stack map does not match the one at exception handler 63 in method org.python.core.PyObject.proxyInit()V at offset 52
    at org.python.util.jython.run(jython.java:213)
    at org.python.util.jython.main(jython.java:145)

This means it's not a problem in how we build Jython core, it’s a problem in how we package it, specifically in the Jar Jar Links task, which is used to bundle all dependencies under the org.python namespace.

So Jar Jar Links should be upgraded to 1.4.
msg8300 (view) Author: Jim Baker (zyasoft) Date: 2014-04-22.21:09:48
Fixed in changeset: 7209:a5bc0032cf79
History
Date User Action Args
2014-05-13 13:22:36zyasoftsetstatus: pending -> closed
2014-04-22 21:09:48zyasoftsetstatus: open -> pending
assignee: zyasoft
resolution: fixed
messages: + msg8300
2014-04-22 20:50:23zyasoftcreate