GNU bug report logs - #42797
starting thread from an used module dead lock

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: Michal Herko <michal.herko@HIDDEN>; dated Mon, 10 Aug 2020 10:15:02 UTC; Maintainer for guile is bug-guile@HIDDEN.

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


Received: (at submit) by debbugs.gnu.org; 10 Aug 2020 10:14:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Aug 10 06:14:05 2020
Received: from localhost ([127.0.0.1]:34499 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1k54oe-0001hh-To
	for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 06:14:05 -0400
Received: from lists.gnu.org ([209.51.188.17]:45566)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <michal.herko@HIDDEN>) id 1k54Z6-0001DB-Hi
 for submit <at> debbugs.gnu.org; Mon, 10 Aug 2020 05:58:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37184)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michal.herko@HIDDEN>)
 id 1k54Z5-0004uM-Uk
 for bug-guile@HIDDEN; Mon, 10 Aug 2020 05:58:00 -0400
Received: from knopi.disroot.org ([178.21.23.139]:43604)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <michal.herko@HIDDEN>)
 id 1k54Z3-00048U-Fg
 for bug-guile@HIDDEN; Mon, 10 Aug 2020 05:57:59 -0400
Received: from localhost (localhost [127.0.0.1])
 by disroot.org (Postfix) with ESMTP id 591E451C71
 for <bug-guile@HIDDEN>; Mon, 10 Aug 2020 11:57:53 +0200 (CEST)
X-Virus-Scanned: Debian amavisd-new at disroot.org
Received: from knopi.disroot.org ([127.0.0.1])
 by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id aG1-r_u4wSyE for <bug-guile@HIDDEN>;
 Mon, 10 Aug 2020 11:57:52 +0200 (CEST)
Message-ID: <ba10406841d6589b9543543e373a30f69fbdfc70.camel@HIDDEN>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail;
 t=1597053472; bh=c4us2xJqZNjRGe6YzhLwHXtdvtM4mjlAANBEpDV+orc=;
 h=Subject:From:To:Date;
 b=eFt3/zStG0aF6Pk+nWb9jsJwhi3SYGHFN0zyhCT4cinOEtXagmZ3eyOhtP2xKe3F9
 5UuwQtMYqtgV41nA8YzNspvqI4EoY1s1SbmNJxb55F/eGX8nw62LWXNf6BSZX4txm1
 MGHMOeuJ+YzGCRGBqDHvQcuqipj2RjKytEzgLAQgTeesRWkT7yndOimOMMdETErr72
 VqmVT0Y9Vb5wWVDuZLdqHDRK3TcvdF7hsh8jz6wakERLUFm29ytfJQ6nQwyZJWofK4
 4srnhIvL24APMRtlGLPXoP1/eOx0q3SUA9D9yoHbOm/oWwoiCZAGfexwdH4Nx0kZW/
 mK+p/qDYI7+0A==
Subject: starting thread from an used module dead lock
From: Michal Herko <michal.herko@HIDDEN>
To: bug-guile@HIDDEN
Date: Mon, 10 Aug 2020 11:57:51 +0200
Content-Type: multipart/mixed; boundary="=-/vSXoZeyFFJuNMHTTsML"
Mime-Version: 1.0
Received-SPF: pass client-ip=178.21.23.139;
 envelope-from=michal.herko@HIDDEN; helo=knopi.disroot.org
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/10 05:57:53
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic]
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.4 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 10 Aug 2020 06:14:03 -0400
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: -2.4 (--)


--=-/vSXoZeyFFJuNMHTTsML
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit

Hello,
Attempint to start a new thread from a file loaded using *use-modules*
dead locks guile.

Create a file *start.scm*

```
(define-module (start))

(use-modules
  (ice-9 threads))

(call-with-new-thread
  (lambda ()
    (format #t "hello from thread\n")))
```

Create a file *use.scm*

```
(define-module (use))

(use-modules (start))
```

Execute start.scm:

    $ guile -L . start.scm

The program should print the message end exit.
Instead it would hang forever without using cpu.
The bug displays both on guile version 2.2.7 and 3.0.4.
I was testing on debian bullseye, x86_64.
The workaround is to use *load-from-path* instead of *use-modules*.
The bug does not manifest from REPL.






--=-/vSXoZeyFFJuNMHTTsML
Content-Disposition: attachment; filename="use.scm"
Content-Transfer-Encoding: base64
Content-Type: text/x-scheme; name="use.scm"; charset="UTF-8"

KGRlZmluZS1tb2R1bGUgKHVzZSkpCgoodXNlLW1vZHVsZXMgKHN0YXJ0KSkKCjsgKGxvYWQtZnJv
bS1wYXRoICJzdGFydC5zY20iKQo=


--=-/vSXoZeyFFJuNMHTTsML
Content-Disposition: attachment; filename="start.scm"
Content-Transfer-Encoding: base64
Content-Type: text/x-scheme; name="start.scm"; charset="UTF-8"

KGRlZmluZS1tb2R1bGUgKHN0YXJ0KSkKCih1c2UtbW9kdWxlcwogIChpY2UtOSB0aHJlYWRzKSkK
CihjYWxsLXdpdGgtbmV3LXRocmVhZAogIChsYW1iZGEgKCkKICAgIChmb3JtYXQgI3QgImhlbGxv
IGZyb20gdGhyZWFkXG4iKSkpCgoK


--=-/vSXoZeyFFJuNMHTTsML--





Acknowledgement sent to Michal Herko <michal.herko@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#42797; 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, 10 Aug 2020 10:30:02 UTC

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