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#58158: 29.0.50; [overlay] Interval tree iteration considered harmful Date: Thu, 29 Sep 2022 12:37:15 +0300 Message-ID: <831qruh67o.fsf@gnu.org> References: <83h70qhez0.fsf@gnu.org> <83edvuhaby.fsf@gnu.org> 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="12225"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58158@debbugs.gnu.org, monnier@iro.umontreal.ca To: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 29 12:07:07 2022 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 1odqRf-00030b-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 12:07:07 +0200 Original-Received: from localhost ([::1]:47044 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odqRe-0003Rl-2I for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 29 Sep 2022 06:07:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47234) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpzW-0001xj-LX for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 05:38:10 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36940) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odpzW-0002or-Bp for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 05:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odpzW-0006Hy-3n for bug-gnu-emacs@gnu.org; Thu, 29 Sep 2022 05:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 29 Sep 2022 09:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58158 X-GNU-PR-Package: emacs Original-Received: via spool by 58158-submit@debbugs.gnu.org id=B58158.166444424724131 (code B ref 58158); Thu, 29 Sep 2022 09:38:02 +0000 Original-Received: (at 58158) by debbugs.gnu.org; 29 Sep 2022 09:37:27 +0000 Original-Received: from localhost ([127.0.0.1]:36018 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpyw-0006H9-Qw for submit@debbugs.gnu.org; Thu, 29 Sep 2022 05:37:27 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:60850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odpyu-0006Gu-BD for 58158@debbugs.gnu.org; Thu, 29 Sep 2022 05:37:26 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39876) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpyo-0002bY-Fk; Thu, 29 Sep 2022 05:37:18 -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=PpYU7aXZxOGsI1VjjQP2jB2NxL8XXYfo4LBwh+dPuKA=; b=OL3j6juozg5FG41f8bg3 ExFVwK3TvVJ0wurqjavM7M149Nm8bqlLYPQgCZEki00ca+FrjheCLQWMAod5xdpVlGKvIhZcT6uja tyi3C8OZUhYt1EVq1npXTTX8ycDrOK2ZH7RfjRYOZZCxLFP3JG97UmAUv8hlc2CpB5Qqvu9a3FgdX mdIyUvf8/h57pVx7HL2Pd6QvVOUpRT+xLofz2SCRlMZHIBD1UM9P4VOUF0rO/loFHYhJlwrDOVC+U RsbuHTin2fCVe94r3TRJZsxBJiPQFbECJ1tqITPRuYpd25ZQ5/k3VYM6fCga0dlsXuh2y+oNlOtu7 PIZaAkimOOP7eQ==; Original-Received: from [87.69.77.57] (port=2316 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odpyn-0007W6-SX; Thu, 29 Sep 2022 05:37:18 -0400 In-Reply-To: (message from Gerd =?UTF-8?Q?M=C3=B6llmann?= on Thu, 29 Sep 2022 11:09:17 +0200) 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:243885 Archived-At: > From: Gerd Möllmann > Cc: Stefan Monnier , 58158@debbugs.gnu.org > Date: Thu, 29 Sep 2022 11:09:17 +0200 > > I think it simply can't be that what is basically walking a binary tree > requires such restrictions. And if it does because of some quirk of the > interval tree in itree.c, something is seriously wrong with the design. > > That's a bit harsh, but I mean it :-). Fair enough. Can you propose a fix? I guess the begin_iteration/end_iteration dance is because the tree could be in inconsistent state in-between? If so, what would it take to avoid the inconsistency?