bugKawa - Bugs: bug #33049, Internal compile error on...

 
 

bug #33049: Internal compile error on compilation of code

Submitter:  None
Submitted:  Mon 11 Apr 2011 09:51:02 PM UTC
   
 
Category:  Scheme language Severity:  3 - Normal
Item Group:  Compile-time exception Status:  Need Info
Privacy:  Public Assigned to:  bothner
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 23 Apr 2012 05:29:26 AM UTC, comment #1: 

I need a test-case for this.

Per Bothner <bothner>
Group administrator
Mon 11 Apr 2011 09:51:02 PM UTC, original submission:  

Kawa 1.11, OS X 10.5, Java 6


[offending snippet below.  I can make the full running source available no problem, but it can't be pasted in this window.  Instead contact sean@cs.gmu.edu]


(define (perform target :: Steppable      ;;;;; THIS IS LINE 275.  Problem occurs regardless of function name
            method :: symbol
            #!key
            (at :: <double> (floor (+ 1.0 (schedule:getTime))))
            (order :: <int> 0.0)
            (repeat 1.0))
  (let ((agent (referring-agent target method)))
    (if (eq? #f repeat)
        (schedule:scheduleOnce at order agent)
        (schedule:scheduleRepeating at order agent repeat))))


[Bug:]


newflocker.scm:275:1: internal compile error - caught java.lang.Error: at PC 33 then clause grows stack with no else clause
    gnu.bytecode.CodeAttr.emitFi(CodeAttr.java:1891)
    gnu.expr.LambdaExp.enterFunction(LambdaExp.java:1469)
    gnu.expr.LambdaExp.compileAsMethod(LambdaExp.java:1593)
    gnu.expr.LambdaExp.compileSetField(LambdaExp.java:656)
    gnu.expr.SetExp.compile(SetExp.java:167)
    gnu.expr.Expression.compileNotePosition(Expression.java:156)
    gnu.expr.Expression.compileWithPosition(Expression.java:142)
    gnu.expr.LambdaExp.compileBody(LambdaExp.java:1619)
    gnu.expr.Compilation.generateBytecode(Compilation.java:2107)
    gnu.expr.Compilation.process(Compilation.java:1984)
    gnu.expr.ModuleInfo.loadByStages(ModuleInfo.java:330)
    gnu.expr.ModuleExp.evalToClass(ModuleExp.java:55)
    gnu.expr.ModuleExp.evalModule1(ModuleExp.java:226)
    gnu.expr.ModuleExp.evalModule(ModuleExp.java:182)
    kawa.Shell.run(Shell.java:281)
    kawa.Shell.runFile(Shell.java:490)
    kawa.standard.load.apply2(load.java:42)
    kawa.standard.load.apply1(load.java:26)
    gnu.mapping.Procedure.apply(Procedure.java:130)
    gnu.mapping.Procedure.apply(Procedure.java:113)
    gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
    gnu.expr.ModuleExp.evalModule2(ModuleExp.java:348)
    gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
    kawa.Shell.run(Shell.java:281)
    kawa.Shell.run(Shell.java:194)
    kawa.Shell.run(Shell.java:175)
    kawa.repl.main(repl.java:848)

at kawa.standard.load.apply2(load.java:51)
at kawa.standard.load.apply1(load.java:26)
at gnu.mapping.Procedure.apply(Procedure.java:130)
at gnu.mapping.Procedure.apply(Procedure.java:113)
at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
at gnu.expr.ModuleExp.evalModule2(ModuleExp.java:348)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:185)
at kawa.Shell.run(Shell.java:281)
at kawa.Shell.run(Shell.java:194)
at kawa.Shell.run(Shell.java:175)
at kawa.repl.main(repl.java:848)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-04-23 bothner StatusNone Need Info
        Assigned toNone bothner

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code