From: Ricardo Wurmus <rekado@elephly.net>
To: Tomas Nordin <tomasn@posteo.net>
Cc: 68350@debbugs.gnu.org
Subject: bug#68350: Segmentation fault using list-head with negative k
Date: Wed, 10 Jan 2024 10:49:27 +0100 [thread overview]
Message-ID: <87ttnlh600.fsf@elephly.net> (raw)
In-Reply-To: <8734v6s3ix.fsf@posteo.net>
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
next prev parent reply other threads:[~2024-01-10 9:49 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-09 19:36 bug#68350: Segmentation fault using list-head with negative k Tomas Nordin
2024-01-10 9:49 ` Ricardo Wurmus [this message]
2024-01-10 17:44 ` lloda
2024-01-11 17:57 ` Tomas Nordin
2024-01-11 18:58 ` lloda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ttnlh600.fsf@elephly.net \
--to=rekado@elephly.net \
--cc=68350@debbugs.gnu.org \
--cc=tomasn@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).