From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#22767: Thread-sleep! doesn't sleep Date: Sun, 07 Aug 2016 23:32:26 +0200 Message-ID: <87twewnu39.fsf@pobox.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1470605603 18186 195.159.176.226 (7 Aug 2016 21:33:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 7 Aug 2016 21:33:23 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: 22767@debbugs.gnu.org To: Takashi Kato Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Aug 07 23:33:20 2016 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWVh8-0003nd-79 for guile-bugs@m.gmane.org; Sun, 07 Aug 2016 23:33:18 +0200 Original-Received: from localhost ([::1]:53923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWVh5-0007Ih-1I for guile-bugs@m.gmane.org; Sun, 07 Aug 2016 17:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWVgy-0007IP-Bp for bug-guile@gnu.org; Sun, 07 Aug 2016 17:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bWVgs-0002Op-Ay for bug-guile@gnu.org; Sun, 07 Aug 2016 17:33:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33741) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bWVgs-0002Oc-3y for bug-guile@gnu.org; Sun, 07 Aug 2016 17:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bWVgr-0002Le-Q6 for bug-guile@gnu.org; Sun, 07 Aug 2016 17:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 07 Aug 2016 21:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22767 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 22767-submit@debbugs.gnu.org id=B22767.14706055558986 (code B ref 22767); Sun, 07 Aug 2016 21:33:01 +0000 Original-Received: (at 22767) by debbugs.gnu.org; 7 Aug 2016 21:32:35 +0000 Original-Received: from localhost ([127.0.0.1]:59271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWVgR-0002Ks-Dg for submit@debbugs.gnu.org; Sun, 07 Aug 2016 17:32:35 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:53140 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWVgQ-0002Kl-DV for 22767@debbugs.gnu.org; Sun, 07 Aug 2016 17:32:34 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 0BFE230962; Sun, 7 Aug 2016 17:32:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=lUHLNuDg6th5XUc6H4iRM3UPLGI=; b=MdrHbd hbLHT9/OoAH905k+dTOy0kXLDOCq8IjFkXS3hVQKpS0BMvEWSPLHFL+7AsrfNAzf 3bfsi9SKSpv3U2ts/b5mJWrMNb8OIQRST2BqxIzJ7V4+dz2NljM5zZzMZ/ReEWtE tovcU1V6skx/GxYgFfNWf9zpSxRr2fZkJhO6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=nHs5/AC3ZXlrVsAxxkSR7erTzqZvm4FY OZr+0YRRf1k31vF7i5gdqYisbcxmORxBig2ok7wbNrgeksOX2DKnl6DEZ1SnIN9l U3JfKPiHXVUzMQniY8vnAzBIlS6iwWIOX/aQgsYdB73r/LieU965lxuLdEsANV8N KrldStOIeOE= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 03A9F30960; Sun, 7 Aug 2016 17:32:34 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 1F9B43095B; Sun, 7 Aug 2016 17:32:33 -0400 (EDT) In-Reply-To: (Takashi Kato's message of "Mon, 22 Feb 2016 12:37:56 +0100") X-Pobox-Relay-ID: 73AA71AE-5CE6-11E6-81FA-28A6F1301B6D-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:8350 Archived-At: Hi Takashi, Thank you for the report. On Mon 22 Feb 2016 12:37, Takashi Kato writes: > I think I've found a bug of thread-sleep! defined in SRFI-18 library. > The file module/srfi/srfi-18.scm line 233 subtract current time from > given timeout argument but this results negative number most of the > case. I think this line should simply return timeout as it is. You are right. Guile's documentation indicates that the timeout is an absolute time as a SRFI-18 time object, but the SRFI itself says that timeouts are either: * a time object represents an absolute point in time * an exact or inexact real number represents a relative time in seconds from the moment the primitive was called So I guess when passed a number, that's not to be interpreted as an absolute time from the epoch, but rather a relative timeout. We need to update our documentation and tests, it seems, and issue a prominent NEWS entry... Andy