GNU bug report logs - #68362
Segmentation fault when a procedure is called with no arguments

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guile; Reported by: Yuval Langer <yuval.langer@HIDDEN>; dated Wed, 10 Jan 2024 04:14:02 UTC; Maintainer for guile is bug-guile@HIDDEN.

Message received at 68362 <at> debbugs.gnu.org:


Received: (at 68362) by debbugs.gnu.org; 10 Jan 2024 04:25:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 09 23:25:35 2024
Received: from localhost ([127.0.0.1]:41561 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNQ9n-0002Fm-2X
	for submit <at> debbugs.gnu.org; Tue, 09 Jan 2024 23:25:35 -0500
Received: from mail-lj1-x22f.google.com ([2a00:1450:4864:20::22f]:55306)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yuval.langer@HIDDEN>) id 1rNQ9e-0002FM-R7
 for 68362 <at> debbugs.gnu.org; Tue, 09 Jan 2024 23:25:34 -0500
Received: by mail-lj1-x22f.google.com with SMTP id
 38308e7fff4ca-2cd61dd39d9so19843061fa.2
 for <68362 <at> debbugs.gnu.org>; Tue, 09 Jan 2024 20:25:19 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1704860711; x=1705465511; darn=debbugs.gnu.org;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=YxbJmFkMCH4WXXXIK5kPyGY/fu+kXgvdsiAmbfWiEbw=;
 b=l16bBPWkjxZ/aBuLniWjmoIsyskeP3fw9CaDqM4fQ3N0BgO23FpbRf0+kx8hqKDFTf
 5otMCzsYiWIc6GiCfO19XIS1JjdzK+m1sW4gFb0lJTWC6MkKPX/std+PS83n2VoCJVRu
 Qm/1cygTa8OOHHIS9caiAFDRO1WgBsvLHWEOPVTbcckimBfGYbx+giKQB5BJZapKCM71
 K/dMCcpJxyxE+jDSMmvn0lvAnkXvGcxGqiopbhL4em6K9l+vJZNUDw63T34Gxobv+I71
 4CjbUg+K1LfU1elIwEc7+FozSCbdTE/6CYxb8R+RKj7hrRKgFpwGAddcTEEA5PS4ZiCW
 5zWg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1704860711; x=1705465511;
 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=YxbJmFkMCH4WXXXIK5kPyGY/fu+kXgvdsiAmbfWiEbw=;
 b=ndGwo9wPkZlj1dV9eVjwz5BGJcZ4Z+wyPzIfT3Ra9w4FGgq17zbFQkhwas4o2xeH1u
 WjW/iy9cm71RhclFcmNPcBFaerFv+kR6poPCThhuj50Y1hdncsE6O3dB8Da1Nkvxbv2I
 PURpQYXU0mg6hd7VyAPycbtrITVmhSfr2Wr0J7okHhkNgdAX9GTRSkItKmuDix1KSpER
 Rfjck6WqytNxGhmINmRU3AYR/+Ln6J0zqdaIb3Ryb0QAMG/lq/+4czMUtk/T8TRvFzwh
 WIm2XLg1hEcDVa+TzXmhzLm+YRN0RkGtQYaLMKKLx87ezJDDWLVhPn4xcElwj4VjBbsi
 I8bg==
X-Gm-Message-State: AOJu0Yz95PipR/efzIKJMjUaEuQZE/xpVLmtKr8BtDDWPqoWcYvlCAdU
 0Pr4VdQV+kcdTZwE+7k5HbG9jThw9lRf4kgQOpLvRLtKU0k=
X-Google-Smtp-Source: AGHT+IHaB0DZBktF3ak4RgfK3aTyuCjwcH946PkxLAmci6ROVrNSfUA/pXwVAwhrXDp1VkcL0wa27JlUo6gFZd28B3I=
X-Received: by 2002:a2e:7a0e:0:b0:2cd:2838:78d with SMTP id
 v14-20020a2e7a0e000000b002cd2838078dmr161773ljc.63.1704860711373; Tue, 09 Jan
 2024 20:25:11 -0800 (PST)
