GNU bug report logs - #57957
29.0.50; Native compilation hangs on cyclic lists

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Lars Tveito <larstvei@HIDDEN>; Keywords: confirmed; merged with #67883, #69872; dated Tue, 20 Sep 2022 14:28:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 24 Mar 2024 11:27:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 24 07:27:51 2024
Received: from localhost ([127.0.0.1]:50552 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1roM10-0002Wt-Or
	for submit <at> debbugs.gnu.org; Sun, 24 Mar 2024 07:27:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:52278)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acorallo@HIDDEN>)
 id 1roM0x-0002WK-Ne; Sun, 24 Mar 2024 07:27:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acorallo@HIDDEN>)
 id 1roM08-0004TM-IY; Sun, 24 Mar 2024 07:26:57 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To:
 From; bh=Otgr3gWtza0r+KUjHnMbkKQ3r21JkoNsh78pyM0nvXM=; b=kBBJy2UZeWCgEp+uPW9M
 2mO3+dl5soevvODvzOrTiEh2S9C7nm8BxgtnNr+J3o54W5n3IL6uiHugZykp7lHe4UGXeqNfMDq93
 yyHfA/biNe7qnbGh+ax59QEuZPAZIxM8j2cY6dy9SZtMtijgoPyezJJIdFnHRJnJKJwkIxRRW7KsZ
 zYQL+HJanOa3F183LfUD6vpQgWygCVNQQ5GIQgRvIn+htr07gz4YnYCNW0G8JedhFcwACLFNSl6RN
 f/0Xz3LJZ7caxRfajYB9WqLNiCnA7YEMaWefdx6r7QvFNLpJGoi8Wsr9hBHZZed8vTxEgE41aCZTc
 j1Wr6TGMowFWew==;
Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <acorallo@HIDDEN>)
 id 1roM06-0005Oy-La; Sun, 24 Mar 2024 07:26:56 -0400
From: Andrea Corallo <acorallo@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#69872: 29.2; Async native compilation of seq.el test uses
 up resources and hangs
In-Reply-To: <xjfwn9v9gpx.fsf@HIDDEN> (Andrea Corallo's message of "Thu,
 22 Sep 2022 22:39:22 +0000")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
 <xjf1qs3bdfa.fsf@HIDDEN> <m2y1ubgy5b.fsf@HIDDEN>
 <jwvzger1gpb.fsf-monnier+emacs@HIDDEN> <xjfwn9v9gpx.fsf@HIDDEN>
Date: Sun, 24 Mar 2024 07:26:52 -0400
Message-ID: <yp1v85brhtv.fsf_-_@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57957
Cc: Lars Tveito <larstvei@HIDDEN>, hokomo <hokomo@HIDDEN>,
 Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 57957 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 69872 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Andrea Corallo <akrl@HIDDEN> writes:

> Stefan Monnier <monnier@HIDDEN> writes:
>
>>> The question is of course also how much effort circular lists deserve in
>>> the compiler.  From my point of view, not too much because they aren't
>>> very useful, in code at least.  And dealing with them costs runtime.
>>
>> Circular data structures are perfectly normal in source code under
>> a `quote` but the code itself should never be cyclic (so I think it
>> would be OK to signal an error (and/or to inf-loop) when asked to
>> compile a chunk of code that has a cycle).  So we *should* handle
>> circular data structures correctly.
>
> I agree, Saturday I should have some time to look into this.

A little time after... I finally managed to get to it, sorry for the
delay.

I've pushed into master c5de73a95a6, it fixes my reprodurer here and
adds a test for this.

If anyone could confirm this is fixed i'll be (extremely) happy to close
this :)

Thanks

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.
Forcibly Merged 57957 67883 69872. Request was from Andrea Corallo <acorallo@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Forcibly Merged 57957 67883. Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 25 Sep 2022 10:02:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 25 06:02:40 2022
Received: from localhost ([127.0.0.1]:45895 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ocOTA-0005qg-8w
	for submit <at> debbugs.gnu.org; Sun, 25 Sep 2022 06:02:40 -0400
Received: from mail-wm1-f47.google.com ([209.85.128.47]:44843)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <contovob@HIDDEN>) id 1ocOT5-0005qN-24
 for 57957 <at> debbugs.gnu.org; Sun, 25 Sep 2022 06:02:38 -0400
