emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62691: closed (Calling system* in the module body hangs Guile, while


From: GNU bug Tracking System
Subject: bug#62691: closed (Calling system* in the module body hangs Guile, while calling open-pipe* does not)
Date: Sun, 16 Jul 2023 20:29:02 +0000

Your message dated Sun, 16 Jul 2023 22:28:37 +0200
with message-id <87o7kbr47e.fsf@gnu.org>
and subject line Re: bug#62691: Calling system* in the module body hangs Guile, 
while calling open-pipe* does not
has caused the debbugs.gnu.org bug report #62691,
regarding Calling system* in the module body hangs Guile, while calling 
open-pipe* does not
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
62691: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=62691
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- Begin Message --- Subject: Calling system* in the module body hangs Guile, while calling open-pipe* does not Date: Thu, 6 Apr 2023 01:47:54 +0500
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.

--- End Message ---
--- Begin Message --- Subject: Re: bug#62691: Calling system* in the module body hangs Guile, while calling open-pipe* does not Date: Sun, 16 Jul 2023 22:28:37 +0200 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
Hi,

Timothy Sample <samplet@ngyro.com> skribis:

>>From 6b6792c7a21de9be1825719bfca0f01177381cf9 Mon Sep 17 00:00:00 2001
> From: Timothy Sample <samplet@ngyro.com>
> Date: Tue, 11 Apr 2023 10:22:46 -0600
> Subject: [PATCH] Avoid module resolution in 'call-with-new-thread'.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> Fixes <https://bugs.gnu.org/62691>.
> Reported by Михаил Бахтерев <mike.bakhterev@gmail.com>.
>
> * module/ice-9/threads.scm (call-with-new-thread): Do not use 'set!'
> to set object properties while the calling thread is waiting on the
> new thread to initialize.

Woow, good catch!  Finally, applied.  Thanks!

Ludo’.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]