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 20:30:08 +0000 Message-ID: References: <83sg52lykn.fsf@gnu.org> <83czw3hu5f.fsf@gnu.org> <83k0qagtfe.fsf@gnu.org> <83im5ugpym.fsf@gnu.org> <83czw2gopq.fsf@gnu.org> <834khege1f.fsf@gnu.org> <8335wygcpq.fsf@gnu.org> <83zgz5g8u8.fsf@gnu.org> <83wnu9g757.fsf@gnu.org> <83mtv5frr4.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="33519"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: pipcet@gmail.com, 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 21:31: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 1lLXOK-0008cV-MS for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Mar 2021 21:31:12 +0100 Original-Received: from localhost ([::1]:39594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lLXOJ-0004Ft-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 14 Mar 2021 16:31:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLXOA-0004Dr-R2 for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 16:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50952) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLXOA-0006c4-Ig for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 16:31:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lLXOA-0001OL-FB for bug-gnu-emacs@gnu.org; Sun, 14 Mar 2021 16:31: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 20:31: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.16157538135289 (code B ref 47067); Sun, 14 Mar 2021 20:31:02 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 14 Mar 2021 20:30:13 +0000 Original-Received: from localhost ([127.0.0.1]:34265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLXNM-0001NF-S5 for submit@debbugs.gnu.org; Sun, 14 Mar 2021 16:30:13 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:53329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lLXNK-0001N2-9j for 47067@debbugs.gnu.org; Sun, 14 Mar 2021 16:30:11 -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 12EKU8x4018171 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Sun, 14 Mar 2021 20:30:09 GMT In-Reply-To: <83mtv5frr4.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 14 Mar 2021 21:40:47 +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:202391 Archived-At: Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: pipcet@gmail.com, 47067@debbugs.gnu.org >> Date: Sun, 14 Mar 2021 18:47:12 +0000 >> >> this really look like a libgccjit bug. I think would be interesting if >> you have time to: >> >> 1- produce a libgccjit reproducer (applying the attached patch before >> running the test) and post it so we can check if we can reproduce and >> investigate this on other setups. >> >> 2- run all the comp-tests.el tests excluding `comp-tests-bootstrap' just >> to make sure we are fine with all the reduced testcases. > > The reproducer for stage2 crash is attached. It doesn't compile, > because the code is really invalid C. That's sad :( > First, there's a string which > provides the absolute file name of libgccjit, and it uses backslashes > (as the original file name does), but the backslashes aren't doubled > when the reproducer is generated, so GCC complains about unknown > escapes. I fixed that manually, but it still fails to compile because > there are literal "nil"s in several places where (I think) strings > were supposed to be. I've the impression it's "just" failing to quote strings... And on GCC pre 11 we rely on strings to store immediates in the eln (so we have a ton of). I tried to produce a reproducer for bootstrap stage2 on my system 64bit using the libgccjit I've (11) but forcing back the use of the strings and the result is not compilable either. > And maybe there are more problems, I didn't try > to pursue this further. If you'd like me to try to compile a > cleaned-up reproducer, send it to me and I will try. I've the impression it might be a *very* time consuming task unless you have an automated way of doing it. The outcome might be allowing for investigating a GCC bug that most likely is not reproducible on a contemporary GCC and that we observe only in a test for now... So I'd be a little reluctant. But I think would be nice to try to understand if the issue is "just" the quoting or what's the state and report it as a GCC bug. I'll try to have a look (not really sure when, unless we consider this urgent). > All the other tests in comp-tests.el pass. That's something... Thanks Andrea