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#43700: 28.0.50; Crash creating a second frame Date: Tue, 29 Sep 2020 17:37:40 +0300 Message-ID: <83y2ksk5sb.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40483"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 43700@debbugs.gnu.org To: Andy Moreton Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 29 16:38:57 2020 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 1kNGmO-000AQQ-AT for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 16:38:56 +0200 Original-Received: from localhost ([::1]:58638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNGmM-0003dH-MH for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 10:38:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57282) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNGlX-00034a-GP for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:38:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNGlV-0001Va-P5 for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:38:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNGlV-0005gk-MK for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:38:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Sep 2020 14:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43700 X-GNU-PR-Package: emacs Original-Received: via spool by 43700-submit@debbugs.gnu.org id=B43700.160139027721850 (code B ref 43700); Tue, 29 Sep 2020 14:38:01 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 29 Sep 2020 14:37:57 +0000 Original-Received: from localhost ([127.0.0.1]:56836 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNGlR-0005gK-29 for submit@debbugs.gnu.org; Tue, 29 Sep 2020 10:37:57 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50428) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNGlQ-0005g7-8B for 43700@debbugs.gnu.org; Tue, 29 Sep 2020 10:37:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38445) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNGlK-0001Uy-WC; Tue, 29 Sep 2020 10:37:51 -0400 Original-Received: from [176.228.60.248] (port=3593 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kNGlJ-0007Km-Ph; Tue, 29 Sep 2020 10:37:50 -0400 In-Reply-To: (message from Andy Moreton on Tue, 29 Sep 2020 11:46:48 +0100) 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:189261 Archived-At: > From: Andy Moreton > Date: Tue, 29 Sep 2020 11:46:48 +0100 > > After loading emacs (and files saved by desktop), do C-x 5 2 to create a > new frame. Emacs crashes, and gdb shows the following backtrace. Is this repeatable? Does it happen with "emacs -Q", per chance? Or with unoptimized builds? > This seems to have something to do with toolbars, but ~/.emacs.d/init.el > contains "(tool-bar-mode 0)" so it shouldn't be doing anything with toolbars. Creating a frame makes a keymap for the tool bar, whether it's displayed or not. But look at this part: > #9 0x00000004001e76b1 in FACE_FROM_ID (id=0x162880, f=0x154e25ed5d860000) at > C:/emacs/git/emacs/master/src/frame.h:1460 > No locals. > #10 lookup_image (f=0x154e25ed5d860000, f@entry=0x6edbab0, spec=XIL(0), > spec@entry=XIL(0xcd2b873), face_id=0x162880, face_id@entry=0xffffffff) at > C:/emacs/git/emacs/master/src/image.c:2332 > img = > hash = > face = > foreground = > background = > #11 0x00000004001e8235 in Fimage_mask_p (spec=XIL(0xcd2b873), frame=XIL(0)) at > C:/emacs/git/emacs/master/src/image.c:1114 > f = 0x6edbab0 Look at the reasonable values of the arguments at entry to lookup_image, and the garbled values at the crash site. The line that calls FACE_FROM_ID is the first executable line of lookup_image, so this could have happened only if the optimizations moved some non-trivial code between the entry to the function and that line. Or maybe something else is at work here.