From unknown Fri Aug 08 22:24:03 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48565 <48565@debbugs.gnu.org> To: bug#48565 <48565@debbugs.gnu.org> Subject: Status: Using move->fdes to move stdin to 9 + interrupt (C-c) exits guile Reply-To: bug#48565 <48565@debbugs.gnu.org> Date: Sat, 09 Aug 2025 05:24:03 +0000 retitle 48565 Using move->fdes to move stdin to 9 + interrupt (C-c) exits = guile reassign 48565 guile submitter 48565 Maxime Devos severity 48565 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 21 09:00:05 2021 Received: (at submit) by debbugs.gnu.org; 21 May 2021 13:00:05 +0000 Received: from localhost ([127.0.0.1]:36039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk4l3-0000zo-FA for submit@debbugs.gnu.org; Fri, 21 May 2021 09:00:05 -0400 Received: from lists.gnu.org ([209.51.188.17]:46764) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk4l1-0000zG-DY for submit@debbugs.gnu.org; Fri, 21 May 2021 09:00:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk4l0-0003bw-Ma for bug-guile@gnu.org; Fri, 21 May 2021 09:00:03 -0400 Received: from laurent.telenet-ops.be ([2a02:1800:110:4::f00:19]:54310) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk4ky-0000TO-9g for bug-guile@gnu.org; Fri, 21 May 2021 09:00:02 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by laurent.telenet-ops.be with bizsmtp id 7Qzw2500T0mfAB401Qzwt7; Fri, 21 May 2021 14:59:56 +0200 Message-ID: <2acd3e1e839f74a1f0915011c6a0edbb0c235bc8.camel@telenet.be> Subject: Using move->fdes to move stdin to 9 + interrupt (C-c) exits guile From: Maxime Devos To: bug-guile@gnu.org Date: Fri, 21 May 2021 14:59:44 +0200 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Bt3xKlyQgx8gN3Dvp5u4" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1621601996; bh=aKM0x2C10dXb9jgwXzqY/z38M6og1BcaighjnfY+5U8=; h=Subject:From:To:Date; b=MsOxkOqaiS8cDSQbsj8uDEaga/Jh7ZO02D/a7/YQDnTuNQm+k9gXbYRX+5AyyFzWY UGSLEOmfsf6kqj+/DTtyjErbxJK98iaGrqAxzGXGAy6kzh/TH1CG7LyI7vr/ltxMwo XbvV4MkZfREsEGIiBSxIZRP87/TvHCQN6RaXpmCXUyBG+AncjDGaC3UjswmDSwA9/i WQFTzlpKT/F9BZMvA6bPbPGwzkBYsIWcj/+ib1QDGMNH8RggKUoBQUuQBBxh5UbXgn Q/+V/BDLVvnBd43/4AycQVSB3V9F6Bc9xDhnBNhkFXgYmITFOLAzNEcPUgGLsHpDCB uyrIRjcMKuaig== Received-SPF: pass client-ip=2a02:1800:110:4::f00:19; envelope-from=maximedevos@telenet.be; helo=laurent.telenet-ops.be X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-Bt3xKlyQgx8gN3Dvp5u4 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable user@hostname ~$ guile GNU Guile 3.0.5 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> blabla [C-c C-c] While reading expression: User interrupt scheme@(guile-user)> (move->fdes (fdes->inport 0) 9) $1 =3D # scheme@(guile-user)> [C-c C-C] user@hostname ~$ What I expected: While reading expression: User interrupt Your file descriptor may vary. My suspicion: look at libguile/scmsigs.c (start_signal_delivery_thread), in particular: if (pipe2 (signal_pipe, O_CLOEXEC) !=3D 0) scm_syserror (NULL); signal_pipe[0] and signal_pipe[1] don't seem to be added to the port table, so primitive-move->fdes does not know about the signal pipes and will silently overwrite them. Greetings, Maxime --=-Bt3xKlyQgx8gN3Dvp5u4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYKeuwBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7tXxAP9achgX7WSfWu/SJ6Z6skw3Ov2Y awmTcq3HH7gEBY3QHgD+I72oercRzy5MHTueDZ8uTlhez9MjWxMVNHw75TpGyQI= =+d2m -----END PGP SIGNATURE----- --=-Bt3xKlyQgx8gN3Dvp5u4--