unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#62691: Calling system* in the module body hangs Guile, while calling open-pipe* does not
@ 2023-04-05 20:47 Михаил Бахтерев
  2023-04-09  7:58 ` Timothy Sample
  0 siblings, 1 reply; 4+ messages in thread
From: Михаил Бахтерев @ 2023-04-05 20:47 UTC (permalink / raw)
  To: 62691

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

Greetings! I've hit the following issue.

1. $ guile --version
guile (GNU Guile) 3.0.9

2.  uname -a
Linux ein 6.2.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 30 Mar 2023 14:51:14
+0000 x86_64 GNU/Linux

3. $ pacman -Qi guile
Name            : guile
Version         : 3.0.9-1
Description     : Portable, embeddable Scheme implementation written in C
Architecture    : x86_64

4. When loading (i am not sure about the stage) module which contains in
the body system* call Guile hangs on futex operation. The code to reproduce
the behavior.

$ cat a.scm
(add-to-load-path ".")
(import (b))
(display "hello world from SCM!")
(newline)

$ cat b.scm
(define-module (b))
(system* "echo" "hello world from SYS!")

$ guile a.scm
HANGS HERE!

But if system* is changed to open-pipe*, like so:
$ cat b.scm
(define-module (b) #:use-module (ice-9 popen))
(close-pipe (open-pipe* OPEN_WRITE "echo" "hello world from SYS!"))

everything seems ok:
$ guile a.scm
hello world from SYS!
Hello World from SCM!

- MB, with best regards.

[-- Attachment #2: Type: text/html, Size: 1446 bytes --]

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

end of thread, other threads:[~2023-07-16 20:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-05 20:47 bug#62691: Calling system* in the module body hangs Guile, while calling open-pipe* does not Михаил Бахтерев
2023-04-09  7:58 ` Timothy Sample
2023-04-11 16:59   ` Timothy Sample
2023-07-16 20:28     ` Ludovic Courtès

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