From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.bugs Subject: bug#57957: 29.0.50; Native compilation hangs on cyclic lists Date: Wed, 21 Sep 2022 19:18:55 +0000 Message-ID: References: <53a58362fbe449bc81eaf45ab66dd28d@ifi.uio.no> <87pmfqawm4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16584"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 57957@debbugs.gnu.org, Lars Tveito To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 21 21:19:34 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1ob5Fu-00047U-KL for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 21:19:34 +0200 Original-Received: from localhost ([::1]:33300 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ob5Ft-0003yG-8T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Sep 2022 15:19:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob5FO-0003x4-Ht for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 15:19:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36184) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ob5FO-0005Z0-35 for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 15:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ob5FN-0002Vq-KB for bug-gnu-emacs@gnu.org; Wed, 21 Sep 2022 15:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2022 19:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57957 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 57957-submit@debbugs.gnu.org id=B57957.16637879419655 (code B ref 57957); Wed, 21 Sep 2022 19:19:01 +0000 Original-Received: (at 57957) by debbugs.gnu.org; 21 Sep 2022 19:19:01 +0000 Original-Received: from localhost ([127.0.0.1]:35262 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob5FM-0002Vc-S7 for submit@debbugs.gnu.org; Wed, 21 Sep 2022 15:19:01 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:65348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ob5FK-0002VT-S9 for 57957@debbugs.gnu.org; Wed, 21 Sep 2022 15:18:59 -0400 Original-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 In-Reply-To: <87pmfqawm4.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 20 Sep 2022 17:33:55 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:243375 Archived-At: Lars Ingebrigtsen writes: > Lars Tveito 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