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: Sat, 03 Oct 2020 11:16:18 +0300 Message-ID: <83362vhgh9.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> <83d020g84v.fsf@gnu.org> <664bed9f-bad0-7720-62b2-c8632869291a@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11247"; 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 Sat Oct 03 10:17:12 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 1kOcjA-0002ol-34 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 10:17:12 +0200 Original-Received: from localhost ([::1]:49564 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOcj9-0006eC-1G for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 04:17:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54120) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOcj0-0006dp-EO for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 04:17:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59641) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOcj0-0000PC-5A for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 04:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOcj0-00013g-16 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 04:17: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: Sat, 03 Oct 2020 08:17: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.16017129894029 (code B ref 43700); Sat, 03 Oct 2020 08:17:01 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 3 Oct 2020 08:16:29 +0000 Original-Received: from localhost ([127.0.0.1]:42954 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOciS-00012u-Mo for submit@debbugs.gnu.org; Sat, 03 Oct 2020 04:16:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47120) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOciR-00012f-0k for 43700@debbugs.gnu.org; Sat, 03 Oct 2020 04:16:27 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51586) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOciL-0000KW-Pi; Sat, 03 Oct 2020 04:16:21 -0400 Original-Received: from [176.228.60.248] (port=3774 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kOciJ-00026G-8E; Sat, 03 Oct 2020 04:16:21 -0400 In-Reply-To: <664bed9f-bad0-7720-62b2-c8632869291a@gmail.com> (message from Andy Moreton on Sat, 3 Oct 2020 00:07:11 +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:189689 Archived-At: > Cc: 43700@debbugs.gnu.org > From: Andy Moreton > Date: Sat, 3 Oct 2020 00:07:11 +0100 > > > 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. > > Yes: let me know what else you would like to look at. OK. x-create-frame in w32fns.c initializes the basic faces of the frame, here: /* Init faces first since we need the frame's column width/line height in various occasions. */ init_frame_faces (f); I suggest to put a breakpoint after that function returns, and when it breaks for the second frame you are creating, put a watchpoint on the frame's face cache, like this: (gdb) watch -l f->face_cache->used if f->face_cache->used == 0 Then produce a backtrace from any time this watchpoint fires. That should show us the culprit. Thanks.