unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Maxime Devos <maximedevos@telenet.be>
Cc: 57095@debbugs.gnu.org, Josselin Poiret <dev@jpoiret.xyz>,
	Csepp <raingloom@riseup.net>
Subject: bug#57095: 'terminal-window-size' throws ENOTTY ("Inappropriate ioctl for device")
Date: Fri, 02 Sep 2022 11:17:55 +0200	[thread overview]
Message-ID: <87mtbixhh8.fsf@gnu.org> (raw)
In-Reply-To: <6b6cd940-261c-0cd3-1efd-99aff96d77db@telenet.be> (Maxime Devos's message of "Thu, 1 Sep 2022 23:21:45 +0200")

Hi,

Maxime Devos <maximedevos@telenet.be> skribis:

> Maybe my answer on IRC is relevant here:
>
> https://logs.guix.gnu.org/guile/2022-09-01.log#231503

Interesting.

It’s a Guile bug, and a tricky one.  Here’s what Andy wrote on IRC:

<sneek> civodul, wingo says: i believe it is a bug.  in a pre-unwind handler,
	you want to make it so that if it throws again, it is handled by the
	handler that was current when the with-exception-handler was invoked
	(the dynamically outer handler)
<sneek> civodul, wingo says: to implement this, when a throw first starts, we
	capture the current handler stack, and arrange for subsequent throws
	to resolve via that captured handler stack
<sneek> civodul, wingo says: but if there is an additional
	with-exception-handler within the exception handler, that doesn't
	augment the captured exception handler stack to which inner exceptions
	will dispatch
<sneek> civodul, wingo says: the fix will be small but also gnarly :P  will
	take some thinking.  there are funny interactions with delimited
	continuations

I’ll defer to Andy to see what the best way to fix it is…

What’s frustrating is that I can’t think of a way to work around it,
except by changing ‘terminal-columns’ & co. to not use exceptions (or
introducing a variant that does that).

Thoughts?

Ludo’.




  reply	other threads:[~2022-09-02  9:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-09 23:06 bug#57095: another "inappropriate ioctl" bug :) Csepp
2022-08-10 13:43 ` Josselin Poiret via Bug reports for GNU Guix
2022-08-10 14:53   ` Ludovic Courtès
2022-09-01 21:04   ` bug#57095: 'terminal-window-size' throws ENOTTY ("Inappropriate ioctl for device") Ludovic Courtès
2022-09-01 21:21     ` Maxime Devos
2022-09-02  9:17       ` Ludovic Courtès [this message]
2022-09-02 18:14         ` Maxime Devos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mtbixhh8.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=57095@debbugs.gnu.org \
    --cc=dev@jpoiret.xyz \
    --cc=maximedevos@telenet.be \
    --cc=raingloom@riseup.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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