Re: [racket-dev] REPL crash

2010-12-01 Thread Matthew Flatt
At Tue, 30 Nov 2010 23:51:57 +0100, Dmitry Chestnykh wrote:
 Seg fault (internal error) at 0x4
 Bus error
 
 Mac OS X 10.6.5, same result on Racket 5.0.2 and 6c25210a6bb8 from git.

Fixed in the git repo.

Thanks for the report!
Matthew

_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev


Re: [racket-dev] REPL crash

2010-11-30 Thread Eli Barzilay
5 hours ago, Dmitry Chestnykh wrote:
 The following example from docs (11.9) crashes console REPL (but not
 gracket or DrRacket):
 
   (define-namespace-anchor anchor)
   (parameterize ([current-namespace
   (namespace-anchor-namespace anchor)])
(expand
 (datum-syntax
  #f
  '(delay (+ 1 2)

Namespace anchors are intended to be used from modules, when you're in
the REPL you don't really need to use them -- since you already have
the `current-namespace'.

The bug is still a bug, of course, just happens to be code that nobody
would try...  Here's a shorter version:

   (define-namespace-anchor anchor)
   (eval 1 (namespace-anchor-namespace anchor))

and in more primitive terms:

  (define tmp #f)
  (define r (#%variable-reference tmp))
  (eval 1 (variable-reference-namespace r))

-- 
  ((lambda (x) (x x)) (lambda (x) (x x)))  Eli Barzilay:
http://barzilay.org/   Maze is Life!
_
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/dev