unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#68350: Segmentation fault using list-head with negative k
@ 2024-01-09 19:36 Tomas Nordin
  2024-01-10  9:49 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Nordin @ 2024-01-09 19:36 UTC (permalink / raw)
  To: 68350

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





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

* bug#68350: Segmentation fault using list-head with negative k
  2024-01-09 19:36 bug#68350: Segmentation fault using list-head with negative k Tomas Nordin
@ 2024-01-10  9:49 ` Ricardo Wurmus
  2024-01-10 17:44   ` lloda
  0 siblings, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2024-01-10  9:49 UTC (permalink / raw)
  To: Tomas Nordin; +Cc: 68350

Hi,

Tomas Nordin <tomasn@posteo.net> writes:

> $ 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

I cannot reproduce this with Guile 3.0.9 on Guix:

--8<---------------cut here---------------start------------->8---
$ guile
GNU Guile 3.0.9
Copyright (C) 1995-2023 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)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Value out of range 0 to< 18446744073709551615: -1

Entering a new prompt.  Type `,bt' for a backtrace or `,q' to continue.
scheme@(guile-user) [1]> 
--8<---------------cut here---------------end--------------->8---


-- 
Ricardo





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

* bug#68350: Segmentation fault using list-head with negative k
  2024-01-10  9:49 ` Ricardo Wurmus
@ 2024-01-10 17:44   ` lloda
  2024-01-11 17:57     ` Tomas Nordin
  0 siblings, 1 reply; 5+ messages in thread
From: lloda @ 2024-01-10 17:44 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 68350, Tomas Nordin


I think this is another dupe of https://debbugs.gnu.org/58154.






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

* bug#68350: Segmentation fault using list-head with negative k
  2024-01-10 17:44   ` lloda
@ 2024-01-11 17:57     ` Tomas Nordin
  2024-01-11 18:58       ` lloda
  0 siblings, 1 reply; 5+ messages in thread
From: Tomas Nordin @ 2024-01-11 17:57 UTC (permalink / raw)
  To: lloda, Ricardo Wurmus; +Cc: 68350

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.)

--
Tomas





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

* bug#68350: Segmentation fault using list-head with negative k
  2024-01-11 17:57     ` Tomas Nordin
@ 2024-01-11 18:58       ` lloda
  0 siblings, 0 replies; 5+ messages in thread
From: lloda @ 2024-01-11 18:58 UTC (permalink / raw)
  To: Tomas Nordin; +Cc: Ricardo Wurmus, 68350-done



> 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!







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

end of thread, other threads:[~2024-01-11 18:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-09 19:36 bug#68350: Segmentation fault using list-head with negative k Tomas Nordin
2024-01-10  9:49 ` Ricardo Wurmus
2024-01-10 17:44   ` lloda
2024-01-11 17:57     ` Tomas Nordin
2024-01-11 18:58       ` lloda

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).