From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Maxime Devos Newsgroups: gmane.lisp.guile.bugs Subject: bug#48565: Using move->fdes to move stdin to 9 + interrupt (C-c) exits guile Date: Fri, 21 May 2021 14:59:44 +0200 Message-ID: <2acd3e1e839f74a1f0915011c6a0edbb0c235bc8.camel@telenet.be> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-Bt3xKlyQgx8gN3Dvp5u4" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17953"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Evolution 3.34.2 To: 48565@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Fri May 21 15:01:27 2021 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lk4mL-0004XX-Cy for guile-bugs@m.gmane-mx.org; Fri, 21 May 2021 15:01:25 +0200 Original-Received: from localhost ([::1]:33090 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk4mK-00057x-9w for guile-bugs@m.gmane-mx.org; Fri, 21 May 2021 09:01:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk4lz-000539-9a for bug-guile@gnu.org; Fri, 21 May 2021 09:01:09 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk4ly-0000di-BQ for bug-guile@gnu.org; Fri, 21 May 2021 09:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lk4ly-00012X-Au for bug-guile@gnu.org; Fri, 21 May 2021 09:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Fri, 21 May 2021 13:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48565 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16216020053836 (code B ref -1); Fri, 21 May 2021 13:01:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 May 2021 13:00:05 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.io gmane.lisp.guile.bugs:10101 Archived-At: --=-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--