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#46232: =?UTF-8?Q?=E2=80=98Wrong?= type argument =?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" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27096"; mail-complaints-to="usenet@ciao.gmane.io" Cc: maximedevos@telenet.be To: 46232@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Feb 01 11:53:08 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 1l6WpP-0006re-KY for guile-bugs@m.gmane-mx.org; Mon, 01 Feb 2021 11:53:07 +0100 Original-Received: from localhost ([::1]:35368 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6WpO-0001CG-Lf for guile-bugs@m.gmane-mx.org; Mon, 01 Feb 2021 05:53:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39236) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6WpK-0001BD-5J for bug-guile@gnu.org; Mon, 01 Feb 2021 05:53:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47439) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6WpJ-0000Hx-Sj for bug-guile@gnu.org; Mon, 01 Feb 2021 05:53:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l6WpJ-0005c9-S6 for bug-guile@gnu.org; Mon, 01 Feb 2021 05:53:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Maxime Devos Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 01 Feb 2021 10:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 46232 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.161217677421567 (code B ref -1); Mon, 01 Feb 2021 10:53:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Feb 2021 10:52:54 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 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-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:9974 Archived-At: --==-=-= 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----- --==-=-=--