[racket] How to crash DrRacket

From: Reginaldo J. S. Filho (xregis at gmail.com)
Date: Wed Mar 2 13:22:01 EST 2011

Hello,

I was playing with call/cc, and found that the following interaction crashes
DrRacket:

1) Write in "Definitions" area:
#lang racket
(define K #f)
(define x (call/cc
           (lambda (k)
             (set! K k)
             10)))

2) Push the "Run" button;

3) Write in the "Interaction" area:
(K 20)

-----

I would expect it to redefine x to 20, or maybe to give the error message:
"define-values: cannot re-define a constant: x"

But instead it just crashes and closes. Is this expected behavior?
I'm using Ubuntu 10.04 with the DrRacket 5.0.1 downloaded from the web site.

Thanks,

Reginaldo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20110302/b97daba5/attachment.html>

Posted on the users mailing list.