From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.bugs Subject: bug#68350: Segmentation fault using list-head with negative k Date: Wed, 10 Jan 2024 10:49:27 +0100 Message-ID: <87ttnlh600.fsf@elephly.net> References: <8734v6s3ix.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28769"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.8; emacs 29.1 Cc: 68350@debbugs.gnu.org To: Tomas Nordin Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Wed Jan 10 10:51:30 2024 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rNVFB-0007FM-Cb for guile-bugs@m.gmane-mx.org; Wed, 10 Jan 2024 10:51:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rNVEg-0000cb-R1; Wed, 10 Jan 2024 04:50:58 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rNVEd-0000bm-3X for bug-guile@gnu.org; Wed, 10 Jan 2024 04:50:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rNVEc-0002Dl-AV for bug-guile@gnu.org; Wed, 10 Jan 2024 04:50:54 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rNVEj-00019e-Kk for bug-guile@gnu.org; Wed, 10 Jan 2024 04:51:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 10 Jan 2024 09:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68350 X-GNU-PR-Package: guile Original-Received: via spool by 68350-submit@debbugs.gnu.org id=B68350.17048802404405 (code B ref 68350); Wed, 10 Jan 2024 09:51:01 +0000 Original-Received: (at 68350) by debbugs.gnu.org; 10 Jan 2024 09:50:40 +0000 Original-Received: from localhost ([127.0.0.1]:41843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNVEN-00018z-QD for submit@debbugs.gnu.org; Wed, 10 Jan 2024 04:50:40 -0500 Original-Received: from sender3-of-o58.zoho.com ([136.143.184.58]:21879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rNVEM-00018g-26 for 68350@debbugs.gnu.org; Wed, 10 Jan 2024 04:50:39 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1704880227; cv=none; d=zohomail.com; s=zohoarc; b=AtaRHBKuUs3wVw/4YAaAVVGOKXmHYvz8GSsFdPZ0ea2wUimT0TVkdRhgFo+m0a0etac9Jq1cprZQIYFjLhXnPRbBmZI9qcRaqhXrKGC8rKq9scrODmJq56bGwT8TsDBFsOzGg0gy62h9PxsT7W0DySYGhgIsYVMv4PI9DQqAvCM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704880227; h=Content-Type:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:Subject:To:To:Message-Id:Reply-To; bh=9mIy/HtK/XhCbZWhhIp89V34Qr+l8gD+So+NQcZituo=; b=ZEgeU8sQBxBQugp5DSTNdWLxgLMp+QbyU2r3xcpZ/eSSGhl0of9qY8K3w8Ba4ASFMXVtZbVRsgy5DUoaMJLOJxZRSIxEklWBWcb3JQ3yeRkAUhZ0PyHIjEz59kcr90TyZoY9ZcnId1d1zkVTw+C2FxRrSvVsybbyAe3/a4sfc58= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1704880227; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:From:To:To:Cc:Cc:Subject:Subject:Date:Date:In-reply-to:Message-ID:MIME-Version:Content-Type:Message-Id:Reply-To; bh=9mIy/HtK/XhCbZWhhIp89V34Qr+l8gD+So+NQcZituo=; b=dmtYZeg34IxrVCGZMh3zfeqhIP804YF6LzJnTg75qQ79YOk6ju521B1+73wtg+0I mqyqJyTrP+tqoADE+brF3IdrqekCYbZolhN9fu7nkmcf6xdKuBK9c4un9vD1IXn9WDi xZnuxwXW2Uz9S02rv2pJXYZw3P6featb7e0mqmn0= Original-Received: from localhost (103-108-142-46.pool.kielnet.net [46.142.108.103]) by mx.zohomail.com with SMTPS id 1704880227215295.7567214028262; Wed, 10 Jan 2024 01:50:27 -0800 (PST) In-reply-to: <8734v6s3ix.fsf@posteo.net> X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10745 Archived-At: Hi, Tomas Nordin 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