From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: infinite loop with show-paren-mode turned on Date: Mon, 21 Jul 2003 17:03:04 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200307212103.h6LL34hk023173@rum.cs.yale.edu> References: <4351.1058686146@chicory.stanford.edu> <496.1058818586@chicory.stanford.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1058822899 17396 80.91.224.249 (21 Jul 2003 21:28:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2003 21:28:19 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 21 23:28:16 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19eiAf-0004Nw-00 for ; Mon, 21 Jul 2003 23:26:13 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19eiRU-0006bo-00 for ; Mon, 21 Jul 2003 23:43:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ei5b-0008Qd-4V for emacs-devel@quimby.gnus.org; Mon, 21 Jul 2003 17:20:59 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19ehyG-0006Hr-SA for emacs-devel@gnu.org; Mon, 21 Jul 2003 17:13:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19ehut-0005c8-BK for emacs-devel@gnu.org; Mon, 21 Jul 2003 17:09:55 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19ehoH-0003VD-Cu; Mon, 21 Jul 2003 17:03:05 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h6LL344Z023175; Mon, 21 Jul 2003 17:03:04 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h6LL34hk023173; Mon, 21 Jul 2003 17:03:04 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: "Satyaki Das" X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15660 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15660 > > Can you please follow the suggestions in etc/DEBUG for how > > to debug an infinite loop? With that info we might make headway. > > OK, here is more info. I had actually done it earlier but forgot > to attach it to the last mail: > > The infinite loop is in the function overlays_at (in buffer.c line > 2432). The loop is the for loop starting on line 2501 (the second > for loop in the function) that starts with: > > for (tail = current_buffer->overlays_after; tail; tail = tail->next) > > The loop never terminates since current_buffer->overlays_after is > a circular link list as demonstrated by the following gdb snippet: Since I was the last to fiddle with the overlays_after list, I'm likely to be responsible for that. But I've missed the beginning of the thread. Do you have a recipe to reproduce the problem ? Also is it a new problem ? Can you try and see if the problem was due to the change that occured between 2003-07-08 and 2003-07-10 (I.e. can you reproduce it with the 2003-07-10 version of CVS and does it disappear with the version from 2003-07-08) ? Stefan