[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MIT-Scheme-devel] multi-threading problem: Unassigned variable: roo

From: Taylor R Campbell
Subject: Re: [MIT-Scheme-devel] multi-threading problem: Unassigned variable: root-continuation-default
Date: Thu, 26 Apr 2012 21:56:15 +0000
User-agent: IMAIL/1.21; Edwin/3.116; MIT-Scheme/9.1

   Date: Thu, 26 Apr 2012 14:28:34 +0200
   From: <address@hidden>

   (let ((socket (open-tcp-server-socket 54321)))
     (create-thread #f (lambda ()
                          (let ((sock (tcp-server-connection-accept socket #t 
                            (create-thread #f (lambda ()
                                                 (format #t "ok~%")
                                                 (close-port sock)))))))

   then I try to connect to port 54321 locally (with "nc localhost 54321"
   for example), which produces the following output:

   ;Value 13: #[thread 13]

   1 ]=> 
   ;The thread #[thread 13] signalled an error: Unassigned variable: 

This is a bug which illustrates how little anyone has ever hammered on
the thread system...  I'm not sure exactly what the right thing to do
here is, but basically, the default `create thread continuation'
should be inherited by threads -- it's just not clear how to make that
happen without also inheriting all other dynamic state by default,
which is wrong.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]