Summary
Bindings from the current environment leak into scheme-report-environment
Metadata
- Id: a3deaced603e34797e91344ddc7dda0e79365441
- Trac id: 622
- Type: defect
- Reporter: pdh
- Owner: felix
- Cc:
- Status: closed
- Component: core libraries
- Estimated difficulty:
- Resolution: fixed
- Priority: major
- Milestone: 4.9.0
- Version: 4.7.x
- Changetime: 2012-09-24 21:47:48 UTC
- Created: 2011-06-25 03:10:41 UTC
- Keywords:
Description
The "numbers" egg breaks (scheme-report-environment).
This is what it looks like: > $ csi > Version 4.7.0 > openbsd-unix-gnu-x86-64 [[|64bit manyargs dload ptables ]] > ... > #;1> (eval '(- 3 1) (scheme-report-environment 5)) > 2 > #;2> ((eval '- (scheme-report-environment 5)) 4 2) > 2 > #;3> (use numbers) > ... > #;4> (eval '(- 3 1) (scheme-report-environment 5)) > > Error: unbound variable: numbers#- > > Call history: > > <syntax> (eval (quote (- 3 1)) (scheme-report-environment 5)) > <syntax> (quote (- 3 1)) > <syntax> (##core#quote (- 3 1)) > <syntax> (scheme-report-environment 5) > <eval> (eval (quote (- 3 1)) (scheme-report-environment 5)) > <eval> (scheme-report-environment 5) > <syntax> (- 3 1) > <eval> (- 3 1) <-- > #;4> ((eval '- (scheme-report-environment 5)) 4 2) > > Error: unbound variable: numbers#- > > Call history: > > <syntax> ((eval (quote -) (scheme-report-environment 5)) 4 2) > <syntax> (eval (quote -) (scheme-report-environment 5)) > <syntax> (quote -) > <syntax> (##core#quote -) > <syntax> (scheme-report-environment 5) > <eval> ((eval (quote -) (scheme-report-environment 5)) 4 2) > <eval> (eval (quote -) (scheme-report-environment 5)) > <eval> (scheme-report-environment 5) <-- > #;4>
Observed in the "numbers" egg Version 2.6. (That is, the version that I installed today.) r
Changes and comments
[2011-06-26 17:52:03 UTC] sjamaan changed status from new to accepted
[2011-06-26 17:52:03 UTC] sjamaan set owner to sjamaan
[2011-06-26 17:52:03 UTC] sjamaan changed component from extensions to expander
[2011-06-26 17:52:03 UTC] sjamaan wrote:
The bug is in Chicken, not numbers:
(module foo (+) (import (except scheme +)) (define (+ . _) 'plus)) (import foo) (eval '(+ 1 2) (scheme-report-environment 5))
I'll look into it.
[2011-06-26 17:55:03 UTC] sjamaan changed summary
[2011-08-31 11:49:34 UTC] felix changed status from accepted to assigned
[2011-08-31 11:49:34 UTC] felix changed owner from sjamaan to felix
[2011-08-31 11:52:34 UTC] felix changed description
[2011-08-31 11:52:34 UTC] felix wrote:
I think this may be an environment-related problem. Since I've changed this now, I'll take a look myself.
[2011-08-31 11:52:34 UTC] felix changed component from expander to core libraries
[2011-08-31 12:28:52 UTC] felix changed status from assigned to closed
[2011-08-31 12:28:52 UTC] felix set resolution to fixed
[2011-08-31 12:28:52 UTC] felix wrote:
I can't reproduce this anymore. Recent changes to the implementation of eval-environments seem tto have fixed this.
[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0
[2012-09-24 21:47:48 UTC] felix wrote:
Milestone 4.8.0 deleted