unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Derek Upham <sand@blarg.net>
To: 32367@debbugs.gnu.org
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	[thread overview]
Message-ID: <87pnyx4p2q.fsf@priss.frightenedpiglet.com> (raw)

This is with guile-2.2 (2.2.4+1-1) and guile-2.2-libs (2.2.4+1-1) on Debian unstable, for the amd64 architecture.

Create the following one-line script file:

  (use-modules (scsh))

Call it (for example) “foo”.

Create a file named “scsh.scm” in a location where the above “use-modules” form will find it.  I use “/usr/share/guile/site/scsh.scm”.  In “scsh.scm”, 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-libs_2.2.3+1-3+b1_amd64.deb, guile-2.2_2.2.3+1-3+b1_amd64.deb) fixes the problem:

  % /usr/bin/guile -s foo 
  setting SIGCHILD to SIG_DFL...
  setting SIGCHILD to SIG_DFL...done

Note that moving the sigaction call from “scsh.scm” to “foo” does not trigger the problem.  It only happens when a script uses a module that calls sigaction.





             reply	other threads:[~2018-08-05  0:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-05  0:47 Derek Upham [this message]
2018-08-06  9:54 ` bug#32367: 2.2.4 hangs when a script uses a module that calls sigaction Göran Weinholt
2018-08-21 21:30   ` Mark H Weaver
2018-08-22 13:47     ` Derek Upham
2018-08-23  2:20       ` Mark H Weaver
2018-10-21 18:47   ` Mark H Weaver
2018-10-27 14:16     ` Derek Upham
2018-12-15 16:46 ` bug#32367: sigaction hangs Matt Wette
2018-12-15 16:58   ` Matt Wette
2018-12-15 17:50     ` Mark H Weaver

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pnyx4p2q.fsf@priss.frightenedpiglet.com \
    --to=sand@blarg.net \
    --cc=32367@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).