GNU logs - #42797, boring messages


Message sent to bug-guile@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#42797: starting thread from an used module dead lock
Resent-From: Michal Herko <michal.herko@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-guile@HIDDEN
Resent-Date: Mon, 10 Aug 2020 10:15:02 +0000
Resent-Message-ID: <handler.42797.B.15970544456557 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 42797
X-GNU-PR-Package: guile
X-GNU-PR-Keywords: 
To: 42797 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-guile@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.15970544456557
          (code B ref -1); Mon, 10 Aug 2020 10:15:02 +0000
Received: (at submit) by debbugs.gnu.org; 10 Aug 2020 10:14:05 +0000
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==
From: Michal Herko <michal.herko@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-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--





Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Michal Herko <michal.herko@HIDDEN>
Subject: bug#42797: Acknowledgement (starting thread from an used module
 dead lock)
Message-ID: <handler.42797.B.15970544456557.ack <at> debbugs.gnu.org>
References: <ba10406841d6589b9543543e373a30f69fbdfc70.camel@HIDDEN>
X-Gnu-PR-Message: ack 42797
X-Gnu-PR-Package: guile
Reply-To: 42797 <at> debbugs.gnu.org
Date: Mon, 10 Aug 2020 10:15:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-guile@HIDDEN

If you wish to submit further information on this problem, please
send it to 42797 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
42797: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D42797
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems



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.