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#47067: 28.0.50; [feature/native-comp] Crash while scrolling through dispnew.c Date: Mon, 05 Apr 2021 18:06:03 +0300 Message-ID: <8335w4db50.fsf@gnu.org> References: <83sg52lykn.fsf@gnu.org> <838s6rjvup.fsf@gnu.org> <83pmzve442.fsf@gnu.org> <83ft0rdyld.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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40337"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47067@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 05 17:07:13 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 1lTQor-000AO4-7l for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 17:07:13 +0200 Original-Received: from localhost ([::1]:45176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTQop-0007r7-W6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 05 Apr 2021 11:07:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lTQog-0007pw-RA for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 11:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lTQog-0004Jq-IL for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 11:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lTQog-000718-Al for bug-gnu-emacs@gnu.org; Mon, 05 Apr 2021 11:07: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: Mon, 05 Apr 2021 15:07:02 +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.161763518026917 (code B ref 47067); Mon, 05 Apr 2021 15:07:02 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 5 Apr 2021 15:06:20 +0000 Original-Received: from localhost ([127.0.0.1]:38389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTQny-000704-VO for submit@debbugs.gnu.org; Mon, 05 Apr 2021 11:06:19 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:58384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lTQnw-0006zl-Iy for 47067@debbugs.gnu.org; Mon, 05 Apr 2021 11:06:17 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59509) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lTQnr-0003dJ-B1; Mon, 05 Apr 2021 11:06:11 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4840 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lTQnp-00008a-9o; Mon, 05 Apr 2021 11:06:10 -0400 In-Reply-To: (message from Andrea Corallo on Sun, 04 Apr 2021 20:52:51 +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:203594 Archived-At: > From: Andrea Corallo > Cc: 47067@debbugs.gnu.org > Date: Sun, 04 Apr 2021 20:52:51 +0000 > > > Ah, I see now. The list of the files that could be preloaded is in > > $shortlisp, see src/Makefile.in. The file names are read from > > src/lisp.mk. > > Here I'm, 6f8ec14491 should introduce the behaviour we wanted, preloaded > files are now deposed in the 'preloaded' subfolder. > > Also, 1ad0ecea2b reinstablish the fact that at each re-compilation we > clean-up stale eln files in all the directories in `comp-eln-load-path', > indeed this is excluding the introduced 'preloaded' subfolder. Thanks. Things seem to work quite well, AFAICS, but there's a subtle problem (or maybe 2): . First, the problem with corrupted backtraces is back, although I verified that comp-debug is 1. Strangely, it happens only for some *.eln files; others show full backtraces as expected. The telltale sign of a "problematic" .eln file is that even when functions are shown in the backtrace with their fill names, the arguments of function calls aren't shown, something that shouldn't happen when there's debug info. . 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?