From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#48342: native-comp emacs gets into an infinite loop at startup if no .el files are available Date: Tue, 11 May 2021 19:43:21 +0000 Message-ID: References: <878s4l1zlt.fsf@secretsauce.net> <875yzp1wz0.fsf@secretsauce.net> <834kf95u1z.fsf@gnu.org> <87zgx1yya7.fsf@secretsauce.net> <83pmxx4114.fsf@gnu.org> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19455"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Dima Kogan , 48342@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 21:44:11 2021 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 1lgYId-0004tB-8O for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 21:44:11 +0200 Original-Received: from localhost ([::1]:49026 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgYIb-0001EO-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 15:44:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58764) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgYIU-0001EG-7X for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 15:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54176) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgYIT-00029g-Ve for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 15:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgYIT-0001zG-TN for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 15:44: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: Tue, 11 May 2021 19:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48342 X-GNU-PR-Package: emacs Original-Received: via spool by 48342-submit@debbugs.gnu.org id=B48342.16207622047585 (code B ref 48342); Tue, 11 May 2021 19:44:01 +0000 Original-Received: (at 48342) by debbugs.gnu.org; 11 May 2021 19:43:24 +0000 Original-Received: from localhost ([127.0.0.1]:37488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgYHs-0001yH-JI for submit@debbugs.gnu.org; Tue, 11 May 2021 15:43:24 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:52354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgYHq-0001y8-Ar for 48342@debbugs.gnu.org; Tue, 11 May 2021 15:43:23 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 14BJhLdH010992 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Tue, 11 May 2021 19:43:21 GMT In-Reply-To: <83pmxx4114.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 11 May 2021 20:45:43 +0300") 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:206283 Archived-At: Eli Zaretskii writes: >> From: Dima Kogan >> Cc: akrl@sdf.org, 48342@debbugs.gnu.org >> Date: Tue, 11 May 2021 10:29:20 -0700 >> >> The maybe_swap_for_el() call in Frame #28 checks for the sources, sees >> that the file on disk doesn't exist, and throws the warning as expected: >> >> Code: >> call2 (intern_c_string ("display-warning") >> Full context: >> https://github.com/emacs-mirror/emacs/blob/bb8b8d717f91a85ca41de9e82246e6975e1ed719/src/lread.c#L1713 >> >> Frame #26 is the (display-warning ...) >> >> Frame #25 is (autoload-do-load ... 'display-warning) >> >> Frame #23 is (load "warnings" ...) >> >> The backtrace isn't right about the line number in frame #22, but that >> function is in lread.c. It's trying to compile "warnings.el". > > I guess when we find that a source for some .elc file is not > available, we should add its .el name to > native-comp-deferred-compilation-deny-list? Good idea that's probably the best fix. I'll come-up with a patch for this. Thanks Andrea