--- Begin Message ---
Subject: |
Segmentation fault using list-head with negative k |
Date: |
Tue, 09 Jan 2024 19:36:06 +0000 |
Hello List
If this has been reported before I didn't find it. Here's the recipe:
$ guile -q
GNU Guile 3.0.8
Copyright (C) 1995-2021 Free Software Foundation, Inc.
Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.
Enter `,help' for help.
scheme@(guile-user)> (list-head '(1 2 3) -1)
Segmentation fault
Argument -1 is an improper argument and an error is expected, but not a
segmentation fault.
With positive integers out of bounds I see an exception, not segfault.
This is an apt-installed guile on Debian
$ dpkg -l | grep guile
ii guile-3.0 3.0.8-2
amd64 GNU extension language and Scheme interpreter
ii guile-3.0-doc 3.0.8-2
all Documentation for Guile 3.0
ii guile-3.0-libs:amd64 3.0.8-2
amd64 Core Guile libraries
Thanks for all the work
--
Tomas
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#68350: Segmentation fault using list-head with negative k |
Date: |
Thu, 11 Jan 2024 19:58:18 +0100 |
> On 11 Jan 2024, at 18:57, Tomas Nordin <tomasn@posteo.net> wrote:
>
> lloda <lloda@sarc.name> writes:
>
>> I think this is another dupe of https://debbugs.gnu.org/58154.
>
> Highly possible. Like Ricardo I cannot reproduce this with a local build
> I made from the tip of the repo. (I saw the same segfault using list-ref
> with the debian 3.0.8 version FWIW.)
I looked it up and it is indeed the same bug. It's fixed in 3.0.9.
Thanks for the report!
--- End Message ---