From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.bugs Subject: bug#32367: sigaction hangs Date: Sat, 15 Dec 2018 08:58:51 -0800 Message-ID: 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; format=flowed Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1544893028 27084 195.159.176.226 (15 Dec 2018 16:57:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 15 Dec 2018 16:57:08 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 To: 32367@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Dec 15 17:57:04 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 1gYDFP-0006vP-SW for guile-bugs@m.gmane.org; Sat, 15 Dec 2018 17:57:04 +0100 Original-Received: from localhost ([::1]:39641 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYDHW-0007aY-Jr for guile-bugs@m.gmane.org; Sat, 15 Dec 2018 11:59:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gYDHR-0007aQ-45 for bug-guile@gnu.org; Sat, 15 Dec 2018 11:59:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gYDHN-0005bQ-8q for bug-guile@gnu.org; Sat, 15 Dec 2018 11:59:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45301) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gYDHK-0005OK-JA for bug-guile@gnu.org; Sat, 15 Dec 2018 11:59:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gYDHK-00022h-F6 for bug-guile@gnu.org; Sat, 15 Dec 2018 11:59:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Matt Wette Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 15 Dec 2018 16:59: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.15448931417844 (code B ref 32367); Sat, 15 Dec 2018 16:59:02 +0000 Original-Received: (at 32367) by debbugs.gnu.org; 15 Dec 2018 16:59:01 +0000 Original-Received: from localhost ([127.0.0.1]:49559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYDHI-00022R-UH for submit@debbugs.gnu.org; Sat, 15 Dec 2018 11:59:01 -0500 Original-Received: from mail-pg1-f177.google.com ([209.85.215.177]:38091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gYDHH-00022D-Hd for 32367@debbugs.gnu.org; Sat, 15 Dec 2018 11:58:59 -0500 Original-Received: by mail-pg1-f177.google.com with SMTP id g189so4129888pgc.5 for <32367@debbugs.gnu.org>; Sat, 15 Dec 2018 08:58:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=6aYYEShbjt+kme311ZE1TbPS8zwdoKNSc5hS6viqP/w=; b=SYoAMGL99EBKmWltsK4CvjlOisoDfnnqZqvULeDXh1drbqK6dsHiZWSUMRPK2yuVcG hM+uNapgyfRV0H9sZWBBL+CMVfWuX9wCHSnBW+YmJSdDpu2eXbvfPKZaKqgvP/WS7wqf 8N7N6LAP0PnDpRUR+/d7exePa/A1mH60iFqo/VnhID1N5Qmu0o0KhWWYRELHBe9aaM4S cAZ9p4aLzDcf4fw2mC4ud+0n+BhYmXRRccLXjeTz86Dwx5V2nOKGkyWoFY/elLoz1xgZ hVqWJBnYYQ9LHkMt+AxngyXlrnzKHEO0crEyZ22l+jaUviiF/BUf/KJhNomeKLlLds9t M3yA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6aYYEShbjt+kme311ZE1TbPS8zwdoKNSc5hS6viqP/w=; b=Rumlcc/CRslca93SAuh79mWzAJaAvzyJbn8oaYNGf6oL2S0URnzutCUeGWOg3/8SNU NZPcgNSlUyd8JsMheQW2Sn5cpAF95zN9eVWLLImi9AWIk7J/Jyoo0Z3Fk31D010f95Gy EdWLrAI+ox8XKJJQuy8pBWkqgVp+GsXUJ41wdHRQscBvqNy1JLqkuPKE7W9XmZvZqRJO Ab7WSU17RaSRr5hPJswSRfTCliKMgH9Wl8VJHoziqfqJ5iaMOdYU71aBXEiPWaBMiFiV Nwiqw0/KpHw7AQ2w12JBS/n5glIb9xa/7hYQav7VuMj61c2EZ/I9LG70HsPXnyZEqlS1 CQlg== X-Gm-Message-State: AA+aEWapidD3xSsnSNO11M/Kxp734IkkLCeviDHF28PV6mzOAQPZ6SNm KijeYv19JsBVG56C49n9/X/ymNMU X-Google-Smtp-Source: AFSGD/UKHkjuDLYNDAyaBITZKwiih+8v1O04aFJcx0jVMUdQVu5qoJYXmIIKkDlRriOGbkmxxz66OA== X-Received: by 2002:a63:ac1a:: with SMTP id v26mr6714585pge.293.1544893133191; Sat, 15 Dec 2018 08:58:53 -0800 (PST) Original-Received: from [192.168.2.183] (216-165-229-229.championbroadband.com. [216.165.229.229]) by smtp.gmail.com with ESMTPSA id w128sm10990110pfw.79.2018.12.15.08.58.52 for <32367@debbugs.gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 15 Dec 2018 08:58:52 -0800 (PST) In-Reply-To: <8f96e55a-db92-c150-8336-f751ce3c6b7d@gmail.com> Content-Language: en-US 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:9288 Archived-At: 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=0 > ;;;       or pass the --no-auto-compile argument 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=0 ;;;       or pass the --no-auto-compile argument 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.  This looks like one place to start digging. See ice-9/threads.scm: (set! (@ (guile) call-with-module-autoload-lock)   (let ((mutex (make-mutex 'recursive)))     (lambda (thunk)       (with-mutex mutex         (thunk)))))