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: Fri, 02 Oct 2020 14:49:36 +0300 Message-ID: <83d020g84v.fsf@gnu.org> References: <83y2ksk5sb.fsf@gnu.org> <6b20df65-0c09-f54c-1018-e95f7509aa75@gmail.com> <86tuvf6ndi.fsf@gmail.com> <83y2kqgl9a.fsf@gnu.org> <14da5210-bba0-9e33-65dc-a76e7f3878fe@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40082"; 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 Fri Oct 02 13:50:20 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 1kOJZr-000AKx-HW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 13:50:19 +0200 Original-Received: from localhost ([::1]:32918 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOJZq-0004Hb-Ij for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 07:50:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOJZb-0004GI-A7 for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 07:50:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56239) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOJZa-0000au-3u for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 07:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOJZa-0006rX-0S for bug-gnu-emacs@gnu.org; Fri, 02 Oct 2020 07:50:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 11:50: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.160163939326361 (code B ref 43700); Fri, 02 Oct 2020 11:50:01 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 2 Oct 2020 11:49:53 +0000 Original-Received: from localhost ([127.0.0.1]:39552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOJZR-0006r7-8l for submit@debbugs.gnu.org; Fri, 02 Oct 2020 07:49:53 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOJZM-0006qq-V6 for 43700@debbugs.gnu.org; Fri, 02 Oct 2020 07:49:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:54980) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOJZH-0000ZC-J7; Fri, 02 Oct 2020 07:49:43 -0400 Original-Received: from [176.228.60.248] (port=1038 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOJZG-0002ZM-QC; Fri, 02 Oct 2020 07:49:43 -0400 In-Reply-To: <14da5210-bba0-9e33-65dc-a76e7f3878fe@gmail.com> (message from Andy Moreton on Fri, 2 Oct 2020 01:38:25 +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:189641 Archived-At: > Cc: 43700@debbugs.gnu.org > From: Andy Moreton > Date: Fri, 2 Oct 2020 01:38:25 +0100 > > On 01/10/2020 13:53, Eli Zaretskii wrote: > > If you put a breakpoint in lookup_image, on the line indicated below: > > > > ptrdiff_t > > lookup_image (struct frame *f, Lisp_Object spec, int face_id) > > { > > struct image *img; > > EMACS_UINT hash; > > > > struct face *face = (face_id >= 0) ? FACE_FROM_ID (f, face_id) > > : FACE_FROM_ID (f, DEFAULT_FACE_ID); > > unsigned long foreground = FACE_COLOR_TO_PIXEL (face->foreground, f); <<<< > > unsigned long background = FACE_COLOR_TO_PIXEL (face->background, f); > > > > and condition the breakpoint by face == 0, does it break before the > > crash when you perform the steps that reproduces the problem? > > Yes it does. So the next question is: how come the default face is not available? When that breakpoint breaks, what is the value of FRAME_FACE_CACHE (f)->used Is it zero, per chance? If so, I'd be interested to understand which code resets the frame's face cache in this recipe. > >> #11 0x00000004002c86e5 in lookup_image (f=0x5123410, spec=XIL(0xbc42793), face_id=0xffffffff) at C:/emacs/git/emacs/master/src/image.c:2334 > > > > Why does face_id have the value 0xffffffff? The caller passes -1: > > This seems to be because I have "set output-radix 16" in ~/.gdbinit, so > it displays the raw hex value. After "set output-radix 10" it displays > the value as -1. Nothing untoward here. Ah, okay. Nothing to worry about, then. Thanks.