From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.devel Subject: futures and error dodginess Date: Mon, 06 Sep 2004 11:30:35 +1000 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <87pt50qj44.fsf@zip.com.au> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1094435182 26644 80.91.224.253 (6 Sep 2004 01:46:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Sep 2004 01:46:22 +0000 (UTC) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 06 03:46:17 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C48aG-0001Hr-00 for ; Mon, 06 Sep 2004 03:46:16 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C48dW-0007jG-5q for guile-devel@m.gmane.org; Sun, 05 Sep 2004 21:49:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C48cu-0007fw-WA for guile-devel@gnu.org; Sun, 05 Sep 2004 21:49:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C48cq-0007dN-Lb for guile-devel@gnu.org; Sun, 05 Sep 2004 21:48:57 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C48cq-0007cz-Iy for guile-devel@gnu.org; Sun, 05 Sep 2004 21:48:56 -0400 Original-Received: from [61.8.0.85] (helo=mailout2.pacific.net.au) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C48Tu-0000zB-R0 for guile-devel@gnu.org; Sun, 05 Sep 2004 21:39:43 -0400 Original-Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i861dZje031933 for ; Mon, 6 Sep 2004 11:39:35 +1000 Original-Received: from localhost (ppp26E5.dyn.pacific.net.au [61.8.38.229]) by mailproxy2.pacific.net.au (8.12.3/8.12.3/Debian-6.6) with ESMTP id i861dY78027006 for ; Mon, 6 Sep 2004 11:39:34 +1000 Original-Received: from gg by localhost with local (Exim 3.36 #1 (Debian)) id 1C48L7-0000W3-00; Mon, 06 Sep 2004 11:30:37 +1000 Original-To: guile-devel@gnu.org Mail-Copies-To: never User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:4081 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:4081 Running (future-ref (future (error "x"))) sometimes gives Backtrace: In unknown file: ?: 0* [primitive-load "/home/gg/test/future.scm"] In /home/gg/test/future.scm: 2: 1* [future-ref ... 2: 2* (future (error "x")) In unknown file: ?: 3* [#f] /home/gg/test/future.scm:2:13: In procedure apply in expression (future (error "x")): /home/gg/test/future.scm:2:13: Wrong type argument in position 1: #f It seems to be a race, sometimes the error is from future-ref about a failed future (which is good), or sometimes just a segv. I suspect %threads-handler is its dummy #f when future_handler tries to call it. Maybe that definition should be in boot-9 instead of the threads module. Adding that module (use-modules (ice-9 threads)) (future-ref (future (error "x"))) then gives a printout In thread: ERROR: x but hangs. _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://lists.gnu.org/mailman/listinfo/guile-devel