From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: angry rectangle Newsgroups: gmane.lisp.guile.bugs Subject: bug#55356: join-thread unusable if timeout was hit Date: Tue, 10 May 2022 20:42:03 -0400 Message-ID: <87fslgg65p.fsf@cock.li> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3453"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.6.10; emacs 29.0.50 To: 55356@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed May 11 04:30:22 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1noc7G-0000c0-VJ for guile-bugs@m.gmane-mx.org; Wed, 11 May 2022 04:30:22 +0200 Original-Received: from localhost ([::1]:55454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noc7F-0001P9-6e for guile-bugs@m.gmane-mx.org; Tue, 10 May 2022 22:30:17 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49158) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noc72-0001Nb-0k for bug-guile@gnu.org; Tue, 10 May 2022 22:30:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noc70-0003bg-Ba for bug-guile@gnu.org; Tue, 10 May 2022 22:30:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noc70-0006bg-2b for bug-guile@gnu.org; Tue, 10 May 2022 22:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: angry rectangle Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 11 May 2022 02:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55356 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165223617225338 (code B ref -1); Wed, 11 May 2022 02:30:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 May 2022 02:29:32 +0000 Original-Received: from localhost ([127.0.0.1]:35498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noc6W-0006ac-Gs for submit@debbugs.gnu.org; Tue, 10 May 2022 22:29:32 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:35440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noc6U-0006aU-6x for submit@debbugs.gnu.org; Tue, 10 May 2022 22:29:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49140) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noc6R-0000mv-M1 for bug-guile@gnu.org; Tue, 10 May 2022 22:29:28 -0400 Original-Received: from [37.120.193.124] (port=49282 helo=mail.cock.li) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noc6P-0003YK-MK for bug-guile@gnu.org; Tue, 10 May 2022 22:29:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1652235737; bh=027FYw3lkBaPefuydTF2ohRN/L2gILiDhca9dtKQXks=; h=From:To:Subject:Date:From; b=IC4p8KmC/Oz2Z7hkcg4txXp+XXhTiQoTJi8C0kspBuMFH4GLD0BBt9QlwQ3Hz8HrP 4mkvs+YzPbas5CD14tl7EGA2CguZpLcFE8wmZZ3jyAtDjsB053pMzCsqDmn6tFpCBM ihzJ3Psp0Gu0YVYXB56d7v5oAT4tjbt/EM8kByGuNPLwVEgf/rAJH5qRHQrSc/KKfq 2lkqaAw5GvVXGKsu5XfqyJpqSDH3V8dVoAYLCS+mQKRvMkq2UXOE3gxSXRfTja6nH3 SqWyrqbHJTPjZK8nanjM3K7svg71KGtPA20fDBVI0vU/uaFM0ViAcS1gluOO6AZNtN zGn8BY4KnvCnA== X-Host-Lookup-Failed: Reverse DNS lookup failed for 37.120.193.124 (failed) Received-SPF: pass client-ip=37.120.193.124; envelope-from=angryrectangle@cock.li; helo=mail.cock.li X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10278 Archived-At: If join-thread is called after a previous call to join-thread hits the timeout, a "mutex already locked by thread" error is thrown. Working example: (use-modules (ice-9 threads)) (define t (call-with-new-thread (lambda _ (let r () (sleep 1) (r))))) (join-thread t (current-time)) (join-thread t (current-time)) ;; exception here my guile version: latest git. cc455976813ab94de121395982435430874cbf58 my OS: guix on amd64