From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuval Langer Newsgroups: gmane.lisp.guile.bugs Subject: bug#68362: Segmentation fault when a procedure is called with no arguments Date: Wed, 10 Jan 2024 06:12:39 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12366"; mail-complaints-to="usenet@ciao.gmane.io" To: 68362@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Jan 10 05:14:23 2024 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 1rNPyx-0002yT-Gj for guile-bugs@m.gmane-mx.org; Wed, 10 Jan 2024 05:14:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNPyZ-0001Fx-FD; Tue, 09 Jan 2024 23:13:59 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNPyX-0001FQ-EH for bug-guile@gnu.org; Tue, 09 Jan 2024 23:13:57 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNPyV-00061f-Qu for bug-guile@gnu.org; Tue, 09 Jan 2024 23:13:57 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNPyc-0007oy-Kb for bug-guile@gnu.org; Tue, 09 Jan 2024 23:14:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Yuval Langer Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 10 Jan 2024 04:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68362 X-GNU-PR-Package: guile X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.170486002630029 (code B ref -1); Wed, 10 Jan 2024 04:14:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Jan 2024 04:13:46 +0000 Original-Received: from localhost ([127.0.0.1]:41554 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNPyL-0007oH-P7 for submit@debbugs.gnu.org; Tue, 09 Jan 2024 23:13:46 -0500 Original-Received: from lists.gnu.org ([2001:470:142::17]:42518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNPyK-0007o4-5r for submit@debbugs.gnu.org; Tue, 09 Jan 2024 23:13:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNPy7-0000qS-IQ for bug-guile@gnu.org; Tue, 09 Jan 2024 23:13:31 -0500 Original-Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNPxu-0005hq-8a for bug-guile@gnu.org; Tue, 09 Jan 2024 23:13:19 -0500 Original-Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2cd61dd39d9so19758131fa.2 for ; Tue, 09 Jan 2024 20:13:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704859996; x=1705464796; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4RHYgizHse2j09IFjquBmbwmqBvyqmdfG8peBkneOuk=; b=fLXB45x+LOiyq+PC0qBNZR94bE5qV/Q0ly6gvaYGMr8F7IbX0kXzvR05+rCpx/yKlS LbEhODLdBHdvSdG2tQa7wVdOFDn9XLGCMg3vNdw1ZUREV3X7Kwap0OXJXww6D14k3TA+ BM6gmv9A8cTB5GdpJOW3EBj1+JgpWFc3AUj2P8YLALMFXdJgvoCsiVTo02vsiI2qynCL wJNWk8F1czrq+et0URST+2ufbWYCi01wSGZtEHUL+nOc++NhMRg494iWed1+hLjyC/cd +KivNABstzKCY0aD2HAM1CuLG9NLFlfv3E9SUSVlCIVAcOWKCX28W/HEAU8gejhjukph 8FQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704859996; x=1705464796; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4RHYgizHse2j09IFjquBmbwmqBvyqmdfG8peBkneOuk=; b=bGr7ueWZkXRM6XlrTI+aA58d1rpR16CL/e2Wb9d8G3DVhR+/buGFNs5i5pt6zXG1HE RjO+D4XNlBy0SC2t2ExYtMzjkjmHNzoMBmVyVBHEsQQLU7LtXQEGldkbZ2nr0qmh0Nzj AivDdV52hZwVVpd3+efxWyWjFwJdfl7W9+FaZmAsOwfahonv4qWJ2DRSTejunEMlwQ88 rnCcd5tUX5uw7iNSCNgZZja83HGa+qwZMr+QD7etrfy8ABnxWNGCM7DBH5dYAeOLfAKt nuzNGMCiRnvFSymY7lBo4J0GS4xwzsedd17tJcl+Wx5O455yKCIHbaFHkzW9M0hUs9FH tmhg== X-Gm-Message-State: AOJu0Yy2PRMwFbw/5xPFbOU7IXt7vVCdbtuX6l+03bENb3W49sm19lBP vSoNBI5526G9WicGEmuqziHAvOA6uRaB1yh/Bl+bM1W6Fik= X-Google-Smtp-Source: AGHT+IHyhO1ouYGkBdumDA829fUfEdwAdoQ7neKEZ3kxyUUtRPci5hswXmwKB0PWJGg5hx4hVF4jvdVW9A0kbUMKs5Q= X-Received: by 2002:a2e:9203:0:b0:2cc:9866:a9aa with SMTP id k3-20020a2e9203000000b002cc9866a9aamr162322ljg.40.1704859995794; Tue, 09 Jan 2024 20:13:15 -0800 (PST) Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=yuval.langer@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10743 Archived-At: I get the following output: Backtrace: In ice-9/boot-9.scm: 1736:10 7 (with-exception-handler _ _ #:unwind? _ # _) In unknown file: 6 (apply-smob/0 #) In ice-9/boot-9.scm: 718:2 5 (call-with-prompt _ _ #) In ice-9/eval.scm: 619:8 4 (_ #(#(#))) In rsv2scm: 13:12 3 (main _) In rsv/arbitrary-null.scm: 133:33 2 (rsv->scm #f #) 111:33 1 (row->scm #f 0 #) 81:20 0 (read-null-value _ _ _) rsv/arbitrary-null.scm:81:20: In procedure read-null-value: Wrong number of arguments to Segmentation fault When running the commands: git clone https://codeberg.org/kakafarm/guile-rsv/ # Clone my repositor= y. cd guile-rsv git checkout segmentation-fault # Should be commit number 790ee10036f3dcb425fbf5619ff0e452a73d459d printf "\xfe" | ./rsv2scm # This is the offending command. I accidentally called the procedure read-null-value without any arguments, while the procedure needs three arguments. Instead of showing a useful error, it results with in a segmentation fault. My guile --version: guile (GNU Guile) 3.0.9 It came from a Guix installed on a Debian installation. The Guix repository commit obtained from the guix describe command is 3de361d9c9d320aefbd43710124d7b07af891de1. Thank you, Yuval Langer.