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: infinite loop with show-paren-mode turned on Date: Sun, 20 Jul 2003 00:29:06 -0700 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <4351.1058686146@chicory.stanford.edu> NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1058686213 4478 80.91.224.249 (20 Jul 2003 07:30:13 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 20 Jul 2003 07:30:13 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Jul 20 09:30:09 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 19e8e1-00019y-00 for ; Sun, 20 Jul 2003 09:30:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19e8u5-0003fM-00 for ; Sun, 20 Jul 2003 09:46:45 +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 19e8dc-00085q-4I for emacs-devel@quimby.gnus.org; Sun, 20 Jul 2003 03:29:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19e8dK-0007iN-6W for emacs-devel@gnu.org; Sun, 20 Jul 2003 03:29:26 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19e8dG-0007VC-Qo for emacs-devel@gnu.org; Sun, 20 Jul 2003 03:29:23 -0400 Original-Received: from smtp9.stanford.edu ([171.67.16.36]) by monty-python.gnu.org with esmtp (Exim 4.20) id 19e8dE-0007R3-2X for emacs-devel@gnu.org; Sun, 20 Jul 2003 03:29:20 -0400 Original-Received: from CS.Stanford.EDU (CS.Stanford.EDU [171.64.64.64]) by smtp9.Stanford.EDU (8.12.9/8.12.9) with ESMTP id h6K7TG1q002544 for ; Sun, 20 Jul 2003 00:29:16 -0700 (PDT) Original-Received: from mail by CS.Stanford.EDU with spam-scanned (Exim 4.20) id 19e8d8-0000Ue-IH for emacs-devel@gnu.org; Sun, 20 Jul 2003 00:29:16 -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 19e8d8-0000Ub-EV for emacs-devel@gnu.org; Sun, 20 Jul 2003 00:29:14 -0700 Original-Received: from troodon.stanford.edu (ev-01-st2435.Stanford.EDU [128.12.141.17]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by dwarka.stanford.edu (Postfix) with ESMTP id 35A579D12 for ; Sun, 20 Jul 2003 00:29:25 -0700 (PDT) Original-Received: from [127.0.0.1] (helo=chicory.stanford.edu) by troodon.stanford.edu with esmtp (Exim 4.12) id 19e8d0-00018C-00 for emacs-devel@gnu.org; Sun, 20 Jul 2003 00:29:06 -0700 Original-To: emacs-devel X-Mailer: MH-E 7.4.1+cvs; nmh 1.1; GNU Emacs 21.3.50.8 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEX77M3Vxru3uMi1o5eg gV2zsbu/vc1FPB0KOV84AAACLUlEQVR4nG2SQU/jQAyFHQVpr2NNBFcIS8/NeppeW421c6al OdMCua820vz9fU4TKCw+tMl8fn62MzQcLOqvcaC8wvnuP1BTWn17XtP+o9D9J3CR/wV81Pm5 +B4sjovT/DiWmkHPbT9GXT8A7PZTUn8B7t9B3y/6I68+ATmDHkD6KV5nxcneXlRncDwB+EnQ v0hazMCv6CHsJsWR/KzwGumh+lWfE48FzyDoQHWxm8AzvQNOAP4wK3gu9bbXFd15qac09tcT MI87GcEbBOwb/JtWALzEnT0bYLkG6Lq9wAMN7Do02HsJUdvX7rQKmvNAt2XsRiCqOvx+bfuD rlWzmbfw9F3TsI/tvuufAIYMhTRYt29Zogg/tbazFDKxVwMMoNLA3ua2Uii9BZCmCQZS298L zJW4iI0wjpwXWVba8JOGnM+l2MKRd65UjIlC8MAcyo0HcExUqTBXmtHVYzl4h4K+ERH4MNNN HgcsUB8CDgBRBhFN2TxuixBijCFYveYmW6sjeC7QEI0RtvBYlpPCFcvzMRUoXKkr/CihZTHl U5WzzUHUmAaJrrB0onXOG7RLZTKJgTU0P5aEeTdXecvh7EHFMsHlZkOSs7vKmzLlS7A2MKCB GL4FlLfnMT6DvwbSh0IvQIpB38E0hwEnWOhXUOU/rgAgZb8eyIct1su4B1hVuc5RcME0RaqS zuHoKmG7cME1oRK/w3i+JWwja4z2SYTsrqhY4GP5EMfHkOI/AHgDV1Ay2RUAAAAASUVORK5C YII= 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:15654 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15654 Emacs from CVS, updated about half an hour back, goes into an infinite loop if show-paren-mode is turned on. To reproduce this perform the following steps: (1) Start emacs with: emacs -q --no-site-file (2) In the running emacs do: M-: (show-paren-mode 1) RET M-x replace-string RET {} RET 0 RET M-x replace-string RET M-p M-p C-e At this point Emacs enters into an infinite loop. I ran it in gdb and the backtrace is attached at the end of the email. For me this is completely reproducable and happens both in X and in the terminal. Satyaki $ gdb ./emacs GNU gdb Red Hat Linux (5.3post-0.20021129.18rh) Copyright 2003 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux-gnu"... DISPLAY = :0.0 TERM = xterm Breakpoint 1 at 0x8103fda: file emacs.c, line 417. Breakpoint 2 at 0x80e679c: file xterm.c, line 7829. (gdb) run -q --no-site-file Starting program: /usr/local/garnome/emacs/src/emacs -q --no-site-file Program received signal SIGTSTP, Stopped (user). overlays_at (pos=18, extend=0, vec_ptr=0xbfffbdb4, len_ptr=0xbfffbdb8, next_ptr=0xbfffbdbc, prev_ptr=0x0, change_req=0) at buffer.c:2509 2509 startpos = OVERLAY_POSITION (start); (gdb) bt #0 overlays_at (pos=18, extend=0, vec_ptr=0xbfffbdb4, len_ptr=0xbfffbdb8, next_ptr=0xbfffbdbc, prev_ptr=0x0, change_req=0) at buffer.c:2509 #1 0x080de052 in face_at_buffer_position (w=0x856cef0, pos=18, region_beg=-1, region_end=-1, endptr=0xbfffbe58, limit=-1073758796, mouse=0) at xfaces.c:7232 #2 0x0809211a in handle_face_prop (it=0xbfffc1c0) at xdisp.c:2780 #3 0x08091c3a in handle_stop (it=0xbfffc1c0) at xdisp.c:2506 #4 0x0809584d in next_element_from_buffer (it=0xbfffc1c0) at xdisp.c:5318 #5 0x08094d30 in get_next_display_element (it=0xbfffc1c0) at xdisp.c:4670 #6 0x08095aab in move_it_in_display_line_to (it=0xbfffc1c0, to_charpos=19, to_x=-1, op=8) at xdisp.c:5485 #7 0x08095d88 in move_it_to (it=0xbfffc1c0, to_charpos=19, to_x=-1, to_y=-1, to_vpos=-1, op=8) at xdisp.c:5674 #8 0x08097f58 in resize_mini_window (w=0x856cef0, exact_p=0) at xdisp.c:7184 #9 0x0809bc6b in redisplay_internal (preserve_echo_area=1) at xdisp.c:9737 #10 0x08111d3e in detect_input_pending_run_timers (do_display=1) at keyboard.c:9913 #11 0x0818e05d in wait_reading_process_input (time_limit=30, microsecs=0, read_kbd=268435455, do_display=1) at process.c:4116 #12 0x080877d1 in sit_for (sec=30, usec=0, reading=1, display=1, initial_display=0) at dispnew.c:6247 #13 0x081096e2 in read_char (commandflag=1, nmaps=2, maps=0xbfffcc60, prev_event=405653084, used_mouse_menu=0xbfffcc98) at keyboard.c:2720 #14 0x0810fea1 in read_key_sequence (keybuf=0xbfffcdc0, bufsize=30, prompt=405653084, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:8825 #15 0x08106a47 in command_loop_1 () at keyboard.c:1504 #16 0x0815e5ea in internal_condition_case (bfun=0x81068c8 , handlers=405764172, hfun=0x81064b8 ) at eval.c:1333 #17 0x081067a2 in command_loop_2 () at keyboard.c:1292 #18 0x0815e189 in internal_catch (tag=138678008, func=0x8106784 , arg=405653084) at eval.c:1094 #19 0x0810670e in command_loop () at keyboard.c:1263 #20 0x08106294 in recursive_edit_1 () at keyboard.c:987 #21 0x08128580 in read_minibuf (map=1479440664, initial=405653084, prompt=1214949576, backup_n=0, expflag=0, histvar=407891996, histpos=0, defalt=405653084, allow_props=0, inherit_input_method=1) at minibuf.c:657 #22 0x08128dbe in Fread_from_minibuffer (prompt=945215604, initial_contents=405653084, keymap=1479440664, read=405653084, hist=407891996, default_value=405653084, inherit_input_method=405653132) at minibuf.c:942 #23 0x08160142 in Ffuncall (nargs=8, args=0xbfffd244) at eval.c:2740 #24 0x08187c24 in Fbyte_code (bytestr=407892044, vector=7, maxdepth=-1073753536) at bytecode.c:710 #25 0x081603ef in funcall_lambda (fun=1210590100, nargs=2, arg_vector=0xbfffd310) at eval.c:2911 #26 0x081602be in apply_lambda (fun=1210590100, args=405653084, eval_flag=1) at eval.c:2833 #27 0x0815f5ac in Feval (form=1210590100) at eval.c:2136 #28 0x0815deb1 in Flet (args=1479029468) at eval.c:920 #29 0x0815f89c in Feval (form=1210700392) at eval.c:2025 #30 0x0815ca48 in Fcall_interactively (function=407892428, record_flag=405653132, keys=1211033704) at callint.c:377 #31 0x08111702 in Fcommand_execute (cmd=407892428, record_flag=405653132, keys=405653084, special=405653084) at keyboard.c:9724 #32 0x08111a08 in Fexecute_extended_command (prefixarg=405653084) at keyboard.c:9835 #33 0x081600fe in Ffuncall (nargs=2, args=0xbfffd854) at eval.c:2724 #34 0x0815c084 in Fcall_interactively (function=405760580, record_flag=405653084, keys=1211033704) at callint.c:850 #35 0x08111702 in Fcommand_execute (cmd=405760580, record_flag=405653084, keys=405653084, special=405653084) at keyboard.c:9724 #36 0x08106c17 in command_loop_1 () at keyboard.c:1755 #37 0x0815e5ea in internal_condition_case (bfun=0x81068c8 , handlers=405764172, hfun=0x81064b8 ) at eval.c:1333 #38 0x081067a2 in command_loop_2 () at keyboard.c:1292 #39 0x0815e189 in internal_catch (tag=138678008, func=0x8106784 , arg=405653084) at eval.c:1094 #40 0x08106758 in command_loop () at keyboard.c:1271 #41 0x08106294 in recursive_edit_1 () at keyboard.c:987 #42 0x081063a4 in Frecursive_edit () at keyboard.c:1043 #43 0x08104cdb in main (argc=3, argv=0xbfffdfe4) at emacs.c:1666 #44 0x420156a4 in __libc_start_main () from /lib/tls/libc.so.6 (gdb)