bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #32656] ArrayIndexOutOfBoundsException in mergeLocalType


From: Helmut Eller
Subject: [Bug-kawa] [bug #32656] ArrayIndexOutOfBoundsException in mergeLocalType
Date: Wed, 02 Mar 2011 17:14:13 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.7.62 Version/11.01

URL:
  <http://savannah.gnu.org/bugs/?32656>

                 Summary: ArrayIndexOutOfBoundsException in mergeLocalType
                 Project: Kawa
            Submitted by: ellerh
            Submitted on: Wed 02 Mar 2011 05:14:12 PM GMT
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Compiling this example:


(define (foo y)
  (letrec ((f (lambda (x)
                (case x
                  ((0) (f x))
                  ((1) (g x))
                  ((2) (h x)))))
           (g (lambda (x)
                (case x
                  ((0) (f x))
                  ((1) (g x))
                  ((2) (h x)))))
           (h (lambda (x)
                (case x
                  ((0) (f x))
                  ((1) (g x))
                  ((2) ;(h x)
                   x)))))
    (f y)))


with kawa --version -C inline4.scm aborts with this message:


Kawa 1.11 (revision 0:6912M)
Copyright (C) 2009 Per Bothner
(compiling inline4.scm to inline4)
inline4.scm:7: internal error while compiling inline4.scm
java.lang.ArrayIndexOutOfBoundsException: 2
        at gnu.bytecode.Label.mergeLocalType(Label.java:119)
        at gnu.bytecode.Label.notifyTypeChangeListeners(Label.java:135)
        at gnu.bytecode.Label.mergeLocalType(Label.java:123)
        at gnu.bytecode.Label.notifyTypeChangeListeners(Label.java:139)
        at gnu.bytecode.Label.mergeLocalType(Label.java:123)
        at gnu.bytecode.Label.notifyTypeChangeListeners(Label.java:139)
        at gnu.bytecode.Label.mergeLocalType(Label.java:123)
        at gnu.bytecode.Label.setTypes(Label.java:93)
        at gnu.bytecode.Label.setTypes(Label.java:105)
        at gnu.bytecode.CodeAttr.emitGoto(CodeAttr.java:1573)
        at gnu.bytecode.CodeAttr.emitTailCall(CodeAttr.java:2471)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:297)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:111)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.IfExp.compile(IfExp.java:118)
        at gnu.expr.IfExp.compile(IfExp.java:52)
        at gnu.expr.Expression.compileWithPosition(Expression.java:130)
        at gnu.expr.IfExp.compile(IfExp.java:130)
        at gnu.expr.IfExp.compile(IfExp.java:52)
        at gnu.expr.Expression.compileWithPosition(Expression.java:130)
        at gnu.expr.IfExp.compile(IfExp.java:130)
        at gnu.expr.IfExp.compile(IfExp.java:52)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.LetExp.compile(LetExp.java:196)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:307)
        at gnu.expr.ApplyExp.compile(ApplyExp.java:111)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.BeginExp.compile(BeginExp.java:143)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:127)
        at gnu.expr.LetExp.compile(LetExp.java:196)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619)
        at gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1595)
        at gnu.expr.LambdaExp.compileSetField(LambdaExp.java:656)
        at gnu.expr.SetExp.compile(SetExp.java:168)
        at gnu.expr.Expression.compileNotePosition(Expression.java:156)
        at gnu.expr.Expression.compileWithPosition(Expression.java:142)
        at gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619)
        at gnu.expr.Compilation.generateBytecode(Compilation.java:2014)
        at gnu.expr.Compilation.process(Compilation.java:1892)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:305)
        at gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:290)
        at kawa.repl.compileFiles(repl.java:783)
        at kawa.repl.processArgs(repl.java:412)
        at kawa.repl.main(repl.java:829)






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?32656>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]