From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#57957: 29.0.50; Native compilation hangs on cyclic lists Date: Tue, 20 Sep 2022 17:33:55 +0200 Message-ID: <87pmfqawm4.fsf@gnus.org> References: <53a58362fbe449bc81eaf45ab66dd28d@ifi.uio.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20170"; 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, Andrea Corallo To: Lars Tveito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 20 22:04:13 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 1oajTY-0004xg-8J for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Sep 2022 22:04:12 +0200 Original-Received: from localhost ([::1]:55996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oajTX-0004W0-5L for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 20 Sep 2022 16:04:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oafH5-0007PS-AJ for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 11:35:05 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oafH5-00014N-1p for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 11:35:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oafH4-00041j-TF for bug-gnu-emacs@gnu.org; Tue, 20 Sep 2022 11:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Sep 2022 15:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57957 X-GNU-PR-Package: emacs Original-Received: via spool by 57957-submit@debbugs.gnu.org id=B57957.166368804815383 (code B ref 57957); Tue, 20 Sep 2022 15:35:02 +0000 Original-Received: (at 57957) by debbugs.gnu.org; 20 Sep 2022 15:34:08 +0000 Original-Received: from localhost ([127.0.0.1]:59279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oafGB-000402-NO for submit@debbugs.gnu.org; Tue, 20 Sep 2022 11:34:07 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:48114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oafG8-0003zP-Vu for 57957@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=; Original-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 ) id 1oafFz-0003Kg-Ms; Tue, 20 Sep 2022 17:33:57 +0200 In-Reply-To: <53a58362fbe449bc81eaf45ab66dd28d@ifi.uio.no> (Lars Tveito's message of "Tue, 20 Sep 2022 07:55:48 +0000") X-Now-Playing: De Ambassade's _Cold Wave Volume 2_: "Niet Van Mij" 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:243217 Archived-At: 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. Debugger entered--Lisp error: (quit) #f(compiled-function (x) #)((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) #)(#s #f(compiled-function (bb in-frame) #)(#s comp-ssa-rename() #("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 ...