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#70385: Crash in note_fringe_highlight Date: Mon, 15 Apr 2024 14:30:21 +0300 Message-ID: <86r0f6lv76.fsf@gnu.org> References: <86h6g49cdv.fsf@mail.linkov.net> <87jzkz1kdn.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4266"; mail-complaints-to="usenet@ciao.gmane.io" Cc: bjorn.bidar@thaodan.de, juri@linkov.net, 70385@debbugs.gnu.org, vekazanov@gmail.com To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Apr 15 13:31:12 2024 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 1rwKYK-0000vl-2V for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Apr 2024 13:31:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rwKY6-0001Ja-C4; Mon, 15 Apr 2024 07:30:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwKY2-0001JI-Vy for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 07:30:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwKY2-0003gE-MM for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 07:30:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rwKYE-00030z-34 for bug-gnu-emacs@gnu.org; Mon, 15 Apr 2024 07:31:06 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Apr 2024 11:31:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70385 X-GNU-PR-Package: emacs Original-Received: via spool by 70385-submit@debbugs.gnu.org id=B70385.171318065311079 (code B ref 70385); Mon, 15 Apr 2024 11:31:05 +0000 Original-Received: (at 70385) by debbugs.gnu.org; 15 Apr 2024 11:30:53 +0000 Original-Received: from localhost ([127.0.0.1]:37000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwKXx-0002pn-E4 for submit@debbugs.gnu.org; Mon, 15 Apr 2024 07:30:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35486) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwKXr-0002j8-MC for 70385@debbugs.gnu.org; Mon, 15 Apr 2024 07:30:47 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwKXa-0003X2-3a; Mon, 15 Apr 2024 07:30:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=apd1lbJiX6LyQKWUG9aWRwOOtpulL/LGNRaXXv32MIk=; b=CwlVtD7SZGcS4zEgkiCs 5MUzYJUcBDba1onVMFiPDGnLEBeK/9krQ9z4RfNOzF06kHQR7lZ9sjfqCf6brWeBTdtpaItT97tUi Id1P4xkxO+/H7G1dX32PGRiuDUpj9WrKVsJvKcO9wXuwjxKyxy4/sUbBOnyYwBqBGsA4w8GGjQza/ ZO6NoKVrJQFWoFJJO+ocRpwym2q3N5vnENX+ED4KRJauN/RuXJRHdf9d5qRklk886tuvoCbgjilAz xjEbwNGr095XHLegk3MASX0jSgpwmwbpgbwERCgmCWZ7c2G4qns86d4OJKsz1vDwP62XaG+q+AmWz zFi/U1RKVyF5Xg==; In-Reply-To: <87jzkz1kdn.fsf@yahoo.com> (bug-gnu-emacs@gnu.org) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283359 Archived-At: > Cc: vekazanov@gmail.com, 70385@debbugs.gnu.org, juri@linkov.net > Date: Mon, 15 Apr 2024 09:32:04 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Björn Bidar writes: > > > Björn Bidar via "Bug reports for GNU Emacs, the Swiss army knife of text > > editors" writes: > > > >>> Hi Juri, > >>> > >>> This must be related to the recent patch introducing the function. > >>> > >>> Can you reliably reproduce the crash? > >> > >> I have the same problem. I tried to replicate it with Emacs -Q but > >> it seems hard to do since it just happens at some point when using Emacs > >> and moving around between screens/virtual desktops. > > > > Actually I've found a way. > > 1. Open a file using a mode that uses fringe indicators such as flycheck > > 2. Point at the indicator > > 3. Crash > > > > Sometime not even that is needed. E.g. I was moving from the monitor > > that the frame is on which Gnus is inside where I'm writing this reply > > to my browser on the other monitor. > > Just a few seconds after I was on the the other monitor Emacs crashed. > > I think I've fixed this on master. Please test, thanks. Thanks. Any reason you didn't include w->window_end_valid in the condition, like we do for mouse-highlight? I'd like in general to have the same conditions, to avoid having people wonder what they miss when they read this code.