From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Derek Upham Newsgroups: gmane.lisp.guile.bugs Subject: bug#32367: 2.2.4 hangs when a script uses a module that calls sigaction Date: Sat, 04 Aug 2018 17:47:09 -0700 Message-ID: <87pnyx4p2q.fsf@priss.frightenedpiglet.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 1533429965 18246 195.159.176.226 (5 Aug 2018 00:46:05 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 5 Aug 2018 00:46:05 +0000 (UTC) User-Agent: mu4e 0.9.17; emacs 25.2.2 To: 32367@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Aug 05 02:46:01 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 1fm7BI-0004dm-Po for guile-bugs@m.gmane.org; Sun, 05 Aug 2018 02:46:01 +0200 Original-Received: from localhost ([::1]:56696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fm7DO-0004MU-Vk for guile-bugs@m.gmane.org; Sat, 04 Aug 2018 20:48:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fm7DJ-0004MP-EV for bug-guile@gnu.org; Sat, 04 Aug 2018 20:48:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fm7DG-0001v1-9x for bug-guile@gnu.org; Sat, 04 Aug 2018 20:48:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36185) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fm7DG-0001uv-5b for bug-guile@gnu.org; Sat, 04 Aug 2018 20:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fm7DF-0003YY-Uz for bug-guile@gnu.org; Sat, 04 Aug 2018 20:48:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Derek Upham Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 05 Aug 2018 00:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32367 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153343004513620 (code B ref -1); Sun, 05 Aug 2018 00:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Aug 2018 00:47:25 +0000 Original-Received: from localhost ([127.0.0.1]:41203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fm7Cf-0003Xa-JN for submit@debbugs.gnu.org; Sat, 04 Aug 2018 20:47:25 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52038) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fm7Ce-0003XP-9r for submit@debbugs.gnu.org; Sat, 04 Aug 2018 20:47:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fm7CY-0001lN-5w for submit@debbugs.gnu.org; Sat, 04 Aug 2018 20:47:19 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:52950) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fm7CY-0001lE-1p for submit@debbugs.gnu.org; Sat, 04 Aug 2018 20:47:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fm7CW-0004I9-SY for bug-guile@gnu.org; Sat, 04 Aug 2018 20:47:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fm7CT-0001hC-Qw for bug-guile@gnu.org; Sat, 04 Aug 2018 20:47:16 -0400 Original-Received: from smtp61.avvanta.com ([206.124.128.61]:32895 helo=mail.avvanta.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fm7CT-0001fq-IO for bug-guile@gnu.org; Sat, 04 Aug 2018 20:47:13 -0400 Original-Received: from mail.avvanta.com (localhost.drteeth.p.blarg.net [127.0.0.1]) by mail.avvanta.com (Postfix) with ESMTP id 44F9FF3937; Sat, 4 Aug 2018 17:46:17 -0700 (PDT) Original-Received: from priss.frightenedpiglet.com (c-73-83-45-232.hsd1.wa.comcast.net [73.83.45.232]) by mail.avvanta.com (Postfix) with ESMTP id 2ECC0F3935; Sat, 4 Aug 2018 17:46:17 -0700 (PDT) Original-Received: from localhost ([127.0.0.1] helo=priss.frightenedpiglet.com) by priss.frightenedpiglet.com with esmtp (Exim 4.91) (envelope-from ) id 1fm7CP-0005u3-K3; Sat, 04 Aug 2018 17:47:09 -0700 X-BlargAV-Status: No viruses detected, BlargAV v1.1 on localhost.drteeth.p.blarg.net X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:9110 Archived-At: This is with guile-2.2 (2.2.4+1-1) and guile-2.2-libs (2.2.4+1-1) on Debi= an unstable, for the amd64 architecture. Create the following one-line script file: (use-modules (scsh)) Call it (for example) =E2=80=9Cfoo=E2=80=9D. Create a file named =E2=80=9Cscsh.scm=E2=80=9D in a location where the ab= ove =E2=80=9Cuse-modules=E2=80=9D form will find it. I use =E2=80=9C/usr= /share/guile/site/scsh.scm=E2=80=9D. In =E2=80=9Cscsh.scm=E2=80=9D, put: (define-module (scsh)) (display "setting SIGCHILD to SIG_DFL...") (newline) (sigaction SIGCHLD SIG_DFL) (display "setting SIGCHILD to SIG_DFL...done") (newline) Invoke guile as follows: /usr/bin/guile < foo This is reading commands from stdin. You should see the expected output: GNU Guile 2.2.4 Copyright (C) 1995-2017 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. setting SIGCHILD to SIG_DFL... setting SIGCHILD to SIG_DFL...done and a command-line prompt. Invoke guile as a script: /usr/bin/guile -s foo I see just the following: setting SIGCHILD to SIG_DFL... Guile hangs at this point. Reverting Guile to 2.2.3 from the Debian testing distribution (guile-2.2-= dev_2.2.3+1-3+b1_amd64.deb, guile-2.2-doc_2.2.3+1-3_all.deb, guile-2.2-li= bs_2.2.3+1-3+b1_amd64.deb, guile-2.2_2.2.3+1-3+b1_amd64.deb) fixes the pr= oblem: % /usr/bin/guile -s foo=20 setting SIGCHILD to SIG_DFL... setting SIGCHILD to SIG_DFL...done Note that moving the sigaction call from =E2=80=9Cscsh.scm=E2=80=9D to =E2= =80=9Cfoo=E2=80=9D does not trigger the problem. It only happens when a = script uses a module that calls sigaction.