unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#68362: Segmentation fault when a procedure is called with no arguments
@ 2024-01-10  4:12 Yuval Langer
  2024-01-10  4:24 ` bug#68362: Wrong Guile version and a new error message Yuval Langer
  0 siblings, 1 reply; 2+ messages in thread
From: Yuval Langer @ 2024-01-10  4:12 UTC (permalink / raw)
  To: 68362

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#68362: Wrong Guile version and a new error message
  2024-01-10  4:12 bug#68362: Segmentation fault when a procedure is called with no arguments Yuval Langer
@ 2024-01-10  4:24 ` Yuval Langer
  0 siblings, 0 replies; 2+ messages in thread
From: Yuval Langer @ 2024-01-10  4:24 UTC (permalink / raw)
  To: 68362

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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-10  4:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-10  4:12 bug#68362: Segmentation fault when a procedure is called with no arguments Yuval Langer
2024-01-10  4:24 ` bug#68362: Wrong Guile version and a new error message Yuval Langer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).