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: Tue, 29 Sep 2020 15:49:41 +0100 Message-ID: <6b20df65-0c09-f54c-1018-e95f7509aa75@gmail.com> References: <83y2ksk5sb.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="15775"; 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 Tue Sep 29 16:50:15 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 1kNGxL-0003yZ-8D for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 16:50:15 +0200 Original-Received: from localhost ([::1]:46202 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kNGxK-0002QF-8w for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Sep 2020 10:50:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32898) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kNGx8-0002Pw-EK for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:50:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45339) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kNGx8-00037N-4e for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kNGx8-00089Q-0Z for bug-gnu-emacs@gnu.org; Tue, 29 Sep 2020 10:50: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: Tue, 29 Sep 2020 14: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.160139099531308 (code B ref 43700); Tue, 29 Sep 2020 14:50:01 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 29 Sep 2020 14:49:55 +0000 Original-Received: from localhost ([127.0.0.1]:56884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNGx0-00088u-DY for submit@debbugs.gnu.org; Tue, 29 Sep 2020 10:49:55 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:54309) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kNGwy-00088a-2s for 43700@debbugs.gnu.org; Tue, 29 Sep 2020 10:49:53 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id s13so4897694wmh.4 for <43700@debbugs.gnu.org>; Tue, 29 Sep 2020 07:49:51 -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=aCErJVe3xnj8W4lGxPxKaG57lDRuDGNlkfa3ShHkt2I=; b=bzsiYmrXLWPk8Wsefmcn+oZP+uYZn1MmLeTqu1CqcJ+qKjwm5O5/qwQsct5jT5qGr9 kMU1A0czQE0qH5ECK2GCKCFni9qxramXs1FKcJ19notkBqE4XHPJ1LdL02XFkPAZmnm2 2No2jrQx07X7aNjIFSr8w7p8SGjCjcv0xBmtBdsGDV2CvoPT3SEQFkTBqcVoeeOO/QpK cvWlZyGXTZ8SnjCuvNEQYHTx9/C9TvzbnkOeF8nC65eSYQbKoirHmLiLIpEc4ydg6pIO RDgXHO7XHfgNayYJ08GOfs3T34fSKMI+CMtc3FQjdejjxr4uveywPNR4g2kz7vGExRuo EAgQ== 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=aCErJVe3xnj8W4lGxPxKaG57lDRuDGNlkfa3ShHkt2I=; b=dgtp+1QcbSZ7fDVlEYATia+hyZFBrj44nbv+CzFEt3NoCthENvosd6bRVakw/cy0ic xlmOlozuvm/UjVECWctiVzqwx09A56+IECG3f0Q4PgSKJPFXHCTKFtlej9J4QAM0/ou3 2A3+lYutwcCKkwaBip5+XWJY6YwDPP7n/GscIqEDOo3+1K5kdyT+MXlgEb3YOXnKEA3g tHUxf8Y6COUeElRvPG972oh6Z61sSfMDSyIV6JvUTBSXJ84wHthbZKba/HhsDaH6KQAw VX3PJKLyVimp/rT+MvghuZcmQumXHgD6z3fqEhiwZ7Ww/muPTMJFxhOuWq5BQniybp1a wgdQ== X-Gm-Message-State: AOAM5324qFA+q210iPx9TR11zEHXYROe3SOhtk595gSGDHW4J5zKE9UC sw1K4OIIE/RF3HAn/oy1NmaFJ6Geggs= X-Google-Smtp-Source: ABdhPJyDnW5Jx3WQMK03lGPkYYli8KnXJx151+JnUd9eOaqtr4tkvE6Q7O/vTmRZPTlpviS7YuDfzA== X-Received: by 2002:a7b:c14d:: with SMTP id z13mr4894365wmi.19.1601390985821; Tue, 29 Sep 2020 07:49:45 -0700 (PDT) Original-Received: from [192.168.0.4] (82-69-64-228.dsl.in-addr.zen.co.uk. [82.69.64.228]) by smtp.gmail.com with ESMTPSA id u186sm5880530wmu.34.2020.09.29.07.49.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2020 07:49:45 -0700 (PDT) In-Reply-To: <83y2ksk5sb.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:189268 Archived-At: On 29/09/2020 15:37, Eli Zaretskii wrote: >> 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? It is repeatable occasionally, but I don't yet have a recipe to reproduce it reliably. It doesn't seem to happen from "emacs -Q", or from emacs --no-desktop" but it may be that I have not tried enough times to trigger it. >> 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. Something is definitely fishy. Perhaps a full bootstrap might fix it. AndyM