From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: (select-window nil) crash with gcc-8.2.0 Date: Sun, 07 Apr 2019 19:16:30 +0300 Message-ID: <83y34l94f5.fsf@gnu.org> References: <0993F546-D21B-4722-8300-7A9CDDCE7EB8@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="93555"; mail-complaints-to="usenet@blaine.gmane.org" Cc: enometh@meer.net, emacs-devel@gnu.org To: Andreas Schwab Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 07 18:17:27 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDAU2-000OGN-Pg for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2019 18:17:26 +0200 Original-Received: from localhost ([127.0.0.1]:40999 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDAU1-0006GB-Rg for ged-emacs-devel@m.gmane.org; Sun, 07 Apr 2019 12:17:25 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDATI-0006BI-He for emacs-devel@gnu.org; Sun, 07 Apr 2019 12:16:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDATH-0006QM-0i; Sun, 07 Apr 2019 12:16:39 -0400 Original-Received: from [176.228.60.248] (port=3083 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hDATG-0001Gw-Bj; Sun, 07 Apr 2019 12:16:38 -0400 In-reply-to: (message from Andreas Schwab on Sun, 07 Apr 2019 09:13:44 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235071 Archived-At: > From: Andreas Schwab > Date: Sun, 07 Apr 2019 09:13:44 +0200 > Cc: emacs-devel@gnu.org > > On Apr 07 2019, Madhu wrote: > > > the problem is that if gcc is producing the wrong code then the > > backtrace is unreliable. This is not the backtrace one would expect > > from calling (select-window nil). > > Step through select_window to see where it goes wrong. Right. And I'm afraid the stepping will need to be done on machine instruction level, i.e. "stepi", not "step". The backtrace looks completely bogus, it doesn't even show the file names correctly, let alone line numbers. The main issue here is why CHECK_LIVE_WINDOW doesn't do its job in that case. It does here, and signals an error because nil is not a live window.