unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#25481: `guile --listen' broken on guile master
@ 2017-01-19  0:47 Christopher Allan Webber
  2017-03-01 16:30 ` Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Christopher Allan Webber @ 2017-01-19  0:47 UTC (permalink / raw)
  To: 25481

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





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

* bug#25481: `guile --listen' broken on guile master
  2017-01-19  0:47 bug#25481: `guile --listen' broken on guile master Christopher Allan Webber
@ 2017-03-01 16:30 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2017-03-01 16:30 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: 25481-done

On Thu 19 Jan 2017 01:47, Christopher Allan Webber <cwebber@dustycloud.org> 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





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

end of thread, other threads:[~2017-03-01 16:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-19  0:47 bug#25481: `guile --listen' broken on guile master Christopher Allan Webber
2017-03-01 16:30 ` Andy Wingo

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