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: Fri, 12 Mar 2021 06:46:50 +0000 Message-ID: References: <83sg52lykn.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="22174"; 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 Fri Mar 12 07:47:14 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 1lKbZp-0005fI-VR for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 07:47:13 +0100 Original-Received: from localhost ([::1]:47178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKbZp-0002JJ-2e for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 12 Mar 2021 01:47:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKbZe-0002Iw-Fd for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 01:47:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44330) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKbZe-0008F6-8V for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 01:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lKbZe-0003pV-6g for bug-gnu-emacs@gnu.org; Fri, 12 Mar 2021 01:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Mar 2021 06:47: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.161553161614708 (code B ref 47067); Fri, 12 Mar 2021 06:47:02 +0000 Original-Received: (at 47067) by debbugs.gnu.org; 12 Mar 2021 06:46:56 +0000 Original-Received: from localhost ([127.0.0.1]:55876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKbZX-0003p9-L3 for submit@debbugs.gnu.org; Fri, 12 Mar 2021 01:46:55 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:64977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lKbZW-0003p0-06 for 47067@debbugs.gnu.org; Fri, 12 Mar 2021 01:46:54 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 12C6koXC025769 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 12 Mar 2021 06:46:51 GMT In-Reply-To: <83sg52lykn.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 11 Mar 2021 13:27:52 +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:202140 Archived-At: Eli Zaretskii writes: > I was hit by a segfault while scrolling through a C source file, in > this case dispnew.c. The sequence of commands was this: > > emacs -Q > C-h sit-for RET > Click on the link to subr.el > In subr.el go to where sit-for calls sleep-for and type C-h f RET > Click on "C source code" to display dispnew.c > Scroll down with C-n or C-v I can't reproduce here :/ > The backtrace appears below, with some data I collected. The argument > 'args' to Flss is obviously bogus, but I don't understand how it came > into existence. Maybe related to 0x30, which stands for the symbol t? > The first call-stack frame above that I can examine, frame #4, calls > c-beginning-of-statement-1 with 4 nil args and the last argument of t. > The levels below that are impenetrable for me: is there a way of > digging into this > F632d626567696e6e696e672d6f662d73746174656d656e742d31_c_beginning_of_statement_1_0 > thing? > > Any suggestions for how to debug this further or what data to collect > that will give you an idea for the root cause(s)? Assuming is a miscompilation it's gonna be tricky to reduce it without a reproducible testcase. But if is a miscompilation is should be reproducible so either is not a miscompilation or either the initial conditions are different. > P.S. Note the stopped backtrace: this is something I see for the last > couple of days on the native-comp branch, not sure if it's related. I > will report that separately. > > P.P.S. I tried to start another instance of Emacs from the branch, and > it immediately displayed this: > > Re-entering top level after C stack overflow > > Which probably means something unhealthy happens when you start Emacs > while another instance is under a debugger with the same *.eln files > loaded. I often used more than one Emacs session from the same binary so at least on GNU/Linux this does not appear to be a problem. Thanks Andrea