From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#2106: marked as done (end-of-defun loops on malformed python code) Date: Sat, 31 Jan 2009 16:30:05 +0000 Message-ID: References: <87wscbtphy.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1233419405-20273-0" X-Trace: ger.gmane.org 1233420245 16114 80.91.229.12 (31 Jan 2009 16:44:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 16:44:05 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 17:45:18 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LTIy3-00040Z-C9 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 17:45:15 +0100 Original-Received: from localhost ([127.0.0.1]:49672 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIwl-0007dg-04 for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 11:43:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTIwS-0007Q5-Bh for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:43:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTIwP-0007Ni-LP for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:43:35 -0500 Original-Received: from [199.232.76.173] (port=53760 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTIwP-0007Na-En for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:43:33 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33882) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LTIwO-0007in-Pe for bug-gnu-emacs@gnu.org; Sat, 31 Jan 2009 11:43:33 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0VGhUlj023730; Sat, 31 Jan 2009 08:43:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n0VGU5gT020403; Sat, 31 Jan 2009 08:30:05 -0800 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 2106 X-Emacs-PR-Package: emacs,python X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:24775 Archived-At: This is a multi-part message in MIME format... ------------=_1233419405-20273-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Sat, 31 Jan 2009 11:22:01 -0500 with message-id <87wscbtphy.fsf@cyd.mit.edu> and subject line Re: bug#2106: 23.0.60; which-function-mode locks up emacs = 23 with 100% cpu has caused the Emacs bug report #2106, regarding end-of-defun loops on malformed python code to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 2106: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D2106 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1233419405-20273-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 29 Jan 2009 16:12:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0TGC1K8011180 for ; Thu, 29 Jan 2009 08:12:02 -0800 Received: from mail.gnu.org ([199.232.76.166]:38798 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LSZTA-000427-60 for emacs-pretest-bug@gnu.org; Thu, 29 Jan 2009 11:10:20 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LSZUk-000767-TH for emacs-pretest-bug@gnu.org; Thu, 29 Jan 2009 11:12:00 -0500 Received: from wf-out-1314.google.com ([209.85.200.171]:28020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LSZUk-00075p-HI for emacs-pretest-bug@gnu.org; Thu, 29 Jan 2009 11:11:58 -0500 Received: by wf-out-1314.google.com with SMTP id 28so7563477wfc.24 for ; Thu, 29 Jan 2009 08:11:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:received:to:cc :subject:message-id:from:date; bh=nXcZgPnan95qcVV3TBtXeXrG9lphIHEGVOCDhIX9kPI=; b=AIONMgB1Bdzh05XNkXNe4qFYMM12K8SFNjxv5q8YBqJK3rjqmMsp3TAp3eoNMfPOjF J+yhUHODt2aKeUjQ40zEpRMFkbu6C9ALvfo5U4gMk76gtI3v6QuwqnOTrlGpqhAMDAtT EFBvxJkOzXXkJk/nOwi42t/DSqa9soeCA6eAs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=to:cc:subject:message-id:from:date; b=tdEo9W3g/M98xM9vvyiqYxMJxlQNVAbaNsG+YrHZMHhTsAnJioG4y4jIB5GktfVxuE Vtt/+s3PxEi7AZ2LRAnY0QkTkOkmAB5z83IJDRRN5N9cw0lFvbheJVQNXu2Qxh5/wjOI /F20JeXFflDL8aXli0vtve1Kh+7g0xYnwpElw= Received: by 10.142.80.7 with SMTP id d7mr83773wfb.64.1233245515342; Thu, 29 Jan 2009 08:11:55 -0800 (PST) Received: from debook.local ([122.167.21.236]) by mx.google.com with ESMTPS id 30sm6899392wfd.24.2009.01.29.08.11.51 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Jan 2009 08:11:54 -0800 (PST) Received: from sid by debook.local with local (Exim 4.69) (envelope-from ) id 1LSZUN-0008MA-1S; Thu, 29 Jan 2009 21:41:35 +0530 Received: from sid by debook with local (Exim 4.69) (envelope-from ) id 1LSYBo-0006q0-BL; Thu, 29 Jan 2009 20:18:20 +0530 To: emacs-pretest-bug@gnu.org CC: rfrancoise@debian.org Subject: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Message-Id: From: Sid Date: Thu, 29 Jan 2009 20:18:20 +0530 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) hi, I noticed that if i have which-function-mode enabled in my init script (~/.emacs) and i open any malformed python file it locks up the emacs window with 100% cpu utilization. Python file doesn't show up on the window and I have to cancel it by pressing C-g. If i had desktop-save-mode enabled too and i start emacs in daemon mode, I noticied that parent process simply waits for the child to complete (because desktop session had this malformed python file listed.) What is worse is, if i kill parent process using C-c, i get my terminal back, but the child continues to eat 100% cpu in the background :-( I found this with couple of days old CVS tree and also with emacs-snapshot package from http://emacs.orebokech.com/. Malformed python file content is: #!/usr/bin/env python from sqlalchemy import * from sqlalchemy.schema import * from sqlalchemy.orm import * class Person: pass mapper(Person, person_table, class Employee: pass thanks, bvk-chaitanya In GNU Emacs 23.0.60.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2009-01-27 on elegiac, modified by Debian (emacs-snapshot package, version 1:20090126-1) configured using `configure '--build' 'i486-linux-gnu' '--host' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/23.0.60/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.0.60/site-lisp:/usr/share/emacs/site-lisp' '--with-x=yes' '--with-x-toolkit=gtk' 'build_alias=i486-linux-gnu' 'host_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_IN value of $XMODIFIERS: nil locale-coding-system: iso-latin-1-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: which-function-mode: t tooltip-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t global-auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 3 5 ; 0 c C-x b C-g C-x C-f d b . TAB RET ESC O B ESC x r e c DEL p o TAB r t - e m TAB RET Recent messages: Skipping dictionaries-common setup for emacs-snapshot Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done Loading /etc/emacs/site-start.d/50festival.el (source)...done Loading /etc/emacs/site-start.d/50psvn.el (source)...done Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done Loading /etc/emacs/site-start.d/50ruby1.8-elisp.el (source)...done Loading /etc/emacs/site-start.d/50yaml-mode.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. Quit [2 times] Making completion list... ------------=_1233419405-20273-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 2106-done) by emacsbugs.donarmstrong.com; 31 Jan 2009 16:21:29 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0VGLQU8019015 for <2106-done@emacsbugs.donarmstrong.com>; Sat, 31 Jan 2009 08:21:27 -0800 Received: by cyd.mit.edu (Postfix, from userid 1000) id 66DCE57E1FC; Sat, 31 Jan 2009 11:22:01 -0500 (EST) From: Chong Yidong To: Sid Cc: Juanma Barranquero , 2106-done@emacsbugs.donarmstrong.com Subject: Re: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Date: Sat, 31 Jan 2009 11:22:01 -0500 Message-ID: <87wscbtphy.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii This was not a bug in Python; it was a bug in end-of-defun, which was "cleaned up" in Emacs 23. I've checked in a fix. ------------=_1233419405-20273-0--