Received: by mail-wm1-f47.google.com with SMTP id
 k3-20020a05600c1c8300b003b4fa1a85f8so2164967wms.3
 for <57957 <at> debbugs.gnu.org>; Sun, 25 Sep 2022 03:02:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date;
 bh=2rN+9rzpnCrXr3SGCAVC9S3DkDHc2DzZICz5JjEXsQY=;
 b=gKYeXXN4CzpvQcEPoZbv6X1coNfq1mUzOVcEAKdLJ7C5anIv99dtTg7QX7aA0nDE1H
 VobZChfWB7YjdV0sDcqrXzTatXaQUmMSs+1Zwg+7RanKuoZMYxls6pElCJ0976kiv/gp
 PK3G1zgA3nlAEkvIphbY85l0SLpSeaIIz+6Iur06jREr9dMftKzr4LCfMkgKjc7wrqQn
 HeW3WEehhKrlEu2D/LD0wepRjmagYZ+mDvbH0GMZ5Gw7aVyG/H1RUv1/oZ+KUa//QuXc
 nh8yHkcg7MC0ak3ERaywTI0HW9HgUcsgKM3Zx1nlynoY+/ZjeaQ/qsBU28EGaA7iOS9M
 rrRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date;
 bh=2rN+9rzpnCrXr3SGCAVC9S3DkDHc2DzZICz5JjEXsQY=;
 b=vPN4i3TmVPHygE6dQQw+W2/p0ZIr5oG/IDH1lG1vlI7TOjFJZTlazUQehkVLuGoSH9
 vmQYhzyhkQaPWLSmKfOnsIqNcBysedICkZ2rL2MkwDM2rz1WsBdecn/rU2iNM9yeV7ds
 egiCvS6YX+yaDCn79qKHNX4in/n5SH7loP61Mvd9pmqgduw3pnABF+lVZHU0+w91uHu8
 DxabDNthmP0+B+noy5uo8xL+xk0PbH/fUin3w7UqSEnMkXCTLp+JES5ZrOTatD7rB3QC
 LhB9u+W2MPfkkMZvIBFn4rj6t6CB+V1ion+Chnv+xHLKkHoMXQSVL5tr+xACFMkrcWLJ
 lOGw==
X-Gm-Message-State: ACrzQf3Zb5p5eu0hxykXeQW3XgUgE6ixyLHxiLDigUUj4LdJhcDDbLH/
 IQ2bWiJAAmQAtzAR5st6Iytwbw==
X-Google-Smtp-Source: AMsMyM4DecYQjCGXOwwS6Cz7krTRO9a3YnrWI99cHPFmuCiKr/ohuPeYiUA+nYTzorypYRjiii5vtA==
X-Received: by 2002:a7b:cb41:0:b0:3b3:34d6:189f with SMTP id
 v1-20020a7bcb41000000b003b334d6189fmr18481276wmj.6.1664100149199; 
 Sun, 25 Sep 2022 03:02:29 -0700 (PDT)
Received: from localhost ([2a02:587:326b:1c58:2993:7932:1758:7a50])
 by smtp.gmail.com with ESMTPSA id
 n32-20020a05600c502000b003a531c7aa66sm7753327wmr.1.2022.09.25.03.02.28
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sun, 25 Sep 2022 03:02:28 -0700 (PDT)
From: "Basil L. Contovounesios" <contovob@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <m2y1ubgy5b.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Thu, 22 Sep 2022 18:41:04 +0200")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
 <xjf1qs3bdfa.fsf@HIDDEN> <m2y1ubgy5b.fsf@HIDDEN>
Date: Sun, 25 Sep 2022 13:02:27 +0300
Message-ID: <87edvzkc0c.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, Lars Tveito <larstvei@HIDDEN>,
 57957 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>,
 Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann [2022-09-22 18:41 +0200] wrote:

> Maybe some places could use cl-list-length?  That function deals with
> circular lists and returns nil then.  We could then refuse to compile.

Since Emacs 27 we also have proper-list-p for this.

