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: Sun, 14 Mar 2021 08:10:08 +0000 Message-ID: References: <83sg52lykn.fsf@gnu.org> <83mtv8lrmf.fsf@gnu.org> <83czw4lelg.fsf@gnu.org> <835z1wl6ao.fsf@gnu.org> <831rckl56k.fsf@gnu.org> <83o8fojgqy.fsf@gnu.org> <83lfarjzof.fsf@gnu.org> <83v99uhl73.fsf@gnu.org> <83a6r6go38.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="38154"; 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 Sun Mar 14 09:11:23 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 1lLLqN-0009o3-95 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Mar 2021 09:11:23 +0100 Original-Received: from localhost ([::1]:50396 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLLqL-0005dN-Qw for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Mar 2021 04:11:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56056) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLLq3-0005dG-VQ for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 04:11:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49607) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLLq2-0002cX-OI for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 04:11:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLLq2-00018v-En for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 04:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Mar 2021 08:11: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.16157094114322 (code B ref 47067); Sun, 14 Mar 2021 08:11:02 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 14 Mar 2021 08:10:11 +0000 Original-Received: from localhost ([127.0.0.1]:32920 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLLpC-00017c-Mf for submit@debbugs.gnu.org; Sun, 14 Mar 2021 04:10:11 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:55388) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLLpB-00017L-18 for 47067@debbugs.gnu.org; Sun, 14 Mar 2021 04:10:09 -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 12E8A8xP010496 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 14 Mar 2021 08:10:08 GMT In-Reply-To: <83a6r6go38.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Mar 2021 10:02:19 +0200") 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:202350 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: Eli Zaretskii , 47067@debbugs.gnu.org >> Date: Sun, 14 Mar 2021 07:19:17 +0000 >> >> Okay with a trunk gdb I'm able to debug... > > Yes, 8.2 is quite an old version. > >> Here is my backtrace for the suggested reproducer on my Emacs configured >> with --with-wide-int --enable-checking=yes,glyphs and compiled with the >> default `comp-debug' 0. > > Thanks. However, your build is optimized, whereas mine isn't. This > has a significant effect on the backtrace (static functions are > inlined and don't appear in the backtrace). Please reconfigure with > CFLAGS='-O0 -g3' (and the rest of the switches as you used them for > this build), and show the backtrace after rebuilding. Okay will rebuild and report this evening (have to leave the PC now). > As I established earlier, in > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47067#80 > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=47067#83 > > the code which GDB fails to identify with any symbols calls Emacs > primitives via freloc.link_table. Where is the C source for this > code? If there is no C source, then how is that code generated? There's no C source for that as this is generated by us from Lisp (Emacs is acting as a GCC frontend). We can anyway have libgccjit generate some pseudo C code to ease debugging (see 'gcc_jit_context_dump_to_file' in [1] if you like). We trigger this compiling with `comp-debug' >= 1, in this case gdb should let you step into the .eln following the dumped pseudo C code. >> Emacs does not crash if then I continue and scroll through down through >> in the file. > > And if you type "C-s sleep"? Doesn't crash. Thanks Andrea [1]