[plt-scheme] sandbox & ports closed prematurely

From: Tom Schouten (tom at zwizwa.be)
Date: Tue Jul 1 07:49:24 EDT 2008


I ran into strange sandbox evaluator behaviour where an output port gets closed immediately, 
instead of at evaluator destruction time:

Welcome to MzScheme v4.0.1.3 [3m], Copyright (c) 2004-2008 PLT Scheme Inc.
> (require scheme/sandbox)
> (sandbox-security-guard (current-security-guard))
> (define e (make-evaluator 'scheme/base))
> (define f (e '(open-output-file "/tmp/bla")))
> (display 123 f)
display: output port is closed

 === context ===

Tested with last night's build.


Posted on the users mailing list.