From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 20:45:43 +0300 Message-ID: <83pmxx4114.fsf@gnu.org> References: <878s4l1zlt.fsf@secretsauce.net> <875yzp1wz0.fsf@secretsauce.net> <834kf95u1z.fsf@gnu.org> <87zgx1yya7.fsf@secretsauce.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38646"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 48342@debbugs.gnu.org, akrl@sdf.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 19:48:30 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 1lgWUf-0009wA-Vk for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 19:48:29 +0200 Original-Received: from localhost ([::1]:60626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgWUe-0000rY-Uh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 13:48:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33928) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgWSJ-0008CR-WC for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:46:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54003) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgWSI-0007Xg-E1 for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:46:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgWSI-0007YC-CX for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 17:46:02 +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.162075514729002 (code B ref 48342); Tue, 11 May 2021 17:46:02 +0000 Original-Received: (at 48342) by debbugs.gnu.org; 11 May 2021 17:45:47 +0000 Original-Received: from localhost ([127.0.0.1]:37316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgWS3-0007Xi-4e for submit@debbugs.gnu.org; Tue, 11 May 2021 13:45:47 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:51750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgWRx-0007XR-I2 for 48342@debbugs.gnu.org; Tue, 11 May 2021 13:45:45 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59036) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgWRs-0007MN-5n; Tue, 11 May 2021 13:45:36 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3799 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgWRr-00047x-8l; Tue, 11 May 2021 13:45:35 -0400 In-Reply-To: <87zgx1yya7.fsf@secretsauce.net> (message from Dima Kogan on Tue, 11 May 2021 10:29:20 -0700) 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:206267 Archived-At: > 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?