unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#32367: 2.2.4 hangs when a script uses a module that calls sigaction
@ 2018-08-05  0:47 Derek Upham
  2018-08-06  9:54 ` Göran Weinholt
  2018-12-15 16:46 ` bug#32367: sigaction hangs Matt Wette
  0 siblings, 2 replies; 10+ messages in thread
From: Derek Upham @ 2018-08-05  0:47 UTC (permalink / raw)
  To: 32367

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.





^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-12-15 17:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-05  0:47 bug#32367: 2.2.4 hangs when a script uses a module that calls sigaction Derek Upham
2018-08-06  9:54 ` 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

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).