Subject: bug#59984: closed (Re: bug#59984: segfault in list-ref)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 12 Dec 2022 06:26:02 +0000

Your bug report

#59984: segfault in list-ref

which was filed against the guile package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
59984: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59984
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#59984: segfault in list-ref
From: Jean Abou Samra <[email-masked]>
To: Christopher Lam <[email-masked]>, [email-masked]
Date: Mon, 12 Dec 2022 07:25:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Le 12/12/2022 à 05:10, Christopher Lam a écrit :
>
> Hi guile dev team
>
> Here's a glaring segfault in guile 3.0.8

This is a duplicate of 
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59874, which is already 
fixed in master.

Best,
Jean

Subject: segfault in list-ref
From: Christopher Lam <[email-masked]>
To: [email-masked]
Date: Mon, 12 Dec 2022 12:10:39 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi guile dev team

Here's a glaring segfault in guile 3.0.8

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)>
scheme@(guile-user)> (define lst (iota 20))
scheme@(guile-user)> (list-ref lst 1)
$1 = 1
scheme@(guile-user)> (list-ref lst 1.5)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Wrong type (expecting exact integer): 1.5

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

scheme@(guile-user)> (list-ref lst -1)
Segmentation fault (core dumped)