From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andy Moreton Newsgroups: gmane.emacs.bugs Subject: bug#43700: 28.0.50; Crash creating a second frame Date: Fri, 2 Oct 2020 01:38:25 +0100 Message-ID: <14da5210-bba0-9e33-65dc-a76e7f3878fe@gmail.com> References: <83y2ksk5sb.fsf@gnu.org> <6b20df65-0c09-f54c-1018-e95f7509aa75@gmail.com> <86tuvf6ndi.fsf@gmail.com> <83y2kqgl9a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19658"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 Cc: 43700@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 02 02:39:36 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 1kO96m-00050P-6d for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 02 Oct 2020 02:39:36 +0200 Original-Received: from localhost ([::1]:32782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kO96k-00075t-R4 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Oct 2020 20:39:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kO96I-00075R-79 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 20:39:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55438) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kO96E-0005hP-G0 for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 20:39:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kO96E-0004IS-BL for bug-gnu-emacs@gnu.org; Thu, 01 Oct 2020 20:39:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andy Moreton Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Oct 2020 00:39:02 +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.160159912116485 (code B ref 43700); Fri, 02 Oct 2020 00:39:02 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 2 Oct 2020 00:38:41 +0000 Original-Received: from localhost ([127.0.0.1]:38751 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO95s-0004Hp-Nn for submit@debbugs.gnu.org; Thu, 01 Oct 2020 20:38:40 -0400 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:35132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kO95n-0004HY-3L for 43700@debbugs.gnu.org; Thu, 01 Oct 2020 20:38:39 -0400 Original-Received: by mail-wm1-f45.google.com with SMTP id y15so490641wmi.0 for <43700@debbugs.gnu.org>; Thu, 01 Oct 2020 17:38:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=IbD1FV99JMkDc5RLZ5/9xt3vQjZISRhz5E0CXCBujM0=; b=smrzYOWJZW95w9428+pbvd90URyIEoIh+DEMUu9FzOSThjJSVqZOdUe4hlcWdGeC5O DdnnrGGedRQIz+5rMH7Kjhu0ep1MFEJXdgg1eZxlT/pl5vuNxPVxE0y0pz/LN0fa++LR a6kOJatsnvPEjwzbjQdKC0zIa4/TnIM/Ff9jvSyNhXMVI7T6x1J0RPujLt1HLLL/aTu/ 1PprBbUDaKP2CU2JzSVb1dnqDixw8KczaRFY852sp7Vy2mZ13jdtZ+y4dukWza7pP9R/ SFBDXL07KsrYVc0NW+o2j/gnmche+swyIZhAuYlda73EMKDe8za2A0yFSAJyQTl8OyMz fftA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=IbD1FV99JMkDc5RLZ5/9xt3vQjZISRhz5E0CXCBujM0=; b=chmMHImonQjohFeV75XMQS9qkyOhrxngQKZk4peqtRFDQLykrFEEHfWmWs77Ptlzyl etfGdw3/wmvvrKTZqk5bej/ZLGf8NmGCClU0i+ZRn+2knP7bRrxYY0tz0kMTruDiYq/I pmemYWJLP5UPROvsUV3eJHPfAxO+pRKPfjgNbfTnamwPzPyrcQQl+bIFC29NTnmIjlXq U0InVaMK1TsseHuEYlQi2yixx4+C43GSqXSF192wSA91iPYXfbYJZ54x0nQgo19ObOJQ toGgeR07r3tIhHpuNn0KXjp6i6EmJn0kEkqVqJPnSvkmdWxmNaOXktEYynB/yG+Q6IrV 0PcQ== X-Gm-Message-State: AOAM533aLgY5j68IYBpJPr47mIdBgaabkegyWq1K8XviTlgMcArgZWMX RwxMzM4cvXahX+M94F6xKtJw7Il/OYw= X-Google-Smtp-Source: ABdhPJzhsbc9Ym4jQ0Wl1aOaJWF0sLPmTXJ0vgdNw2IcCf6GOSAUYvQdcA39q6kwM1fFpI+wCiu4Ew== X-Received: by 2002:a1c:2dc6:: with SMTP id t189mr2649495wmt.92.1601599108665; Thu, 01 Oct 2020 17:38:28 -0700 (PDT) Original-Received: from [192.168.0.6] (82-69-64-228.dsl.in-addr.zen.co.uk. [82.69.64.228]) by smtp.gmail.com with ESMTPSA id q4sm11047292wru.65.2020.10.01.17.38.27 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 01 Oct 2020 17:38:28 -0700 (PDT) In-Reply-To: <83y2kqgl9a.fsf@gnu.org> Content-Language: en-GB 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:189602 Archived-At: 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. > If 'face' is a NULL pointer there (as your backtrace shows), the next > line will segfault, and the rest is more-or-less clear. What I don't > understand is this part: > >> #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. > Did you change anything in your development environment lately, like > installed a different version of the compiler or Binutils or the MinGW > runtime? MSYS2 is a rolling release distro, so the runtime, binutils and compiler are regularly updated. Currently that is gcc 10.2.0, and binutils 2.35, and msys2 runtime 3.1.7, all of which have been updated in recent weeks. AndyM