From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#32367: sigaction hangs Date: Sat, 15 Dec 2018 12:50:37 -0500 Message-ID: <87pnu2adbr.fsf@netris.org> References: <8f96e55a-db92-c150-8336-f751ce3c6b7d@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1544896214 31608 195.159.176.226 (15 Dec 2018 17:50:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Dec 2018 17:50:14 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: 32367@debbugs.gnu.org To: Matt Wette Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Dec 15 18:50:10 2018 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 1gYE4j-0007yp-Iz for guile-bugs@m.gmane.org; Sat, 15 Dec 2018 18:50:05 +0100 Original-Received: from localhost ([::1]:39867 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYE6p-0004Mx-Mk for guile-bugs@m.gmane.org; Sat, 15 Dec 2018 12:52:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49660) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYE6h-0004LT-Vv for bug-guile@gnu.org; Sat, 15 Dec 2018 12:52:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYE6c-0007TE-M1 for bug-guile@gnu.org; Sat, 15 Dec 2018 12:52:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45323) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYE6c-0007Sr-Gt for bug-guile@gnu.org; Sat, 15 Dec 2018 12:52:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYE6c-0003cB-ES for bug-guile@gnu.org; Sat, 15 Dec 2018 12:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 15 Dec 2018 17:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32367 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 32367-submit@debbugs.gnu.org id=B32367.154489630613873 (code B ref 32367); Sat, 15 Dec 2018 17:52:02 +0000 Original-Received: (at 32367) by debbugs.gnu.org; 15 Dec 2018 17:51:46 +0000 Original-Received: from localhost ([127.0.0.1]:49581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYE6L-0003bh-PY for submit@debbugs.gnu.org; Sat, 15 Dec 2018 12:51:45 -0500 Original-Received: from world.peace.net ([64.112.178.59]:57100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYE6J-0003bR-DG for 32367@debbugs.gnu.org; Sat, 15 Dec 2018 12:51:43 -0500 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1gYE6C-0000m5-US; Sat, 15 Dec 2018 12:51:37 -0500 In-Reply-To: (Matt Wette's message of "Sat, 15 Dec 2018 08:58:51 -0800") 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:9289 Archived-At: Hi Matt, Matt Wette writes: > On 12/15/18 8:46 AM, Matt Wette wrote: >> -s seems to end up using load-in-vicinity: I can re-create this way: >> >> mwette$ guile -L `pwd` -c '(load-in-vicinity (getcwd) "foo.scm")' >> ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 >> ;;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or pass the --no-auto-compile ar= gument to disable. >> ;;; compiling /home/mwette/proj/guile/bugs-guile/32367/foo.scm >> setting SIGCHILD to SIG_DFL... >> ^C >> > > And using `-l' to load scsh.scm fixes the problem: > > mwette$ guile -L `pwd` -l scsh.scm -c '(load-in-vicinity (getcwd) > "foo.scm")'setting SIGCHILD to SIG_DFL... > setting SIGCHILD to SIG_DFL...done > ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 > ;;;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 or pass the --no-auto-compile arg= ument to disable. > ;;; compiling /home/mwette/proj/guile/bugs-guile/32367/foo.scm > ;;; compiled > /home/mwette/.cache/guile/ccache/2.2-LE-8-3.A/home/mwette/proj/guile/bugs= -guile/32367/foo.scm.go > mwette $ > > An update from 2.2.3 to 2.2.4 adds call-with-module-autoload-lock > which places a > mutex around autoload.=C2=A0 This looks like one place to start > digging. See ice-9/threads.scm: > > (set! (@ (guile) call-with-module-autoload-lock) > =C2=A0 (let ((mutex (make-mutex 'recursive))) > =C2=A0=C2=A0=C2=A0 (lambda (thunk) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (with-mutex mutex > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (thunk))))) It looks like you might have missed some of the messages in this bug report. See and later comments. Regards, Mark