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: Sat, 3 Oct 2020 14:40:47 +0100 Message-ID: <9902f5c5-ca88-4e70-a436-f8f471f723f7@gmail.com> 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> <83362vhgh9.fsf@gnu.org> <572e3be7-6f96-90f3-192d-fa0b51f85218@gmail.com> <83o8ljfpfg.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="29545"; 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 Sat Oct 03 15:41:11 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 1kOhmg-0007Yg-Hc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 15:41:10 +0200 Original-Received: from localhost ([::1]:59532 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kOhmf-00086m-Ch for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Oct 2020 09:41:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kOhmY-00086f-Q5 for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 09:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kOhmY-00013S-Fd for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 09:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kOhmY-0002Xm-DE for bug-gnu-emacs@gnu.org; Sat, 03 Oct 2020 09:41: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: Sat, 03 Oct 2020 13:41: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.16017324589762 (code B ref 43700); Sat, 03 Oct 2020 13:41:02 +0000 Original-Received: (at 43700) by debbugs.gnu.org; 3 Oct 2020 13:40:58 +0000 Original-Received: from localhost ([127.0.0.1]:43159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOhmU-0002XN-3K for submit@debbugs.gnu.org; Sat, 03 Oct 2020 09:40:58 -0400 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:52566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kOhmS-0002X9-2C for 43700@debbugs.gnu.org; Sat, 03 Oct 2020 09:40:56 -0400 Original-Received: by mail-wm1-f41.google.com with SMTP id q9so4290428wmj.2 for <43700@debbugs.gnu.org>; Sat, 03 Oct 2020 06:40:55 -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=t0eSgYhgdiSzWH34Nkcm8EjUdYiIryCrS8TtdHMCipg=; b=ElG/7kMuOi7Q5NRIJsWXo1gdKMJOVpSzc8RTwJhM6ddCBKTAgqWCGni9dJmjyQJoSA 5i5pRB1G+s9JXB14WQXBDxmkFc42phQOlYBD4bKkvEcR7JkKckyvmL0XQAbKu2Nkitqb heaAhNpIfm7nC/pPoy7/l5uwGaIGKs1XLAwHGuTbO4cN2glYbAkFCzZZ/vgy6zahTlNn ye3wwSB34hp7Jpx0GS2GryobloBf0vPaQhBpsQJ9+hw0MKVKydh0iHOQAgQH0G62WIUS CyVSOsKn4g9mdd8Z1jODEPMap5syciCZjY6vRxd4abFqbHswJnCvBKgJszwCcDDEwM84 k2/A== 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=t0eSgYhgdiSzWH34Nkcm8EjUdYiIryCrS8TtdHMCipg=; b=lTIkRgzhNM7ZeuU4kciMv2mL04S7tvojL0skcOS6tncX5OY9IuPi9PjMDlVvurmEEH wkTGvk043VfxqXfViOfxvcYVFWHe4WB/sKjkccjwzPolWI3JWa/cgeRh58IVG8i/mlM+ BCTXaLcb4+497BTa7kx5NBQyZQ7tM9K9EwJ6Avwp3zSQ2s9wI0bVDhQjAdIxqWpJiKeD yvFJfKqN4djq+pY29ITz/KY2IuKlSIjhJ5Q0xUubgUmXhLBvbGDXcgIACOpd355qcSiz VLB340Lubwm2dCCTqeULHZXf8FB5SGT5G+cwJgtTybrElEMgfEBNIYGRG15DDdqLdLB5 tWiA== X-Gm-Message-State: AOAM5330CJrn/FCAd9dU4G2d5Pzo4QPJoEMziKgyxshkqk8g+W4u1er8 YBN5jpF1yUxB3R0wN6j4v0diC7OdOfk= X-Google-Smtp-Source: ABdhPJweyo2fOvkxRmNNYiWIiFTvZEwajmxVAz6Mx6LP/o2u7heDmkSJHm2OxNEFyv80Gd5NsdheJQ== X-Received: by 2002:a1c:1f08:: with SMTP id f8mr7828291wmf.168.1601732449902; Sat, 03 Oct 2020 06:40:49 -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 v4sm5325561wmg.35.2020.10.03.06.40.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 03 Oct 2020 06:40:49 -0700 (PDT) In-Reply-To: <83o8ljfpfg.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:189695 Archived-At: On 03/10/2020 13:45, Eli Zaretskii wrote: >> Cc: 43700@debbugs.gnu.org >> From: Andy Moreton >> Date: Sat, 3 Oct 2020 13:26:09 +0100 >> >>> (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. >> >> The watchpoint does not fire before the segfault, so there is clearly >> something wrong with gdb on this platform :-( > > Does the watchpoint fire if you remove the condition? IOW, do this: > > (gdb) watch -l f->face_cache->used > > If this works, then you should see also the events where faces are > added, which will show the 'used' count go up. No - watchpoints seem to be completely broken in this build of gdb: hardware watchpoints don't work, and if software watchpoints work then I do not have the patience to wait for hours for them to fire. > Another possibility is that the face cache gets reset not for the new > frame being created, but for the other frame. You can tell by > comparing the value of 'f' at the point where init_frame_faces is > called and at the segfault point. If this is what happens, then we > will need a slightly more sophisticated method of setting the > watchpoint. True, but not much use without working watchpoints. AndyM