bugKawa - Bugs: bug #14037, leaking lexical bindings

 
 

bug #14037: leaking lexical bindings

Submitted by:  tk <huh>
Submitted on:  Thu 04 Aug 2005 08:29:35 PM UTC  
 
Category: Code generationSeverity: 3 - Normal
Item Group: Unexpected resultStatus: Fixed
Privacy: PublicAssigned to: Per Bothner <bothner>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 05 Aug 2005 07:07:31 AM UTC, comment #1:

Thanks. I checked in a fix.

Per Bothner <bothner>
Project AdministratorIn charge of this item.
Thu 04 Aug 2005 08:29:35 PM UTC, original submission:

under some circumstances, lexical bindings created at the top level
area leaking into the top level environment. this apparently only occurs
for compiled code.
(kawa 1.8b, cvs 8/4/2005)

here's an example where this happens:

$ cat foo.scm
(define foo
(let ((x 1))
(lambda (n)
(+ x n))))

$ rlwrap java -jar kawa/kawa-1.8beta.jar
#|kawa:1|# x
gnu.mapping.UnboundLocationException: Unbound symbol x
at gnu.expr.ReferenceExp.eval(ReferenceExp.java:107)
at gnu.expr.Expression.apply(Expression.java:35)
at gnu.expr.ModuleExp.evalModule(ModuleExp.java:152)
at kawa.Shell.run(Shell.java:229)
at kawa.Shell.run(Shell.java:172)
at kawa.Shell.run(Shell.java:159)
at kawa.repl.main(repl.java:744)
#|kawa:2|#
#|kawa:2|# (compile-file "foo.scm" "foo.zip")
#|kawa:3|# (load"foo.zip")
#|kawa:4|# x
1
#|kawa:5|#

tk <huh>

 

(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

 

CC list is empty

 

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 4 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 05 Aug 2005 07:07:31 AM UTCbothnerStatusNone=>Fixed
  Assigned toNone=>bothner
  Open/ClosedOpen=>Closed
Thu 04 Aug 2005 08:29:36 PM UTChuhCarbon-Copy-=>Added -unavailable-

Back to the top


Powered by Savane 3.1-cleanup1