MIME-Version: 1.0
From: Yuval Langer <yuval.langer@HIDDEN>
Date: Wed, 10 Jan 2024 06:24:34 +0200
Message-ID: <CAK0OjG0S6xJymfbK_L5Go71hiLtHtH0vrak4fzLB+igNVT11FA@HIDDEN>
Subject: Wrong Guile version and a new error message
To: 68362 <at> debbugs.gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 68362
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Sorry,

I have provided the wrong version number used to produce the
segmentation fault.  The true version is:

    guile (GNU Guile) 3.0.5
    Packaged by Debian (3.0.5-deb+3.0.5-4)
    Copyright (C) 2021 Free Software Foundation, Inc.

    License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html=
>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

as that is the one specified in ./rsv2scm's shebang.

Using the Guix version:

    $ printf "\xfe" | guile -L . -e main -s rsv2scm

I get the following error:

    Backtrace:
    In ice-9/boot-9.scm:
      1752:10  7 (with-exception-handler _ _ #:unwind? _ # _)
    In unknown file:
               6 (apply-smob/0 #<thunk 7fcdb7dbc300>)
    In ice-9/boot-9.scm:
        724:2  5 (call-with-prompt _ _ #<procedure default-prompt-handle=E2=
=80=A6>)
    In ice-9/eval.scm:
        619:8  4 (_ #(#(#<directory (guile-user) 7fcdb7dbfc80>)))
    In rsv2scm:
        13:12  3 (main _)
    In rsv/arbitrary-null.scm:
       144:23  2 (rsv->scm #f #<input: file 0>)
       116:11  1 (row->scm #f 0 #<input: file 0>)
         84:4  0 (read-null-value _ _ _)

    rsv/arbitrary-null.scm:84:4: In procedure read-null-value:
    Wrong number of arguments to 254

The byte value being piped into guile is 254.  Weird.

Thank you,
Yuval Langer.




Information forwarded to bug-guile@HIDDEN:
bug#68362; Package guile. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Jan 2024 04:13:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 09 23:13:46 2024
Received: from localhost ([127.0.0.1]:41554 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rNPyL-0007oH-P7
	for submit <at> debbugs.gnu.org; Tue, 09 Jan 2024 23:13:46 -0500
Received: from lists.gnu.org ([2001:470:142::17]:42518)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <yuval.langer@HIDDEN>) id 1rNPyK-0007o4-5r
 for submit <at> debbugs.gnu.org; Tue, 09 Jan 2024 23:13:44 -0500
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 <yuval.langer@HIDDEN>)
 id 1rNPy7-0000qS-IQ
 for bug-guile@HIDDEN; Tue, 09 Jan 2024 23:13:31 -0500
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 <yuval.langer@HIDDEN>)
 id 1rNPxu-0005hq-8a
 for bug-guile@HIDDEN; Tue, 09 Jan 2024 23:13:19 -0500
Received: by mail-lj1-x22b.google.com with SMTP id
 38308e7fff4ca-2cd61dd39d9so19758131fa.2
 for <bug-guile@HIDDEN>; 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)
MIME-Version: 1.0
From: Yuval Langer <yuval.langer@HIDDEN>
Date: Wed, 10 Jan 2024 06:12:39 +0200
Message-ID: <CAK0OjG3As1+8fzPc5Q9Qme-TMCWHADXtdVA=Xic1d9pee-nm2g@HIDDEN>
Subject: Segmentation fault when a procedure is called with no arguments
To: bug-guile@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2a00:1450:4864:20::22b;
 envelope-from=yuval.langer@HIDDEN; 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-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

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 #<thunk 7f3276ea4ea0>)
    In ice-9/boot-9.scm:
        718:2  5 (call-with-prompt _ _ #<procedure default-prompt-handle=E2=
=80=A6>)
    In ice-9/eval.scm:
        619:8  4 (_ #(#(#<directory (guile-user) 7f3276e9dc80>)))
    In rsv2scm:
        13:12  3 (main _)
    In rsv/arbitrary-null.scm:
       133:33  2 (rsv->scm #f #<input: file 0>)
       111:33  1 (row->scm #f 0 #<input: file 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.




Acknowledgement sent to Yuval Langer <yuval.langer@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-guile@HIDDEN. Full text available.
Report forwarded to bug-guile@HIDDEN:
bug#68362; Package guile. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.