GNU bug report logs - #59984
segfault in list-ref

Previous Next

Package: guile;

Reported by: Christopher Lam <christopher.lck <at> gmail.com>

Date: Mon, 12 Dec 2022 04:12:02 UTC

Severity: normal

Done: Jean Abou Samra <jean <at> abou-samra.fr>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Lam <christopher.lck <at> gmail.com>
To: bug-guile <at> gnu.org
Subject: segfault in list-ref
Date: Mon, 12 Dec 2022 12:10:39 +0800
[Message part 1 (text/plain, inline)]
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)
[Message part 2 (text/html, inline)]

This bug report was last modified 2 years and 164 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.