From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan 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 10:29:20 -0700 Message-ID: <87zgx1yya7.fsf@secretsauce.net> References: <878s4l1zlt.fsf@secretsauce.net> <875yzp1wz0.fsf@secretsauce.net> <834kf95u1z.fsf@gnu.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="25501"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 48342@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 19:30:14 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 1lgWCz-0006Qr-K3 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 19:30:14 +0200 Original-Received: from localhost ([::1]:49112 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgWCx-0000e2-Iy for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 13:30:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59220) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgWCp-0000cZ-5f for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:30:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgWCo-0006Bd-Ud for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgWCo-00078f-Qd for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 13:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 May 2021 17:30: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.162075415427367 (code B ref 48342); Tue, 11 May 2021 17:30:02 +0000 Original-Received: (at 48342) by debbugs.gnu.org; 11 May 2021 17:29:14 +0000 Original-Received: from localhost ([127.0.0.1]:37279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgWC2-00077L-3W for submit@debbugs.gnu.org; Tue, 11 May 2021 13:29:14 -0400 Original-Received: from wout4-smtp.messagingengine.com ([64.147.123.20]:47777) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgWC1-000776-14 for 48342@debbugs.gnu.org; Tue, 11 May 2021 13:29:13 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 3E46815FB; Tue, 11 May 2021 13:29:07 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 11 May 2021 13:29:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=references:from:to:cc:subject:in-reply-to:date:message-id :mime-version:content-type; s=fm3; bh=kVkdum7vtaHappmwpq5mgJD+Cd FRAd13gfti12vn/9I=; b=RYyFq+Vi2fg+rhxmHUwpERzcnoeRDZIB7ltMctAtC5 aqaXShdBXxNaMDvQ2RY+ILORAO6X/GJBsppZGTo/ZVmBOve8/pj5CAslFOG4CzxP /XroFd/BeS6egSDwT7t3/VvZFJx4nLCVPLkx7mpDBp8w4i6hMTjQ4bRAdna9VOad kOknK7x3T6SQrfmXXKnfhgpvSodgpvrQpon+5xKytc92DGsXLdeGQoOh+/hyNXc3 YpeJk2he+gv7REB1AaLVSwCevoMgHrh9YaApyOdvaGVTu4F4Vb+7wc7YL+msebrD vzQvGc1nKDdRpLfcFSUWOI7rxUN9tfB04sa0ezFxEHag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=kVkdum 7vtaHappmwpq5mgJD+CdFRAd13gfti12vn/9I=; b=BS9SE+hIQjQyG6AszFvmJB JLZAWbCjgAOeZnImK7aOrAu3JAPXllW0S4LsDuzZXajXzP9AmHdVsxTmSTAHtc5V OgvHTaxL7rvD+UnnFUvC1sEg1+J+z1vgiixYP/vml9L4koeRVCdEKQiCqwgHJeMP 85PvsIrd3fZNnhzhTMTX+Udz2CN343rIiI+FQqUhZg8m1AKeyaduoWJx6kwaijZn jUV/i+0wUuQ/S7Y3nmhCkdQQqfUbOMC1w1nGtZ+uo+Vc9uQeB3KnFFAA8FHzsAng HqrXLrhR22o0gZVwpQ3gGwluwkEw95Ofw6Px+kTTkoNaT8h4qLLL9g/yaeRLoJMw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehtddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffujgffkfggtgesthdtredttdertdenucfhrhhomhepffhimhgr ucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghutggvrdhnvghtqeenucggtffrrg htthgvrhhnpeehvdfgudefhfeiudeigfejgeeiheeghfffhfekheeugeefleetheetjeeu udeggfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecukfhppedutdejrddvuddtrd dvudefrddvgeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepughimhgrsehsvggtrhgvthhsrghutggvrdhnvght X-ME-Proxy: Original-Received: from localhost (107-210-213-243.lightspeed.irvnca.sbcglobal.net [107.210.213.243]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 11 May 2021 13:29:06 -0400 (EDT) In-reply-to: <834kf95u1z.fsf@gnu.org> 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:206264 Archived-At: Eli Zaretskii writes: > Any idea how come display-warning calls itself? I'm here: https://github.com/emacs-mirror/emacs/commit/bb8b8d A single recursive cycle in the C backtrace looks like this: #21 0x000055555573b282 in maybe_swap_for_eln (no_native=no_native@entry=false, filename=filename@entry=0x7fffffebd780, fd=fd@entry=0x7fffffebd77c, mtime=...) at lread.c:1713 #22 0x000055555573ba5d in openp (path=0x555555d75e63, str=0x7fffeefb3a1c, suffixes=, storeptr=0x7fffffebd958, predicate=0x0, newer=false, no_native=false) at ../lib/stat-time.h:149 #23 0x000055555573ed05 in Fload (file=0x7fffeefb3a1c, noerror=0x0, nomessage=0x30, nosuffix=0x0, must_suffix=) at lisp.h:1002 #24 0x000055555573faef in save_match_data_load (file=0x7fffeefb3a1c, noerror=noerror@entry=0x0, nomessage=nomessage@entry=0x30, nosuffix=nosuffix@entry=0x0, must_suffix=must_suffix@entry=0x30) at lread.c:1616 #25 0x0000555555713d57 in Fautoload_do_load (fundef=0x7fffef14ed9b, funname=0x2aaa99569808, macro_only=0x0) at eval.c:2308 #26 0x0000555555714040 in Ffuncall (nargs=3, args=0x7fffffebdbd0) at lisp.h:1002 #27 0x0000555555714211 in call2 (fn=, arg1=arg1@entry=0x4650, arg2=arg2@entry=0x555555f11bf4) at eval.c:2903 #28 0x000055555573b282 in maybe_swap_for_eln (no_native=no_native@entry=false, filename=filename@entry=0x7fffffebdd80, fd=fd@entry=0x7fffffebdd7c, mtime=...) at lread.c:1713 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". > Note that if you will be distributing the *.eln files, I think the GPL > requires you to make the *.el files available. In fact, this is so > even with the *.elc files. So I'm not sure I understand how you could > distribute only the *.elc files until now: isn't that contrary to GPL? The .el files are available, but the user doesn't have to install them. Just like the .c sources are available, but the user can install just the pre-built binaries if they want to.