From unknown Sat Jun 14 00:06:35 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#46232 <46232@debbugs.gnu.org> To: bug#46232 <46232@debbugs.gnu.org> Subject: Status: =?UTF-8?Q?=E2=80=98Wrong?= type argument =?UTF-8?Q?...=E2=80=99?= exception when printing backtrace after interrupt Reply-To: bug#46232 <46232@debbugs.gnu.org> Date: Sat, 14 Jun 2025 07:06:35 +0000 retitle 46232 =E2=80=98Wrong type argument ...=E2=80=99 exception when prin= ting backtrace after interrupt reassign 46232 guile submitter 46232 Maxime Devos severity 46232 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 01 05:52:54 2021 Received: (at submit) by debbugs.gnu.org; 1 Feb 2021 10:52:54 +0000 Received: from localhost ([127.0.0.1]:58985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6WpC-0005bm-3a for submit@debbugs.gnu.org; Mon, 01 Feb 2021 05:52:54 -0500 Received: from lists.gnu.org ([209.51.188.17]:57298) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l6Wp9-0005bd-OH for submit@debbugs.gnu.org; Mon, 01 Feb 2021 05:52:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6Wp8-00010A-C0 for bug-guile@gnu.org; Mon, 01 Feb 2021 05:52:51 -0500 Received: from xavier.telenet-ops.be ([2a02:1800:120:4::f00:14]:36672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6Wp6-000082-0q for bug-guile@gnu.org; Mon, 01 Feb 2021 05:52:50 -0500 Received: from butterfly ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by xavier.telenet-ops.be with bizsmtp id Pmsi2400v0mfAB401msiRF; Mon, 01 Feb 2021 11:52:43 +0100 From: Maxime Devos To: bug-guile@gnu.org Subject: =?utf-8?Q?=E2=80=98Wrong?= type argument =?utf-8?Q?=2E=2E=2E?= =?utf-8?Q?=E2=80=99?= exception when printing backtrace after interrupt Date: Mon, 01 Feb 2021 11:52:36 +0100 Message-ID: <87sg6ggivf.fsf@telenet.be> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:1800:120:4::f00:14; envelope-from=maximedevos@telenet.be; helo=xavier.telenet-ops.be X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, 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 Cc: maximedevos@telenet.be 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 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi guilers! When entering sleeping code in the REPL, then interrupting it (C-c) and entering ,bt twice, I receive an error message from ,bt: --=-=-= Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: quoted-printable GNU Guile 3.0.5 [...] Enter `,help' for help. scheme@(guile-user)> (let ((mu (make-mutex))) (with-mutex mu (wait-conditio= n-variable (make-condition-variable) mu))) ^Cice-9/boot-9.scm:1669:16: In procedure raise-exception: User interrupt Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In current input: 1:40 4 (_) In unknown file: While executing meta-command: In procedure program-code: Wrong type argument in position 1 (expecting PRO= GRAM_P): #t scheme@(guile-user) [1]>=20 --=-=-= Content-Type: text/plain I've found two variants so far, sleep/0 and sleep/1: --=-=-= Content-Type: application/scheme Content-Disposition: inline Content-Transfer-Encoding: base64 KGRlZmluZSAoc2xlZXAvMCkKICAobGV0KiAoKG11IChtYWtlLW11dGV4KSkKICAgICAgICAgKGN2 YXIgKG1ha2UtY29uZGl0aW9uLXZhcmlhYmxlKSkpCiAgICAod2l0aC1tdXRleCBtdSAod2FpdC1j b25kaXRpb24tdmFyaWFibGUgY3ZhciBtdSkpKSkKKGRlZmluZSAoc2xlZXAvMSkKICAoc2xlZXAg MTAwMDAwKSkK --=-=-= Content-Type: text/plain For sleep/1, the error message is different: --=-=-= Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: quoted-printable scheme@(guile-user)> (sleep/1) ^Cice-9/boot-9.scm:1669:16: In procedure raise-exception: User interrupt Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In system/repl/repl.scm: 159:22 4 (_) In ice-9/boot-9.scm: 2170:4 3 (%start-stack _ _) In unknown file: While executing meta-command: In procedure frame-local-ref: Argument 2 out of range: 0 scheme@(guile-user) [1]>=20 --=-=-= Content-Type: text/plain Could folks familiar with interrupts, the REPL and backtraces take a look? Maxime. P.S. I'm not subscribed to bug-guile, please add me to To: or CC:. --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iI0EARYIADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYBfddBccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7rEEAQD9rIjG9G0j6lR1wWTdby/J8fzB Zco9jKxWoDaK7zyUTgEA3FxCRbcKPuj9jJ8W0Ts7PXOfYAv/eVAcI53ExNgvsw4= =CB6u -----END PGP SIGNATURE----- --==-=-=--