From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Basil L. Contovounesios" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#50571: 28.0.50; Redisplay segfaults with empty face cache Date: Sun, 19 Sep 2021 19:21:12 +0100 Message-ID: <87ilywjujr.fsf@tcd.ie> References: <87ilz4msha.fsf@tcd.ie> <831r5sea46.fsf@gnu.org> <87a6kggiz6.fsf@tcd.ie> <83bl4vcnsp.fsf@gnu.org> <83a6kfcmdk.fsf@gnu.org> <87y27zuek1.fsf@tcd.ie> <87v92wacsx.fsf@tcd.ie> <83ee9k4lez.fsf@gnu.org> Reply-To: "Basil L. Contovounesios" Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31098"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 50571@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Sep 19 20:22:10 2021 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 1mS1S6-0007t6-FW for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 20:22:10 +0200 Original-Received: from localhost ([::1]:44606 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mS1S4-0003yL-UO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Sep 2021 14:22:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57596) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mS1Ry-0003wZ-Ch for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 14:22:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56601) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mS1Ry-0003KU-4q for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 14:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mS1Ry-0005mI-0t for bug-gnu-emacs@gnu.org; Sun, 19 Sep 2021 14:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Basil L. Contovounesios" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Sep 2021 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50571 X-GNU-PR-Package: emacs Original-Received: via spool by 50571-submit@debbugs.gnu.org id=B50571.163207568322158 (code B ref 50571); Sun, 19 Sep 2021 18:22:01 +0000 Original-Received: (at 50571) by debbugs.gnu.org; 19 Sep 2021 18:21:23 +0000 Original-Received: from localhost ([127.0.0.1]:39914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS1RK-0005lF-Sz for submit@debbugs.gnu.org; Sun, 19 Sep 2021 14:21:23 -0400 Original-Received: from mail-wr1-f46.google.com ([209.85.221.46]:35692) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mS1RI-0005kh-A4 for 50571@debbugs.gnu.org; Sun, 19 Sep 2021 14:21:21 -0400 Original-Received: by mail-wr1-f46.google.com with SMTP id i23so24654411wrb.2 for <50571@debbugs.gnu.org>; Sun, 19 Sep 2021 11:21:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=wrVE0oziy9DQhScP7Ta26KMEjfZOoAqJ4EJ+BW0iViM=; b=VWCz3/u7UXgXa1M0/B16SphqqdewR2w2ri9jllwY6WSToMSzGEV6ddXHFbp9zScGoP jw5OC4HIZt/g2GRDreGpyaXSnYA2s9IIb2F5gAFglZwHFgC+P4gMrTP8CfLpBsZSBfPB 5EpGGL2gCIato1CRFzT++lI+6QGeJCzDiGa99Y8TL9jXuGyGvnZc5vyaRsf4fN2a63Eu Rpj89uvo6oWt5KgJKFfDrP4Llc6l8IVSlzwLnzcaGxNyFfEhi80dI+m9szyILkyjWVls y9r4JDhOTQ/Do/deLFP5o3Lvrp5VN3uYLeyAP+taZwDtq1vlJO2e5QqoK5SDy5U94RmK wppw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=wrVE0oziy9DQhScP7Ta26KMEjfZOoAqJ4EJ+BW0iViM=; b=aWJHqD8n4yBuKJBUQw/FZ3sqfp3WU4TrWX2cpY1vzJO6ioJL202DNn48ydg51bli2n pPYRy4IWx79VUTHsQvA43Du8DbzXxSBNlpSebt3su4IgyJ/WZzZ2+iijXc9tdLi3hcsU QmKU/6w45j1rEBmo2W0ykrNR34oYlMlw8n0P8sGQ9/mxIp3acK1Xdmi0640nCkZnX+EY VbbkmeCRounl4M6HDFr7yZ7ANqky6NoUX8CaM2MPfZi/ge+3dTMZlYf5nP4C9TGz/ty4 VBVWpmzqXufpTgr37E+xaeKkUIFPEoKXl8iynftuNn/pmoRoGBRrlUYp2yF8gj6DOFH/ EncQ== X-Gm-Message-State: AOAM530vnfFb3QqNOC/6UiVr5dg9eQqe5N8LDHWCHJS0EwQ1GfRze98R 4A7+ujKUyymWbTdSi27eTf1vTA== X-Google-Smtp-Source: ABdhPJxuOVoScZDd/uG8pJHtuO+1HgVRmFCDXBP/6ABVNW15ye8PzByy4gbVg9MLYr5czCyCvNrYIA== X-Received: by 2002:a05:6000:168b:: with SMTP id y11mr19656897wrd.350.1632075674351; Sun, 19 Sep 2021 11:21:14 -0700 (PDT) Original-Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id x13sm13407659wrg.62.2021.09.19.11.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Sep 2021 11:21:13 -0700 (PDT) In-Reply-To: <83ee9k4lez.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 19 Sep 2021 18:47:32 +0300") 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:214779 Archived-At: Eli Zaretskii [2021-09-19 18:47 +0300] wrote: >> From: "Basil L. Contovounesios" >> Cc: 50571@debbugs.gnu.org >> Date: Sun, 19 Sep 2021 14:57:02 +0100 >> >> Unfortunately I found another hole that needs plugging, but fortunately >> I can reliably reproduce it with the following site-specific steps: >> >> 0. emacs >> 1. C-x p p (project-switch-project) >> 2. Select a checkout of https://github.com/abo-abo/swiper, >> using Ivy completion. >> 3. f (project-find-file) >> 4. ivy.el RET >> 5. C-s (isearch-forward) >> 6. C-g >> 7. M-s s (counsel-grep-or-swiper) >> 8. #[[:digit:]] >> >> This brings a bug-reference-bug-regexp match onto screen, which again >> triggers a frame creation via bug-reference's call to display-warning. >> >> The attached GDB log shows where the relevant frame's face cache is >> cleared right before the crash (search for 'New value = 0'), at which >> point f->inhibit_clear_image_cache is false. > > Thanks for the data. I guess this is a preview of how allowing > arbitrary Lisp that affects the display in fontification-functions > will keep shooting in the foot, time and again. For that there's M-x kevlar-feet-mode of course, though I'm not sure it's GPL-compatible. > Please try the patch below. It seems to relieve the pain in my feet, thank you very much! -- Basil