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#47067: 28.0.50; [feature/native-comp] Crash while scrolling through dispnew.c Date: Mon, 05 Apr 2021 19:22:19 +0000 Message-ID: References: <83sg52lykn.fsf@gnu.org> <83mtuycft5.fsf@gnu.org> <83r1k8bzqs.fsf@gnu.org> <83k0q0bu05.fsf@gnu.org> <83eeg8bjvj.fsf@gnu.org> <83a6qwbiyd.fsf@gnu.org> <837dm0bfvv.fsf@gnu.org> <83pmznqi7m.fsf@gnu.org> <83eeg3q80h.fsf@gnu.org> <8335w4db50.fsf@gnu.org> <83v990bnlx.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="33338"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47067@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 05 21:23:12 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 1lTUoa-0008XC-BO for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 21:23:12 +0200 Original-Received: from localhost ([::1]:43092 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTUoZ-0005P4-ED for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 15:23:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51568) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTUoQ-0005Ij-CV for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 15:23:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55278) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTUoQ-0004z4-1x for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 15:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTUoP-0002na-Sd for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 15:23: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: Mon, 05 Apr 2021 19:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47067 X-GNU-PR-Package: emacs Original-Received: via spool by 47067-submit@debbugs.gnu.org id=B47067.161765054310696 (code B ref 47067); Mon, 05 Apr 2021 19:23:01 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 5 Apr 2021 19:22:23 +0000 Original-Received: from localhost ([127.0.0.1]:38591 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTUnm-0002mR-W8 for submit@debbugs.gnu.org; Mon, 05 Apr 2021 15:22:23 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:54700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTUnl-0002mK-9S for 47067@debbugs.gnu.org; Mon, 05 Apr 2021 15:22:22 -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 135JMJrl025679 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Mon, 5 Apr 2021 19:22:20 GMT In-Reply-To: (Andrea Corallo via's message of "Mon, 05 Apr 2021 18:47:16 +0000") 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:203610 Archived-At: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: > Eli Zaretskii writes: > >>> From: Andrea Corallo >>> Cc: 47067@debbugs.gnu.org >>> Date: Mon, 05 Apr 2021 18:04:53 +0000 >>> >>> > . If I manually recompile a preloaded .el file, like this: >>> > >>> > emacs -batch -l comp -f batch-byte-native-compile-for-bootstrap ../lisp/isearch.el >>> > >>> > then the produced .eln file is written not into the preloaded >>> > folder, but into its parent, i.e. native-lisp/28.0.50-NNNNNN/. >>> > >>> > And here is the possible link between these two issues: if I start >>> > Emacs after compiling preloaded files manually as above, then Emacs >>> > seems to load the *.eln files from native-lisp/28.0.50-NNNNNN/, not >>> > from native-lisp/28.0.50-NNNNNN/preloaded, and the problems with the >>> > backtraces miraculously disappear! >>> > >>> > Any idea what is going on here? >>> >>> I think I understand the second issue (at least): >>> >>> ATM which file is preloaded and which is not is suggested by the build >>> system to Emacs (using the LISP_PRELOADED env var) so that Emacs decides >>> where to depose the eln. Unfortunately when the build system is by >>> passed with a manual invocation Emacs is unaware of this information and >>> not targeting the preloaded sub-directory. >>> >>> Not sure what's the best strategy to improve this. >> >> How about a boolean variable comp-file-preloaded-p, which could be set >> to signal to comp.el that the file being compiled should be preloaded? >> Then the manual command would need to set that via -eval. > > Sounds good should be easy to add, doing it. Right, 0a3e715e1f should do the job please have a try when you like. Thanks Andrea