GNU bug report logs - #22767
Thread-sleep! doesn't sleep

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Takashi Kato <ktakashi19@HIDDEN>; dated Mon, 22 Feb 2016 16:01:01 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 22767 <at> debbugs.gnu.org:


Received: (at 22767) by debbugs.gnu.org; 7 Aug 2016 21:32:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Aug 07 17:32:35 2016
Received: from localhost ([127.0.0.1]:59271 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1bWVgR-0002Ks-Dg
	for submit <at> debbugs.gnu.org; Sun, 07 Aug 2016 17:32:35 -0400
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 <wingo@HIDDEN>) id 1bWVgQ-0002Kl-DV
 for 22767 <at> debbugs.gnu.org; Sun, 07 Aug 2016 17:32:34 -0400
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=
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)
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)
From: Andy Wingo <wingo@HIDDEN>
To: Takashi Kato <ktakashi19@HIDDEN>
Subject: Re: bug#22767: Thread-sleep! doesn't sleep
References: <CACcjVL3kCz3KAadnR05q6iYK4YczCbbcqmQL5C5BmFigs4mwwg@HIDDEN>
Date: Sun, 07 Aug 2016 23:32:26 +0200
In-Reply-To: <CACcjVL3kCz3KAadnR05q6iYK4YczCbbcqmQL5C5BmFigs4mwwg@HIDDEN>
 (Takashi Kato's message of "Mon, 22 Feb 2016 12:37:56 +0100")
Message-ID: <87twewnu39.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Pobox-Relay-ID: 73AA71AE-5CE6-11E6-81FA-28A6F1301B6D-02397024!pb-sasl2.pobox.com
X-Spam-Score: -0.4 (/)
X-Debbugs-Envelope-To: 22767
Cc: 22767 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.4 (/)

Hi Takashi,

Thank you for the report.

On Mon 22 Feb 2016 12:37, Takashi Kato <ktakashi19@HIDDEN> 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




Information forwarded to bug-guile@HIDDEN:
bug#22767; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 22 Feb 2016 16:00:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 22 11:00:42 2016
Received: from localhost ([127.0.0.1]:38232 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1aXsug-0005pN-5n
	for submit <at> debbugs.gnu.org; Mon, 22 Feb 2016 11:00:42 -0500
Received: from eggs.gnu.org ([208.118.235.92]:41156)
 by debbugs.gnu.org with esmtp (Exim 4.84)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooX-0004Nd-Q2
 for submit <at> debbugs.gnu.org; Mon, 22 Feb 2016 06:38:06 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooR-0006zb-Ft
 for submit <at> debbugs.gnu.org; Mon, 22 Feb 2016 06:38:00 -0500
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_20,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,T_DKIM_INVALID autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39953)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooR-0006zR-CZ
 for submit <at> debbugs.gnu.org; Mon, 22 Feb 2016 06:37:59 -0500
Received: from eggs.gnu.org ([2001:4830:134:3::10]:60353)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooQ-0000gZ-J9
 for bug-guile@HIDDEN; Mon, 22 Feb 2016 06:37:59 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooP-0006z2-T7
 for bug-guile@HIDDEN; Mon, 22 Feb 2016 06:37:58 -0500
Received: from mail-lb0-x233.google.com ([2a00:1450:4010:c04::233]:33848)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <ktakashi19@HIDDEN>) id 1aXooP-0006yf-Kk
 for bug-guile@HIDDEN; Mon, 22 Feb 2016 06:37:57 -0500
Received: by mail-lb0-x233.google.com with SMTP id of3so80139483lbc.1
 for <bug-guile@HIDDEN>; Mon, 22 Feb 2016 03:37:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:date:message-id:subject:from:to:content-type;
 bh=+5vvJzjwZ/y3ZimrcUu3l+Tx8Ntml1cNHrdVWDPyr40=;
 b=RBMq0IlSB3ZYAhD6IdmRum/iWFw8MMT3rlTG6gEiN7Lc9jnBDzpqpv01JV0NJSGWvv
 BQFYJUBBwZcsi2ofw3IS5Syd03xW5x1NdbReaKPpNZjxaoMhmvftEeVYtvmUZdyhAQpE
 cdI031TGiRHjGcwWNnqjnf45bVCIlgRE2z7EgNn4tJPl+I0HX0SeAaz3OWwTgQ60C/68
 eRY5btar6ysBnKmuipNqIw+2RLEp1BzQsuZ0ac5eSeBzjAfNqvNSXwpWghZ3/q/dnRb1
 NWOGXVta+YwHdkrCj4DvekJiwSJpVZNI2vTJm29J5zL7Br/qCnlFCs3MsZcs4EkpFKgP
 EwnQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:mime-version:date:message-id:subject:from:to
 :content-type;
 bh=+5vvJzjwZ/y3ZimrcUu3l+Tx8Ntml1cNHrdVWDPyr40=;
 b=jg8/yXe416us3fQCLNPdUcnoQY7fisXKm9CbDFtr/k2aiOa897sN/eDmOPUWKQ1XH7
 NBYtxpbeDeE3ooJUGGrDfEHesau2pYLpl5hpS3TXjTXHjMYI/kgAJipxqHCdI+yTKeqa
 HZUXYR7lckrkWsO9JhCsWXgDyenMT1Do1JBkAoQ8eEXnP/9aXoenFFWgplucoq+eq35y
 SItUudGLjVHGAW6gE/pp8CdZCE4RDh31j6ASpidORojRcgqBHy+ZXtMpzP4UKDeTRIBp
 BrIKD+I808HXiuUbLYNvs5kO7FFXnh+vGVOQDfZjqMw87/kPpePtlKU6UvV8JW/JtxNJ
 ifTg==
X-Gm-Message-State: AG10YOSOvMlzKrqWeoMMGogAuRnljBKmQZOfHyBu6NiJUzd1ElTF1LqbQqX5yjPFlX5zfV3DKRv3VcHBPnjNOw==
MIME-Version: 1.0
X-Received: by 10.112.12.233 with SMTP id b9mr8492157lbc.63.1456141076610;
 Mon, 22 Feb 2016 03:37:56 -0800 (PST)
Received: by 10.112.17.102 with HTTP; Mon, 22 Feb 2016 03:37:56 -0800 (PST)
Date: Mon, 22 Feb 2016 12:37:56 +0100
Message-ID: <CACcjVL3kCz3KAadnR05q6iYK4YczCbbcqmQL5C5BmFigs4mwwg@HIDDEN>
Subject: Thread-sleep! doesn't sleep
From: Takashi Kato <ktakashi19@HIDDEN>
To: bug-guile@HIDDEN
Content-Type: text/plain; charset=UTF-8
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.8 (---)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 22 Feb 2016 11:00:41 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.8 (---)

Hi there,

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.

Cheers,

-- 
_/_/
Takashi Kato
E-mail: ktakashi19@HIDDEN




Acknowledgement sent to Takashi Kato <ktakashi19@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#22767; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.