From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Satyaki Das" Newsgroups: gmane.emacs.devel Subject: Re: infinite loop with show-paren-mode turned on Date: Mon, 21 Jul 2003 13:16:26 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <496.1058818586@chicory.stanford.edu> References: <4351.1058686146@chicory.stanford.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1058819912 3776 80.91.224.249 (21 Jul 2003 20:38:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2003 20:38:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 21 22:38:30 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 19ehPs-0000uk-00 for ; Mon, 21 Jul 2003 22:37:52 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19ehgg-00064i-00 for ; Mon, 21 Jul 2003 22:55:14 +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 19ehB6-0001ng-9O for emacs-devel@quimby.gnus.org; Mon, 21 Jul 2003 16:22:36 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19eh8z-0001OL-G7 for emacs-devel@gnu.org; Mon, 21 Jul 2003 16:20:25 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19eh61-0000X1-Nx for emacs-devel@gnu.org; Mon, 21 Jul 2003 16:17:22 -0400 Original-Received: from smtp2.stanford.edu ([171.64.14.116]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19eh5Q-0000Kv-Bk for emacs-devel@gnu.org; Mon, 21 Jul 2003 16:16:44 -0400 Original-Received: (from root@localhost) by smtp2.Stanford.EDU (8.12.9/8.12.9) id h6LKGbLu008370 for emacs-devel@gnu.org; Mon, 21 Jul 2003 13:16:37 -0700 (PDT) Original-Received: from CS.Stanford.EDU (CS.Stanford.EDU [171.64.64.64]) by smtp2.Stanford.EDU (8.12.9/8.12.9) with ESMTP id h6LKGWrH008315 for ; Mon, 21 Jul 2003 13:16:33 -0700 (PDT) Original-Received: from mail by CS.Stanford.EDU with spam-scanned (Exim 4.20) id 19eh5D-0000Az-Or for emacs-devel@gnu.org; Mon, 21 Jul 2003 13:16:32 -0700 Original-Received: from ev-01-st2435.stanford.edu ([128.12.141.17] helo=dwarka.stanford.edu) by CS.Stanford.EDU with esmtp (Exim 4.20) id 19eh5D-0000Aw-LS; Mon, 21 Jul 2003 13:16:31 -0700 Original-Received: from troodon.stanford.edu (troodon.Stanford.EDU [171.64.73.3]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by dwarka.stanford.edu (Postfix) with ESMTP id CA14F9D12; Mon, 21 Jul 2003 13:16:35 -0700 (PDT) Original-Received: from [127.0.0.1] (helo=chicory.stanford.edu) by troodon.stanford.edu with esmtp (Exim 4.12) id 19eh58-000082-00; Mon, 21 Jul 2003 13:16:26 -0700 Original-To: rms@gnu.org In-Reply-To: X-Mailer: MH-E 7.4.1+cvs; nmh 1.1; GNU Emacs 21.3.50.8 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEUUEQ1TRzb3+fMrJRo8 MiSIeV7n7+zT4uNPcTw+AAACLklEQVR4nHWSTW/bMAyGNci7m7O03H1IrwqoYlcTZNCz1mq5 B4h9XQ9J//5I1SnatSHiINHjl1+v3DiOc4uXj+HGK1m+AOO4/SRpYNtEyy3FfD58Bk1yijfA clOxuQHO8WX5CiyxHJbl2vYVbOel1BovVmp5D+b5udZaDvM13uY47avFJ7AAhKjg8B+Yn2KF Jrl8ANvnDGAA6uYNHBUsLDJAKErh8k5x90gQAgSoAPQqGd2aqIIBgEJNcmzghBQiSIUCpRKY ZDRwx0gQw1C1XWVRLivowQCFQlrEUm40kwGGtNNUMVAQrcUULg1sWdCLUBFBohgQ4KGB0yAT IkKg5HLYFybo/xj4Gzhl1AmDc10QTUf8W8H2ifV9zCK9cw5EWIBNcQ6MfvLeS+8xSWZm4gcF AFqBvUeZGPvMne8ELdV9DYIDZoZeci9iWvzRgKQVaCoKOWfGnwr2lZKfsPPQI7qdAmYxEGtO PrnOy+RQV9BpNfk1H92mYtKs2gC65HzSGjh8V6MMdNGsg6oOyiCc+FsDKXW6KnMJmrcwcXeY XSwevQ0vrNPrR2dHF2cHQfOi87aX5K5x/+LarSkl1pZGVoWGkFmqj/r9euXU+cFIB3prIVYq jHrtzPYgeo47uq+PiHsYUPTPkHIJU0uVd0WHRdCNIJJ2QeoEKoD4qFvhbE2h0QzSQCl25JP1 gt4oiZ7kK0ADvsly1t8d1RWkzr718Tu2AyqQ0/quM5nPWS34BwM/AinxBbu1AAAAAElFTkSu QmCC 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:15659 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15659 Richard Stallman writes: > 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: Program received signal SIGTSTP, Stopped (user). 0x080eaf02 in overlays_at (pos=18, extend=0, vec_ptr=0xbfffc924, len_ptr=0xbfffc928, next_ptr=0xbfffc92c, prev_ptr=0x0, change_req=0) at buffer.c:2509 2509 startpos = OVERLAY_POSITION (start); (gdb) print current_buffer->overlays_after $11 = (struct Lisp_Overlay *) 0x8458360 (gdb) print current_buffer->overlays_after->next $12 = (struct Lisp_Overlay *) 0x84583c4 (gdb) print current_buffer->overlays_after->next->next $13 = (struct Lisp_Overlay *) 0x8458360 (gdb) Satyaki