GNU bug report logs -
#68362
Segmentation fault when a procedure is called with no arguments
Previous Next
To reply to this bug, email your comments to 68362 AT debbugs.gnu.org.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-guile <at> gnu.org
:
bug#68362
; Package
guile
.
(Wed, 10 Jan 2024 04:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Yuval Langer <yuval.langer <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-guile <at> gnu.org
.
(Wed, 10 Jan 2024 04:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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…>)
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 repository.
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.
Information forwarded
to
bug-guile <at> gnu.org
:
bug#68362
; Package
guile
.
(Wed, 10 Jan 2024 04:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 68362 <at> debbugs.gnu.org (full text, mbox):
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…>)
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.
This bug report was last modified 1 year and 159 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.