Subject: bug#25481: closed (Re: bug#25481: `guile --listen' broken on guile master)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 01 Mar 2017 16:31:02 +0000

Your bug report

#25481: `guile --listen' broken on guile master

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
25481: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25481
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#25481: `guile --listen' broken on guile master
From: Andy Wingo <[email-masked]>
To: Christopher Allan Webber <[email-masked]>
Cc: [email-masked]
Date: Wed, 01 Mar 2017 17:30:11 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

On Thu 19 Jan 2017 01:47, Christopher Allan Webber <[email-masked]> writes:

> (originally accidentally sent to guile-devel instead of here, sorry for
> xpost!)
>
> If you use the latest Guile, you'll find that "guile --listen" has
> broken.  If you try:
>   ./meta/guile --listen=/tmp/guile-socket
>
> then you'll find that you have a very short window in which you can do:
>   M-x geiser-connect-local <RET> guile <RET> /tmp/guile-socket <RET>
>
> but then the main repl, the one you launched in the shell, hangs.
> And if you wait too long or disconnect then reconnect, you won't be
> able to connect again.
>
> What you'll see in the guile process is this:
>
>   scheme@(guile-user)> In thread:
>   ERROR: In procedure select: Interrupted system call

select really shouldn't be throwing exceptions on EINTR; it should be
called in a loop anyway, so calling scheme can run interrupts then.
Changed select to just return when async interrupts are pending
(e.g. the post-GC hooks), which seems to fix this bug.

Andy

Subject: `guile --listen' broken on guile master
From: Christopher Allan Webber <[email-masked]>
To: [email-masked]
Date: Wed, 18 Jan 2017 18:47:19 -0600
List-Id: <debbugs-submit.debbugs.gnu.org>

(originally accidentally sent to guile-devel instead of here, sorry for
xpost!)

If you use the latest Guile, you'll find that "guile --listen" has
broken.  If you try:
  ./meta/guile --listen=/tmp/guile-socket

then you'll find that you have a very short window in which you can do:
  M-x geiser-connect-local <RET> guile <RET> /tmp/guile-socket <RET>

but then the main repl, the one you launched in the shell, hangs.
And if you wait too long or disconnect then reconnect, you won't be
able to connect again.

What you'll see in the guile process is this:

  scheme@(guile-user)> In thread:
  ERROR: In procedure select: Interrupted system call

Here's the commit that introduces the bug:
206dced87f425af7eed628530313067a45bee2c2

I've verified that it works right before that commit.

The commit does some things involving changing the code involving the
"select" and etc in the repl code, so maybe that's related.