harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-3575) [drlvm][eclipse] One class in Pydev fails classloading
Date Fri, 06 Apr 2007 10:50:32 GMT

    [ https://issues.apache.org/jira/browse/HARMONY-3575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12487218

Alexey Varlamov commented on HARMONY-3575:

Vera, thank you for checking! 
Bad news is that in fact RI accepts the attached class without complaints, so we have error
somewhere in parsing, too. Tested as:
            String s = "org.python.pydev.plugin.PydevPlugin";
            InputStream is = cl.getResourceAsStream(s.replace('.', File.separatorChar) + ".class");
            byte[] classToBytes = new byte[is.available()];
            System.out.println (cl.defineClass(s, classToBytes, 0, classToBytes.length));
        } catch (Throwable t) {t.printStackTrace();}

Regarding your patch, there are still 2 leaks (1 was fixed in my variant and another one I
noticed now):
1) Line 1743: return without freeing both generic_vars and lv_table;
2) Newly added return does not free lv_table.

> [drlvm][eclipse] One class in Pydev fails classloading
> ------------------------------------------------------
>                 Key: HARMONY-3575
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3575
>             Project: Harmony
>          Issue Type: Bug
>          Components: App-Oriented Bug Reports, DRLVM
>         Environment: linux x86_64
>            Reporter: Santiago Gala
>         Assigned To: Alexey Varlamov
>         Attachments: clf.patch, local_var_table.ZIP, lvt_20070406.patch, PydevPlugin.class,
> I was getting a problem with PyDev in eclipse, until I found the error in the log:
> Root exception:
> java.lang.ClassFormatError: org/python/pydev/plugin/PydevPlugin : Element: 0x413b1bb0
from LocalVariableTypeTable doesn't coincide with element from LocalVariableTable for method
> 	at java.lang.ClassLoader.defineClass0(ClassLoader.java)
> 	at java.lang.ClassLoader.defineClass(ClassLoader.java:417)
> 	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.defineClass(DefaultClassLoader.java:161)
> Removing the check under
> // See specification 4.8.12 second paragraph.
> in Class_File_Loader.cpp makes it load, though I'm not sure it is the proper solution.
> I'll attach the output of javap -v

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message