--=20
Basil




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 22:39:29 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 18:39:29 2022
Received: from localhost ([127.0.0.1]:38755 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obUqu-0003qT-SS
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 18:39:29 -0400
Received: from mx.sdf.org ([205.166.94.24]:62404)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1obUqt-0003qH-CZ
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 18:39:28 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28MMdMXi013820
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Thu, 22 Sep 2022 22:39:22 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <jwvzger1gpb.fsf-monnier+emacs@HIDDEN> (Stefan Monnier's message
 of "Thu, 22 Sep 2022 13:10:09 -0400")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
 <xjf1qs3bdfa.fsf@HIDDEN> <m2y1ubgy5b.fsf@HIDDEN>
 <jwvzger1gpb.fsf-monnier+emacs@HIDDEN>
Date: Thu, 22 Sep 2022 22:39:22 +0000
Message-ID: <xjfwn9v9gpx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>,
 Lars Ingebrigtsen <larsi@HIDDEN>, Lars Tveito <larstvei@HIDDEN>,
 57957 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Stefan Monnier <monnier@HIDDEN> writes:

>> The question is of course also how much effort circular lists deserve in
>> the compiler.  From my point of view, not too much because they aren't
>> very useful, in code at least.  And dealing with them costs runtime.
>
> Circular data structures are perfectly normal in source code under
> a `quote` but the code itself should never be cyclic (so I think it
> would be OK to signal an error (and/or to inf-loop) when asked to
> compile a chunk of code that has a cycle).  So we *should* handle
> circular data structures correctly.

I agree, Saturday I should have some time to look into this.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 17:10:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 13:10:22 2022
Received: from localhost ([127.0.0.1]:38415 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obPiP-00047r-QH
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 13:10:22 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:64314)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1obPiL-00047R-R9
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 13:10:20 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id F219C100154;
 Thu, 22 Sep 2022 13:10:11 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7C5C61000F8;
 Thu, 22 Sep 2022 13:10:10 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1663866610;
 bh=q5CSLYHr4CjxS6d6d3ih5RQSA4hB28zG1s5GH0QIqqc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=dGqzvQnxvg3WaojbA9uJutTAitQ9IsdWBcZBaHWnxsST+tjtIKFE9x5dWFIJVfuLP
 SL8mWuvFq2ibXib6AXoQTZf05I5KSH5SzvLCk9j8T5JdFW7TzUv5eSofC1nJIWKy1m
 lEz2xqFtBrLiYGSECopDWWJkuW0afYxvuEXycVdLMhZ9Cz+UJqcgTw6jFtvODeIRlH
 xDEpGKKMhD5eTGWfAGfdDsSRO3X+GDRu+ukbH2ydhMu05BfYqOFy8SvvxKzXpFChgZ
 UWwESEUF9WUCCzgh8r9AOA7wqq1SJrR8x54J2cIk7KM2/7GFDrywEn7eVD1OaLqc5L
 Rduk2qklmJ/yQ==
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 62F43120839;
 Thu, 22 Sep 2022 13:10:10 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Gerd =?windows-1252?Q?M=F6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <m2y1ubgy5b.fsf@HIDDEN> ("Gerd =?windows-1252?Q?M=F6l?=
 =?windows-1252?Q?lmann=22's?= message of
 "Thu, 22 Sep 2022 18:41:04 +0200")
Message-ID: <jwvzger1gpb.fsf-monnier+emacs@HIDDEN>
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
 <xjf1qs3bdfa.fsf@HIDDEN> <m2y1ubgy5b.fsf@HIDDEN>
Date: Thu, 22 Sep 2022 13:10:09 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.167 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57957
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, Lars Tveito <larstvei@HIDDEN>,
 57957 <at> debbugs.gnu.org, Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> The question is of course also how much effort circular lists deserve in
> the compiler.  From my point of view, not too much because they aren't
> very useful, in code at least.  And dealing with them costs runtime.

Circular data structures are perfectly normal in source code under
a `quote` but the code itself should never be cyclic (so I think it
would be OK to signal an error (and/or to inf-loop) when asked to
compile a chunk of code that has a cycle).  So we *should* handle
circular data structures correctly.

Note: I don't know why we'd need/want to do a `subst-if` inside
a `quote` and haven't looked at this bug or at the `comp.el` code to
know what we're really talking about.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 16:41:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 12:41:17 2022
Received: from localhost ([127.0.0.1]:38383 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obPGH-0003MK-86
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 12:41:17 -0400
Received: from mail-ej1-f50.google.com ([209.85.218.50]:45692)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1obPGD-0003M4-44
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 12:41:15 -0400
Received: by mail-ej1-f50.google.com with SMTP id dv25so22224612ejb.12
 for <57957 <at> debbugs.gnu.org>; Thu, 22 Sep 2022 09:41:13 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date;
 bh=8CE3m1cQYIJnWQfuimLoiFxb2Nh127e4SFdJhnI5A5M=;
 b=HKksrDfRb35irYkZX0TybeH8nK45r8iJS0w0DQK6jC25VtZonBXachrUsHY7HWA3JQ
 j7kjlLH9aAwOnPy1wtmlwEnjmCnh4M8do7wyE6sUT3VWNQUZlCxlnyhgCLhih5a5J+ns
 REdhNxHknjZaD37GJSpwyLOy6WXPPc+nAY+vfTe+ljBg6o7UETQj7JHDFzd/dVDTAt7a
 0alexy+vH/1DBHim3M8zJ67oMofRW63lGxa4qb5y3v3Ta97tCjRmq63ScvEew8HeRxA1
 Jn/pKR/F0b8UVnxio7/jvF3M5QG0gDx/MsWB+ziB1Ny7RKyMABY7TpZLhs3DabpygdF5
 w1bw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=8CE3m1cQYIJnWQfuimLoiFxb2Nh127e4SFdJhnI5A5M=;
 b=7VGQD1h9xyjzOEm7bPfq/Kq12yS85mZNsZRuXmARaxhb73o1BF1/ckWx9trZEax7+J
 FjunipiKKvhuCiQ9Zj1FOXW2DBwFjJCnbmF/m2dH1l/R3s4exDE+eReH3hgeCN8KXyM5
 pCBHyVvig4E/qHAjcmRtOsfJlorcNc9Xmh0gpVzffm+jqDmbE94Bh6lXpo3SU/D50JCn
 AYdzr0MH9DWzHhRMNiYLObdcQxFsdMb/rKCJnhwrQmWQg9qmyokrSzUsnsUWgy51Dyyp
 36roZ9WMarUp/JaukX7vL9pozxFyqIIM3KIKvUqJtnQdZL2g3naWN+omKEGIlDovujXm
 tUUQ==
X-Gm-Message-State: ACrzQf3tFDRl+jYF022tLleagYCXBMJRLkd8Nt4NRGUxXQ+sNeY7tMWk
 emmKI/XtoOf/X1hYjGBCxKc=
X-Google-Smtp-Source: AMsMyM6e9H3DsCkyrWvpleZGSsKJfuE8eFjplqHBuNMWX1p2ySu9HWAjA3EnY3gHmnZeAScOjdRdTQ==
X-Received: by 2002:a17:907:7293:b0:782:2665:aa39 with SMTP id
 dt19-20020a170907729300b007822665aa39mr3556462ejc.303.1663864867043; 
 Thu, 22 Sep 2022 09:41:07 -0700 (PDT)
Received: from Mini.fritz.box (pd9e3680c.dip0.t-ipconnect.de. [217.227.104.12])
 by smtp.gmail.com with ESMTPSA id
 w8-20020a17090652c800b00780ab5a9116sm2817192ejn.211.2022.09.22.09.41.05
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 22 Sep 2022 09:41:06 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <xjf1qs3bdfa.fsf@HIDDEN> (Andrea Corallo's message of "Thu,
 22 Sep 2022 16:07:37 +0000")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
 <xjf1qs3bdfa.fsf@HIDDEN>
Date: Thu, 22 Sep 2022 18:41:04 +0200
Message-ID: <m2y1ubgy5b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, Lars Tveito <larstvei@HIDDEN>,
 57957 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Andrea Corallo <akrl@HIDDEN> writes:

>>>>From Common Lisp I can say that these functions expect a "tree",
>> i.e. not a circular list.
>
> Okay I tried an adhoc substitute but this is not the only place in the
> compiler not robust against cyclic lists, so more work will be needed.

The question is of course also how much effort circular lists deserve in
the compiler.  From my point of view, not too much because they aren't
very useful, in code at least.  And dealing with them costs runtime.

Maybe some places could use cl-list-length?  That function deals with
circular lists and returns nil then.  We could then refuse to compile.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 16:07:45 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 12:07:44 2022
Received: from localhost ([127.0.0.1]:38289 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obOjo-0002Tz-M1
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 12:07:44 -0400
Received: from mx.sdf.org ([205.166.94.24]:55957)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1obOjm-0002Tn-NA
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 12:07:43 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28MG7bpF027854
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Thu, 22 Sep 2022 16:07:38 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Gerd =?utf-8?Q?M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <m2pmfn4nr0.fsf@HIDDEN> ("Gerd =?utf-8?Q?M=C3=B6llman?=
 =?utf-8?Q?n=22's?= message of "Thu, 22 Sep 2022 14:06:27 +0200")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN> <m2pmfn4nr0.fsf@HIDDEN>
Date: Thu, 22 Sep 2022 16:07:37 +0000
Message-ID: <xjf1qs3bdfa.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: Lars Ingebrigtsen <larsi@HIDDEN>, Lars Tveito <larstvei@HIDDEN>,
 57957 <at> debbugs.gnu.org, Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Gerd M=C3=B6llmann <gerd.moellmann@HIDDEN> writes:

> Lars Ingebrigtsen <larsi@HIDDEN> writes:
>
>> Andrea Corallo <akrl@HIDDEN> writes:
>>
>>> I see nor cl-nsubst-if nor cl-subst-if are robust against cyclic lists.
>>> Is this a bug in cl-lib or is it expected?  In case I'll add an ad-hoc
>>> substitute for this use (if there's no other alternative).
>>
>> I'm not sure -- Stefan probably knows; added to the CCs.
>
>>From Common Lisp I can say that these functions expect a "tree",
> i.e. not a circular list.

Okay I tried an adhoc substitute but this is not the only place in the
compiler not robust against cyclic lists, so more work will be needed.

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 14:25:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 10:25:42 2022
Received: from localhost ([127.0.0.1]:38195 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obN94-00067y-7u
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 10:25:42 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:24748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1obN91-00067l-VX
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 10:25:41 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 35E9780799;
 Thu, 22 Sep 2022 10:25:33 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 8149180389;
 Thu, 22 Sep 2022 10:25:31 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1663856731;
 bh=2ajUzQAX/VDS5kFfWbwrqY+z+4k3xfAcJHyEeXLy4SI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=gGTC2U1be9WgSMP2m4xPazGMxRqU7L6zBP8Kpd0uos2k0LqGvl12H/j9PM95oFl3Y
 bOzlDOU9V2kqrPkcBBxOfxMaNpomZ55REGC4enanUYuE2S94ku0eY0Jgp6j5V6dhGE
 T/lPug/Nbl0H+Z31+AoLIXCn1psEGrPp+5w1Xomj6ggm7NsC5YvtWPg78gZQA1ouK8
 LlenBM6vqDfpPPZN1GY61F1ZbVfcNLKqKZyGDaHeBCA+4+Qw5LmL/HfJftXqjuVlHl
 /iTFGmWLzLxqxQ0nmiaVfL506DcM0q4NVKw1SxvLX1PRMrsCU+/S1F3DQ/YJsk8r19
 aFOhT1qf6osWw==
Received: from lechazo (lechon.iro.umontreal.ca [132.204.27.242])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 3587C120346;
 Thu, 22 Sep 2022 10:25:31 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <878rmb7j8k.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Thu,
 22 Sep 2022 13:15:39 +0200")
Message-ID: <jwv8rmb4hdm.fsf-monnier+emacs@HIDDEN>
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN>
Date: Thu, 22 Sep 2022 10:25:26 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.183 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57957
Cc: 57957 <at> debbugs.gnu.org, Lars Tveito <larstvei@HIDDEN>,
 Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Ingebrigtsen [2022-09-22 13:15:39] wrote:
> Andrea Corallo <akrl@HIDDEN> writes:
>> I see nor cl-nsubst-if nor cl-subst-if are robust against cyclic lists.
>> Is this a bug in cl-lib or is it expected?  In case I'll add an ad-hoc
>> substitute for this use (if there's no other alternative).
> I'm not sure -- Stefan probably knows; added to the CCs.

Sorry, but these functions come straight for the `cl.el` lib that was
there before I started using Emacs.


        Stefan





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 12:06:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 08:06:44 2022
Received: from localhost ([127.0.0.1]:36529 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obKya-0002EG-2M
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 08:06:44 -0400
Received: from mail-ej1-f45.google.com ([209.85.218.45]:41521)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gerd.moellmann@HIDDEN>) id 1obKyX-0002Dz-Hd
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 08:06:42 -0400
Received: by mail-ej1-f45.google.com with SMTP id hy2so16854569ejc.8
 for <57957 <at> debbugs.gnu.org>; Thu, 22 Sep 2022 05:06:41 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:from:to:cc:subject:date;
 bh=QWIHlNy9vQNAVRp77AZi/M7fi7W4AT158wD68I0BBkw=;
 b=HVl3JGO/oJq3gD5TUl2PTPUSRzpxWrtaJilw4coQDBFkPzqUdPjifcK0x6BJz01pZk
 VlrAoxun0csAngOhdxOSIS3viZ5fg/Oa0De/hl+dimiP5+gH3XBFfyQD+BahCsDy1/Nq
 lbfizpAOnnnpxw/i7p8V6Dj60hes2l4fFdvSU+/sSVGyfEIPNcUvAfAj8ElPdpb8EFMw
 BkMCt4a9ZNsAnnjfo8/8EDRzf2i5DnB/KliR4jZg0YRKOVwRLe6l/+7LFANnwbHC85Qb
 eQV1fbPFcyjaCSoz/VrD0JSdPBsw+GXPIMUyeD+rAf8QiiDWy6y1MYIVeCBMkxmhXjzh
 lWdA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=mime-version:user-agent:message-id:date:references:in-reply-to
 :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date;
 bh=QWIHlNy9vQNAVRp77AZi/M7fi7W4AT158wD68I0BBkw=;
 b=rcvQy2ccgXMdZw89ql2oL3TOTMGpkqElC4VlfYD9sGkd8+hftzuzOZzc2UyJeXmEvt
 eLpQiF42aIdoQ0rsrspdWG0XdkSZgDhkCDryppy5NSB5S+TudmzsDCDoJgbzrL2HokJ4
 KW5UY51z0M8R50SNRfUXD4ynkASRZ8v/KbgHe9W25nkXno2wbTJQkigSA0YFlZyRSnsT
 OvnP7aZKMwx7lDRwsus/NdPXXb2BwAocssW7kMvPDtpXcsMsOX6IcyX/F7FseH7ZR9lG
 tS43HXac3vYsIhVv8pSdDXcwG/g2JMiUNyMa5pgiDBER39VjXSXyy0uvfYz7z38sDTk7
 /uew==
X-Gm-Message-State: ACrzQf0EXBldCrnkO/lpcvg8g/4r69nfCP1h1W2nKDC1GbIReMcY/KiV
 FjmfCtkFbiJ57yRYiqOP+PM=
X-Google-Smtp-Source: AMsMyM5ANeMrMLyZfpubjcsg7fxjFU3HgA4mxP68OvTwImSTNgf051rD8QKVFSslQxKt2U650EX9JQ==
X-Received: by 2002:a17:907:3e0b:b0:780:a882:d2fd with SMTP id
 hp11-20020a1709073e0b00b00780a882d2fdmr2455670ejc.564.1663848390724; 
 Thu, 22 Sep 2022 05:06:30 -0700 (PDT)
Received: from Mini.fritz.box (pd9e3680c.dip0.t-ipconnect.de. [217.227.104.12])
 by smtp.gmail.com with ESMTPSA id
 bq17-20020a056402215100b0044e7d69091asm3535120edb.85.2022.09.22.05.06.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 22 Sep 2022 05:06:29 -0700 (PDT)
From: =?utf-8?Q?Gerd_M=C3=B6llmann?= <gerd.moellmann@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <878rmb7j8k.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Thu,
 22 Sep 2022 13:15:39 +0200")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
 <878rmb7j8k.fsf@HIDDEN>
Date: Thu, 22 Sep 2022 14:06:27 +0200
Message-ID: <m2pmfn4nr0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: 57957 <at> debbugs.gnu.org, Lars Tveito <larstvei@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>, Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Andrea Corallo <akrl@HIDDEN> writes:
>
>> I see nor cl-nsubst-if nor cl-subst-if are robust against cyclic lists.
>> Is this a bug in cl-lib or is it expected?  In case I'll add an ad-hoc
>> substitute for this use (if there's no other alternative).
>
> I'm not sure -- Stefan probably knows; added to the CCs.

From Common Lisp I can say that these functions expect a "tree",
i.e. not a circular list.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 22 Sep 2022 11:15:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 22 07:15:54 2022
Received: from localhost ([127.0.0.1]:36507 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1obKBN-00079q-UY
	for submit <at> debbugs.gnu.org; Thu, 22 Sep 2022 07:15:54 -0400
Received: from quimby.gnus.org ([95.216.78.240]:53514)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1obKBK-00079Z-Vd
 for 57957 <at> debbugs.gnu.org; Thu, 22 Sep 2022 07:15:52 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=/iWBr+U8JWhciHxyzuHlV1POdXlhVUJJi77icQxFbSM=; b=ptbXZRatkeHnQuwoUSjCIkeef4
 jB5Jwr5YOI7ua68mbS9T6RTz8PLy2arvNdHZWBuRu31svEMJIaOu3LmayFBoRMkH/eGR3jvPao9+N
 PMgRkKlaBbI6nsicXGfDVqumprxmp8zpi0ImcQQv2EagAf1vj2JFi92ahNJ0Kb8y7lD4=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1obKBA-00083W-3F; Thu, 22 Sep 2022 13:15:43 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Andrea Corallo <akrl@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <xjffsgkbko0.fsf@HIDDEN> (Andrea Corallo's message of "Wed,
 21 Sep 2022 19:18:55 +0000")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN> <xjffsgkbko0.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVJP0lmb5iopK/X
 1NgbGCD49/f///8745hEAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+YJFgsLNc25ygQAAAGHSURBVDjL
 ddTBjoMgEADQQdk7UHu3Q3tXSe9jwgdsa/z/X9kBwRVsJ2kaec4AExAAhNZaQQyBk3PO8s9tA9KT
 9AHM+7m+HysH8LPkIdoyzIvBbiBJUgYIMKWMFDGP4VFDRDDjYx3PQBtcv2QMxwxe7Z5RAGTg0f5Y
 KicmWCLwDil7ApeAYxvXOFydSqVoBwLEoXn2/5NnIHsZftYzeK/b389gmy+A7W+79s8TkGpfn0G2
 SwUydbcJcJwjdYTExGDdDjK3UtjLekeHZQb/QWPXu11cCdz1AFxqKSdnUA1yhiuXSyC1aqYF7FIu
 dzad7mc+rDUIknrkRLTVBoX0xvERRlMBn1MzhRdA2wL4yBuU8WDA9QjE05ue4qUQzyOQMPoF29m7
 7kBcnGNM/Zz3lij+401gbnSGOQA/XrCLIDNotb1p7JA7vfUqgIxL0IdS6R6EsUblu3K4N8Ii2unm
 266GmzLWvb27V+Cpmw3y3uPXwJcR1hGjBi6It/htOcHML0M1R1HzyzD8AZ6b4XXBm5FcAAAAJXRF
 WHRkYXRlOmNyZWF0ZQAyMDIyLTA5LTIyVDExOjExOjUzKzAwOjAwuM4f/wAAACV0RVh0ZGF0ZTpt
 b2RpZnkAMjAyMi0wOS0yMlQxMToxMTo1MyswMDowMMmTp0MAAAAASUVORK5CYII=
X-Now-Playing: Carole King's _Tapestry_: "It's Too Late"
Date: Thu, 22 Sep 2022 13:15:39 +0200
Message-ID: <878rmb7j8k.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: Andrea Corallo <akrl@HIDDEN> writes: > I see nor
 cl-nsubst-if
 nor cl-subst-if are robust against cyclic lists. > Is this a bug in cl-lib
 or is it expected? In case I'll add an ad-hoc > substitute for this use (if
 there's no other alterna [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57957
Cc: 57957 <at> debbugs.gnu.org, Lars Tveito <larstvei@HIDDEN>,
 Stefan Monnier <monnier@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Andrea Corallo <akrl@HIDDEN> writes:

> I see nor cl-nsubst-if nor cl-subst-if are robust against cyclic lists.
> Is this a bug in cl-lib or is it expected?  In case I'll add an ad-hoc
> substitute for this use (if there's no other alternative).

I'm not sure -- Stefan probably knows; added to the CCs.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 21 Sep 2022 19:19:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 21 15:19:01 2022
Received: from localhost ([127.0.0.1]:35262 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ob5FM-0002Vc-S7
	for submit <at> debbugs.gnu.org; Wed, 21 Sep 2022 15:19:01 -0400
Received: from mx.sdf.org ([205.166.94.24]:65348)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <akrl@HIDDEN>) id 1ob5FK-0002VT-S9
 for 57957 <at> debbugs.gnu.org; Wed, 21 Sep 2022 15:18:59 -0400
Received: from ma.sdf.org (ma.sdf.org [205.166.94.33])
 by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 28LJItgk027932
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO);
 Wed, 21 Sep 2022 19:18:56 GMT
From: Andrea Corallo <akrl@HIDDEN>
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <87pmfqawm4.fsf@HIDDEN> (Lars Ingebrigtsen's message of "Tue,
 20 Sep 2022 17:33:55 +0200")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
 <87pmfqawm4.fsf@HIDDEN>
Date: Wed, 21 Sep 2022 19:18:55 +0000
Message-ID: <xjffsgkbko0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 57957
Cc: 57957 <at> debbugs.gnu.org, Lars Tveito <larstvei@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Lars Ingebrigtsen <larsi@HIDDEN> writes:

> Lars Tveito <larstvei@HIDDEN> writes:
>
>> Evaluating the two following forms results in Emacs hanging:
>>
>> (defun test-cycle ()
>>   '#1=(a . #1#))
>>
>> (native-compile 'test-cycle)
>
> It seems to be inflooping in comp-ssa-rename.  A debug-on-quit backtrace
> included below.
>
> I've added Andrea to the CCs; perhaps he has some comments.

I see nor cl-nsubst-if nor cl-subst-if are robust against cyclic lists.
Is this a bug in cl-lib or is it expected?  In case I'll add an ad-hoc
substitute for this use (if there's no other alternative).

  Andrea




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.
Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 57957 <at> debbugs.gnu.org:


Received: (at 57957) by debbugs.gnu.org; 20 Sep 2022 15:34:08 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 11:34:08 2022
Received: from localhost ([127.0.0.1]:59279 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oafGB-000402-NO
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 11:34:07 -0400
Received: from quimby.gnus.org ([95.216.78.240]:48114)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1oafG8-0003zP-Vu
 for 57957 <at> debbugs.gnu.org; Tue, 20 Sep 2022 11:34:05 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References:
 In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=bvWyI/ihlK6knlsZubx8G+fB+5NgjPb4lVPpcM5BbgI=; b=gjIcjmW6rb0Z60CJNV1xjJ3WIk
 36UxTdONhVlFFlNMlKZ8lWqmsyaN16qNAyBLaQBG1hIZ3/1v4ZWMDqiK/jW0bldCbwjld79TlOUKf
 2oHayNnM+YnPOv+dAXc5UhikEBwp8ltbQCLZjXRKLzwO7JXYLVVvTyX9/geHOYsV5/ls=;
Received: from [84.212.220.105] (helo=joga)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1oafFz-0003Kg-Ms; Tue, 20 Sep 2022 17:33:57 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Lars Tveito <larstvei@HIDDEN>
Subject: Re: bug#57957: 29.0.50; Native compilation hangs on cyclic lists
In-Reply-To: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN> (Lars Tveito's
 message of "Tue, 20 Sep 2022 07:55:48 +0000")
References: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
X-Now-Playing: De Ambassade's _Cold Wave Volume 2_: "Niet Van Mij"
Date: Tue, 20 Sep 2022 17:33:55 +0200
Message-ID: <87pmfqawm4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Lars Tveito <larstvei@HIDDEN> writes: > Evaluating the
 two following forms results in Emacs hanging: > > (defun test-cycle () >
 '#1=(a . #1#)) > > (native-compile 'test-cycle) It seems to be inflooping
 in comp-ssa-rename. A debug-on-quit backtrace included below. 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 57957
Cc: 57957 <at> debbugs.gnu.org, Andrea Corallo <akrl@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Lars Tveito <larstvei@HIDDEN> writes:

> Evaluating the two following forms results in Emacs hanging:
>
> (defun test-cycle ()
>   '#1=(a . #1#))
>
> (native-compile 'test-cycle)

It seems to be inflooping in comp-ssa-rename.  A debug-on-quit backtrace
included below.

I've added Andrea to the CCs; perhaps he has some comments.

Debugger entered--Lisp error: (quit)
  #f(compiled-function (x) #<bytecode -0xadd90b5d8edcf84>)((a . #1))
  cl--nsublis-rec((a . #1))
  cl--nsublis-rec(((a . #2)))
  cl--nsublis-rec((((a . #3))))
  cl-nsublis(((nil . #s(comp-mvar :typeset (t) :valset nil :range nil :
  cl-nsubst-if(#s(comp-mvar :typeset (t) :valset nil :range nil :neg ni
  comp-ssa-rename-insn((setimm #s(comp-mvar :typeset (t) :valset nil :r
  #f(compiled-function (bb in-frame) #<bytecode -0xdf66bba587123ea>)(#s
  #f(compiled-function (bb in-frame) #<bytecode -0xdf66bba587123ea>)(#s
  comp-ssa-rename()
  #<subr F616e6f6e796d6f75732d6c616d626461_anonymous_lambda_112>("F7465
  comp-ssa()
  comp-fwprop(nil)
  funcall(comp-fwprop nil)
  (setq data (funcall pass data))
  (if (memq pass comp-disabled-passes) (progn) (comp-log (format "(%s) 
  (while (progn (setq t0 (current-time)) (consp --cl-var--)) (setq pass
  (let* ((report nil) (t0 nil) (--cl-var-- comp-passes) (pass nil) (--c
...




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Sep 2022 14:27:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 20 10:27:18 2022
Received: from localhost ([127.0.0.1]:59159 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oaeDV-0001x9-Th
	for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 10:27:18 -0400
Received: from lists.gnu.org ([209.51.188.17]:39148)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larstvei@HIDDEN>) id 1oaY6r-0000p7-AQ
 for submit <at> debbugs.gnu.org; Tue, 20 Sep 2022 03:56:02 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55060)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larstvei@HIDDEN>)
 id 1oaY6q-0002Im-Kj
 for bug-gnu-emacs@HIDDEN; Tue, 20 Sep 2022 03:56:01 -0400
Received: from mail-out01.uio.no ([2001:700:100:10::50]:59775)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <larstvei@HIDDEN>)
 id 1oaY6o-0003Mj-4B
 for bug-gnu-emacs@HIDDEN; Tue, 20 Sep 2022 03:56:00 -0400
Received: from mail-mx11.uio.no ([129.240.10.83])
 by mail-out01.uio.no with esmtps (TLS1.2) tls
 TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95)
 (envelope-from <larstvei@HIDDEN>) id 1oaY6f-00HUBL-FB
 for bug-gnu-emacs@HIDDEN; Tue, 20 Sep 2022 09:55:49 +0200
Received: from mail-ex34.exprod.uio.no ([129.240.52.57])
 by mail-mx11.uio.no with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
 (Exim 4.95) (envelope-from <larstvei@HIDDEN>) id 1oaY6e-0005B5-SZ
 for bug-gnu-emacs@HIDDEN; Tue, 20 Sep 2022 09:55:49 +0200
Received: from mail-ex31.exprod.uio.no (2001:700:100:52::51) by
 mail-ex34.exprod.uio.no (2001:700:100:52::57) with Microsoft SMTP Server
 (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
 15.2.1118.12; Tue, 20 Sep 2022 09:55:48 +0200
Received: from mail-ex31.exprod.uio.no ([fe80::3dcb:90ad:2acb:f338]) by
 mail-ex31.exprod.uio.no ([fe80::3dcb:90ad:2acb:f338%7]) with mapi id
 15.02.1118.012; Tue, 20 Sep 2022 09:55:48 +0200
From: Lars Tveito <larstvei@HIDDEN>
To: "bug-gnu-emacs@HIDDEN" <bug-gnu-emacs@HIDDEN>
Subject: 29.0.50; Native compilation hangs on cyclic lists
Thread-Topic: 29.0.50; Native compilation hangs on cyclic lists
Thread-Index: AQHYzMV6U3mCgU+RZU6MS25NemWoog==
Date: Tue, 20 Sep 2022 07:55:48 +0000
Message-ID: <53a58362fbe449bc81eaf45ab66dd28d@HIDDEN>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-originating-ip: [129.240.113.222]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-UiO-SPF-Received: Received-SPF: neutral (mail-mx11.uio.no: 129.240.52.57 is
 neither permitted nor denied by domain of ifi.uio.no) client-ip=129.240.52.57;
 envelope-from=larstvei@HIDDEN; helo=mail-ex34.exprod.uio.no; 
X-UiO-Spam-info: not spam, SpamAssassin (score=-5.0, required=5.0,
 autolearn=disabled, UIO_MAIL_IS_INTERNAL=-5)
X-UiO-Scanned: 81115BB5E4F552F939818ED26920FDA04DFE66B2
X-UiOonly: 464F38DCCD0387DF932DF170533A5C1DF972301A
Received-SPF: pass client-ip=2001:700:100:10::50;
 envelope-from=larstvei@HIDDEN; helo=mail-out01.uio.no
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 20 Sep 2022 10:27:16 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.6 (--)

Evaluating the two following forms results in Emacs hanging:

(defun test-cycle ()
  '#1=3D(a . #1#))

(native-compile 'test-cycle)

The bug has been reproduced on a system running Debian as well.

- Lars
       =20

In GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS
appkit-2113.60 Version 12.6 (Build 21G115))
Windowing system distributor 'Apple', version 10.3.2113
System Description:  macOS 12.6

Configured using:
'configure
--prefix=3D/nix/store/wf6wjsvvs3q7k0vf3xlfzi3ik8v3601n-emacs-29.0.50
--disable-build-details --with-modules --with-ns
--disable-ns-self-contained --with-native-compilation'

Configured features:
ACL GLIB GMP GNUTLS JPEG JSON LIBXML2 MODULES NATIVE_COMP NOTIFY KQUEUE
NS PDUMPER PNG RSVG SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS ZLIB

Important settings:
  value of $EMACSLOADPATH: /nix/store/87hrwgmnic6hhjl6p7ch30ik90dpw324-emac=
s-packages-deps/share/emacs/site-lisp:
  value of $EMACSNATIVELOADPATH: /nix/store/87hrwgmnic6hhjl6p7ch30ik90dpw32=
4-emacs-packages-deps/share/emacs/native-lisp::
  value of $LC_CTYPE: UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/nix/store/87hrwgmnic6hhjl6p7ch30ik90dpw324-emacs-packages-deps/share/emacs=
/site-lisp/elpa/let-alist-1.0.6/let-alist hides /nix/store/wf6wjsvvs3q7k0vf=
3xlfzi3ik8v3601n-emacs-29.0.50/share/emacs/29.0.50/lisp/emacs-lisp/let-alis=
t
/nix/store/87hrwgmnic6hhjl6p7ch30ik90dpw324-emacs-packages-deps/share/emacs=
/site-lisp/elpa/nadvice-0.3/nadvice hides /nix/store/wf6wjsvvs3q7k0vf3xlfzi=
3ik8v3601n-emacs-29.0.50/share/emacs/29.0.50/lisp/emacs-lisp/nadvice

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs
comp comp-cstr warnings icons subr-x rx cl-seq cl-macs gv cl-extra
help-mode bytecomp byte-compile cconv cl-lib sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads kqueue cocoa ns multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 78425 6959)
(symbols 48 7029 0)
(strings 32 19124 2018)
(string-bytes 1 599871)
(vectors 16 16700)
(vector-slots 8 325741 9902)
(floats 8 27 31)
(intervals 56 320 0)
(buffers 1000 12))=




Acknowledgement sent to Lars Tveito <larstvei@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#57957; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sun, 24 Mar 2024 11:30:03 UTC

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