bugKawa - Bugs: bug #23541, java.lang.ClassFormatError:...

 
 

bug #23541: java.lang.ClassFormatError: Arguments can't fit into locals in class file ...

Submitted by:  None
Submitted on:  Wed 11 Jun 2008 05:43:49 PM UTC  
 
Category: Code generationSeverity: 3 - Normal
Item Group: Run-time exceptionStatus: Need Info
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 11 Jul 2009 06:21:37 PM UTC, comment #1:

I'm not sure how to test test. Could you see if there is still a problem with the current Kawa in Subversion? If so, could you try to simplify the test-case?

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Wed 11 Jun 2008 05:43:49 PM UTC, original submission:

Unpacking and running the same code as provided in Bug #23534 ("uninitialized register 10"), here's the following compiler bug. At least I hope it's a bug:

> java kawa.repl -C flocker.scm

(compiling flocker.scm to flocker)

> java kawa.repl flocker.scm


java.lang.ClassFormatError: Arguments can't fit into locals in class file flocker
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at gnu.bytecode.ObjectType.getContextClass(ObjectType.java:97)
at gnu.bytecode.ObjectType.getReflectClass(ObjectType.java:110)
at gnu.bytecode.ClassType.getModifiers(ClassType.java:86)
at gnu.bytecode.ClassType.getMethods(ClassType.java:613)
at gnu.kawa.reflect.ClassMethods.getMethods(ClassMethods.java:105)
at gnu.kawa.reflect.Invoke.getMethods(Invoke.java:271)
at gnu.kawa.reflect.Invoke.inline(Invoke.java:498)
at gnu.expr.QuoteExp.inline(QuoteExp.java:100)
at gnu.expr.ReferenceExp.inline(ReferenceExp.java:169)
at gnu.expr.InlineCalls.walkApplyOnly(InlineCalls.java:27)
at gnu.kawa.functions.ApplyToArgs.inline(ApplyToArgs.java:178)
at gnu.expr.QuoteExp.inline(QuoteExp.java:100)
at gnu.expr.ReferenceExp.inline(ReferenceExp.java:169)
at gnu.expr.InlineCalls.walkApplyOnly(InlineCalls.java:27)
at gnu.expr.InlineCalls.walkApplyExp(InlineCalls.java:21)
at gnu.expr.ApplyExp.walk(ApplyExp.java:381)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.InlineCalls.walkLetExp(InlineCalls.java:78)
at gnu.expr.LetExp.walk(LetExp.java:201)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.ExpWalker.walkExps(ExpWalker.java:174)
at gnu.expr.BeginExp.walkChildren(BeginExp.java:161)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkBeginExp(ExpWalker.java:110)
at gnu.expr.BeginExp.walk(BeginExp.java:153)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.InlineCalls.walkIfExp(InlineCalls.java:67)
at gnu.expr.IfExp.walk(IfExp.java:127)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.LambdaExp.walkChildrenOnly(LambdaExp.java:1528)
at gnu.expr.LambdaExp.walkChildren(LambdaExp.java:1516)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkScopeExp(ExpWalker.java:83)
at gnu.expr.InlineCalls.walkLambdaExp(InlineCalls.java:114)
at gnu.expr.LambdaExp.walk(LambdaExp.java:1511)
at gnu.expr.ExpWalker.walk(ExpWalker.java:47)
at gnu.expr.SetExp.walkChildren(SetExp.java:333)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkSetExp(ExpWalker.java:96)
at gnu.expr.SetExp.walk(SetExp.java:328)
at gnu.expr.ExpWalker.walk(ExpWalker.java:47)
at gnu.expr.ExpWalker.walkExps(ExpWalker.java:174)
at gnu.expr.BeginExp.walkChildren(BeginExp.java:161)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkBeginExp(ExpWalker.java:110)
at gnu.expr.BeginExp.walk(BeginExp.java:153)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.InlineCalls.walkLetExp(InlineCalls.java:90)
at gnu.expr.LetExp.walk(LetExp.java:201)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.ExpWalker.walkExps(ExpWalker.java:174)
at gnu.expr.BeginExp.walkChildren(BeginExp.java:161)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkBeginExp(ExpWalker.java:110)
at gnu.expr.BeginExp.walk(BeginExp.java:153)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.ExpWalker.walkExps(ExpWalker.java:174)
at gnu.expr.ApplyExp.walkChildren(ApplyExp.java:388)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkApplyExp(ExpWalker.java:52)
at gnu.expr.InlineCalls.walkApplyExp(InlineCalls.java:20)
at gnu.expr.ApplyExp.walk(ApplyExp.java:381)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.LambdaExp.walkChildrenOnly(LambdaExp.java:1528)
at gnu.expr.LambdaExp.walkChildren(LambdaExp.java:1516)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkScopeExp(ExpWalker.java:83)
at gnu.expr.InlineCalls.walkLambdaExp(InlineCalls.java:114)
at gnu.expr.ClassExp.walkChildren(ClassExp.java:596)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkScopeExp(ExpWalker.java:83)
at gnu.expr.InlineCalls.walkLambdaExp(InlineCalls.java:114)
at gnu.expr.ExpWalker.walkClassExp(ExpWalker.java:88)
at gnu.expr.ClassExp.walk(ClassExp.java:572)
at gnu.expr.ExpWalker.walk(ExpWalker.java:47)
at gnu.expr.SetExp.walkChildren(SetExp.java:333)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkSetExp(ExpWalker.java:96)
at gnu.expr.SetExp.walk(SetExp.java:328)
at gnu.expr.ExpWalker.walk(ExpWalker.java:43)
at gnu.expr.LambdaExp.walkChildrenOnly(LambdaExp.java:1528)
at gnu.expr.LambdaExp.walkChildren(LambdaExp.java:1516)
at gnu.expr.ExpWalker.walkExpression(ExpWalker.java:19)
at gnu.expr.ExpWalker.walkScopeExp(ExpWalker.java:83)
at gnu.expr.InlineCalls.walkLambdaExp(InlineCalls.java:114)
at gnu.expr.ExpWalker.walkModuleExp(ExpWalker.java:90)
at gnu.expr.ModuleExp.walk(ModuleExp.java:399)
at gnu.expr.ExpWalker.walk(ExpWalker.java:47)
at gnu.expr.InlineCalls.inlineCalls(InlineCalls.java:10)
at gnu.expr.Compilation.walkModule(Compilation.java:947)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:190)
at kawa.Shell.run(Shell.java:230)
at kawa.standard.load.loadSource(load.java:110)
at kawa.standard.load.apply(load.java:210)
at kawa.Shell.runFile(Shell.java:308)
at kawa.repl.main(repl.java:837)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bothner (Posted a comment)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 11 Jul 2009 06:21:37 PM UTCbothnerStatusNone=>Need Info
      Assigned toNone=>bothner

    Back to the top


    Powered by Savane 3.1-cleanup