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 00:47:10 -0700 Message-ID: <878s4l1zlt.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13150"; mail-complaints-to="usenet@ciao.gmane.io" To: 48342@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 11 09:48:17 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 1lgN7o-0003Go-G9 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 09:48:17 +0200 Original-Received: from localhost ([::1]:56526 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lgN7n-0000do-En for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 11 May 2021 03:48:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56342) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgN7a-0000cw-B6 for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 03:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51532) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lgN7a-0001ku-1j for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 03:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lgN7Z-0000bc-Vp for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 03:48:01 -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 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48342 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16207192262251 (code B ref -1); Tue, 11 May 2021 07:48:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 May 2021 07:47:06 +0000 Original-Received: from localhost ([127.0.0.1]:34845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgN6f-0000aF-TE for submit@debbugs.gnu.org; Tue, 11 May 2021 03:47:06 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:55590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgN6d-0000a6-AO for submit@debbugs.gnu.org; Tue, 11 May 2021 03:47:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56198) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgN6d-0007Kb-1l for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 03:47:03 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lgN6b-00019Q-2e for bug-gnu-emacs@gnu.org; Tue, 11 May 2021 03:47:02 -0400 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id 557A25C0105 for ; Tue, 11 May 2021 03:46:58 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 11 May 2021 03:46:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=1R091gnThmpqJuWiY9oCxximwgeYF3ZMYqnry40X5VA=; b=Amb6O8Oa yeUt+2+2M+lOijOPJLRMJWBWADOK16yRO+QL7wyvipiqYHxYBERqp7WCIwpM6pCS LxNP0/t//EWLiaiuFaiTjUxM8L/nunS/YAXFZw7eVPgT3U3nshz7Ij+W2ABOAE/O LKWoXP6fn8B4I28R1n4+2A8hYWqjLEiuEHX/MvhmGOrY3EYJ2EMEHPviOBO70ttD 928DmZL9y82IoJXWx/Q2S4FicaW5vAjDTLNU5SnTcsMhavMCR0i/1ouSQ5of1l2Q xENhUUlIfQzSb3i/tcqLHQ5l+yxGJuylYHXaHR/09Vnr5LZ727NNoH727QC7o9YR 0WR+3fr7aaGaPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=1R091gnThmpqJuWiY9oCxximwgeYF 3ZMYqnry40X5VA=; b=RDTNlzgHNqryPJrNVyp3a2kh3vX11F4ste5EdwNi15xpU sfpHWWsDjKvJgYGWl32wQ12EGBZHJGQTFCm6Jeg/GIUOCvX/8oeIuF0dtlPPKUs7 DaDn+5WcfYwFAbRXIp/rLUzNk+M2CTE9CnFHCOL77vLdXYtu63Mh+f+ZCzoKD4h6 o1nT/TZu+yoLEMPJo6oF2k73GCqOb5dfstvQfnALmukXHzkxHJkf43DNMnOCqVYm CoM+5N9JKdpqvpv5m3TbnmAVzLsFz4kOJgtZhWPnI6R1kGGvgFoiu/Fv6non9szd OjYk76kwLx9QKwAfSKZ/Lmupnvh2JQsBe+JSTjDQg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdegledguddvgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttd dttdenucfhrhhomhepffhimhgrucfmohhgrghnuceoughimhgrsehsvggtrhgvthhsrghu tggvrdhnvghtqeenucggtffrrghtthgvrhhnpeeiteelvdfgieeuleeghffhueehkeetie dugffhvefffffhjedugfetfeehhffhgeenucffohhmrghinhepshgvtghrvghtshgruhgt vgdrnhgvthenucfkphepuddtjedrvddutddrvddufedrvdegfeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguihhmrgesshgvtghrvghtshgr uhgtvgdrnhgvth 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 for ; Tue, 11 May 2021 03:46:57 -0400 (EDT) Received-SPF: pass client-ip=66.111.4.25; envelope-from=dima@secretsauce.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:206205 Archived-At: Hi. I maintain Debian packages of bleeding-edge emacs builds: http://emacs.secretsauce.net/ Recently I enabled the native-comp flags for these packages. The results mostly work, but a user sent me a bug report whose cause I just tracked down. Some of this is probably my fault, as the packager, but there's an emacs bug here too. To tickle the bug the user needs to install the emacs-snapshot package, but NOT the emacs-snapshot-el package. This results in the .elc files being shipped, but NOT the .el files. This is a valid way to do it without the native-comp patches, and the Debian emacs packages have allowed this since forever. If you install emacs like this, this happens: $ emacs-snapshot -Q -batch -f batch-native-compile empty.el Fatal error 11: Segmentation fault The C backtrace is 6033 frames long, which can't be good. xbacktrace says this: (gdb) xbacktrace "display-warning" (0xffebcfd8) "display-warning" (0xffebd5d8) .... lots more "display-warning" "locate-file" (0xffffe498) "command-line" (0xffffe5a0) "normal-top-level" (0xffffe640) And the warning itself is: "Cannot look-up eln file as no source file was found for /usr/share/emacs/28.0.50/lisp/emacs-lisp/warnings.elc" So something somewhere wanted to throw a warning, and this warning tried to find its own sources, couldn't do it, and threw another warning. And so on. So first off, it'd be great if emacs could handle this without such a recursive failure mode. It took me a long time to figure out what's happening, and a plain-text error message on the console would have been nice. And second: how should this be packaged? Is shipping the .el files a hard requirement now? Thanks!