From unknown Mon Aug 11 21:13:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Reply-To: Sid , 2106@debbugs.gnu.org Resent-From: Sid Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 29 Jan 2009 16:20:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 2106 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123324552511186 (code B ref -1); Thu, 29 Jan 2009 16:20:03 +0000 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 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... From unknown Mon Aug 11 21:13:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Reply-To: Juanma Barranquero , 2106@debbugs.gnu.org Resent-From: Juanma Barranquero Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 30 Jan 2009 09:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2106 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2106-submit@emacsbugs.donarmstrong.com id=B2106.1233305599490 (code B ref 2106); Fri, 30 Jan 2009 09:00:03 +0000 Received: (at 2106) by emacsbugs.donarmstrong.com; 30 Jan 2009 08:53:19 +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=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0U8rFbJ000484 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 00:53:17 -0800 Received: by ewy3 with SMTP id 3so622573ewy.1 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 00:53:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=y11FoAk6Pz1aiJo1e+r7AYQ7cdCDmdFXkamgBaZutlY=; b=iPEU5O4/hmLnJAcIikDRcWyTig/ry2zRVw9Pj/WH/Z/WNBY9DBibGiAJH3xxhMVZYR l1rm/UBFJfTReYAgpXFaK6IX/yBCuEnvLxG/Wxj+ztSUZB0A9TxYXh5ZhKBylX+AJDQb tdN305xwOVAuuatNWlpU/IRw7VFpmhy86aapU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=W68/6Ndgu6WFjRvq/4h7wFmc8Xt91EdMACzrdhTurjfk6Q8ynPQpzj1ZaPXzkhDZKS MJduwCD+DixhboBo9QIldaJnbdr+6AUOk9pELVHZGROGKRgAhoy2NfEF+vTrCMOq1tYo rvFFgxsPow0rYdCIkNOgP1I3zGgBQVj+yyab0= MIME-Version: 1.0 Received: by 10.210.22.16 with SMTP id 16mr1108918ebv.66.1233305588318; Fri, 30 Jan 2009 00:53:08 -0800 (PST) In-Reply-To: References: Date: Fri, 30 Jan 2009 09:53:08 +0100 Message-ID: From: Juanma Barranquero To: Sid Cc: rfrancoise@debian.org, 2106@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Thu, Jan 29, 2009 at 15:48, Sid wrote: > 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. You don't even have to use which-function-mode. In your example, just move the point to the last line and type C-M-e (that's end-of-defun). It loops. Juanma From unknown Mon Aug 11 21:13:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Reply-To: BVK , 2106@debbugs.gnu.org Resent-From: BVK Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 30 Jan 2009 09:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2106 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2106-submit@emacsbugs.donarmstrong.com id=B2106.123330833111783 (code B ref 2106); Fri, 30 Jan 2009 09:45:03 +0000 Received: (at 2106) by emacsbugs.donarmstrong.com; 30 Jan 2009 09:38:51 +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=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.191]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0U9clMG011777 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 01:38:48 -0800 Received: by ti-out-0910.google.com with SMTP id b6so148652tic.1 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 01:38:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=p3otGGrDqotYWHckVbTXptFhoDvxIqNyDLVbJoK4qKw=; b=So4JkHzl/40+RssJFnCpqf/DSbILnJLEgrEFi98jOUrzUyuORczrb4JgSQ/NxcLdh1 D+CGi4YftnFzb2FdKZtFU0oUiQj7/2zKhWgIK72/KQxtNLw/V+tEkJmtFtrQ1hD+MRLb MDz7ORlldzOvGpRI8AaB9cbz6FFJG5l1pU860= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=t2kE+nj/qHGtJlA9A9/DCdrY9Y6yOkzRuC4RDqdD1dnBnqyUdT5LMAnBu1xK932OOQ 1O0EN+G88iUC+wTnQH5iqZZNxtJyr469/cYJhHe7nhYzG/nADku0OqTgrsEaV/pJMeiL cGPM8QWwMBCsTClbrdRqKL2miVti0N9uow4/Y= MIME-Version: 1.0 Received: by 10.110.11.7 with SMTP id 7mr708448tik.20.1233308326918; Fri, 30 Jan 2009 01:38:46 -0800 (PST) In-Reply-To: References: Date: Fri, 30 Jan 2009 15:08:46 +0530 Message-ID: From: BVK To: Juanma Barranquero Cc: rfrancoise@debian.org, 2106@debbugs.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Fri, Jan 30, 2009 at 2:23 PM, Juanma Barranquero wrote: > > You don't even have to use which-function-mode. In your example, just > move the point to the last line and type C-M-e (that's end-of-defun). > It loops. > OK, then it must be a bug in emacs 23 python mode? regards, -- bvk-chaitanya From unknown Mon Aug 11 21:13:10 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu Reply-To: Juanma Barranquero , 2106@debbugs.gnu.org Resent-From: Juanma Barranquero Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 30 Jan 2009 10:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 2106 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 2106-submit@emacsbugs.donarmstrong.com id=B2106.123330925615453 (code B ref 2106); Fri, 30 Jan 2009 10:00:03 +0000 Received: (at 2106) by emacsbugs.donarmstrong.com; 30 Jan 2009 09:54:16 +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=-2.0 required=4.0 tests=GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0U9sCqp015447 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 01:54:14 -0800 Received: by nf-out-0910.google.com with SMTP id 30so65786nfu.31 for <2106@emacsbugs.donarmstrong.com>; Fri, 30 Jan 2009 01:54:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=zYLBQdcGDqDxGoEzV8i1E4kS0DI8mS5Ti+doKsirOv0=; b=wIhpsa38LbHMQrRzAdJ/l4ndlargDLHjBG5LogyUZWOOJlbqDavD/o/5KFmC18Mc60 4B0XeMugR7b6oSRfUb5EEsocCq6vAluybvuZp4EQ2pU4Fp47jI150suC7LSvw0ls8lwU LVGdlrM+0YQrPkuugUnQaR3wBFfQSb2QPG6og= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=PdL0yGaQh6Em02O3CBxEn1tMTWgrOUh0ibk9DvfBTJHXAwfnW6UlCkcvzaCb3IwBbF vsB46NKuSLIJ13inYdahYke605BEl+/Ha8LiTYBD08q9HPfIn/imCIi+ro3fTI55jbnf 6fxHYVcVPyoYYUHyT+7zKqXwJiFMGo0tv7mCE= MIME-Version: 1.0 Received: by 10.210.125.13 with SMTP id x13mr1170038ebc.27.1233309251898; Fri, 30 Jan 2009 01:54:11 -0800 (PST) In-Reply-To: References: Date: Fri, 30 Jan 2009 10:54:11 +0100 Message-ID: From: Juanma Barranquero To: BVK Cc: rfrancoise@debian.org, 2106@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Fri, Jan 30, 2009 at 10:38, BVK wrote: > OK, then it must be a bug in emacs 23 python mode? Yes, definitely. It is looping in python-mode functions, and it doesn't happen in 22.X. Juanma From lekktu@gmail.com Fri Jan 30 02:00:20 2009 Received: (at control) by emacsbugs.donarmstrong.com; 30 Jan 2009 10:00:20 +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=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f10.google.com (mail-ew0-f10.google.com [209.85.219.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0UA0D8M017261 for ; Fri, 30 Jan 2009 02:00:14 -0800 Received: by ewy3 with SMTP id 3so671879ewy.1 for ; Fri, 30 Jan 2009 02:00:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=kUGzrjaD1CPCYs4riNFaNOcWHBqc8a8xAfM5lXH1r3k=; b=FeR88EVU7PGpRI8VtYoBokC+2Nw5FxwhWzMqWntyCiqKW5UP877GmHKB5afF/HabMU NIR3CsSPc1q07/djhzwWZ5x7oDOtMhAEcQ/JcvRq0aX5GJsbr+7VG/i8wo9QQ6H0/2im kDyNojAftwmkI71qEJUxYY5mvCaH9rofg5xNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=MgjhogojS9hLq99EyJo+/XBSMjvhy9D0TvA8ix5WNSJCWl1DEpKpNPJSH6/0UiGB4h REHAZXlmQ6ktKNHbeVkUIcQhd5t1oQRft3tV/inBblfdbUcvRs6k5oQHwlKBELge0+sV vsASIu+M5hndxGX8l+b7omiw2bzjao/h9wiao= MIME-Version: 1.0 Received: by 10.210.16.17 with SMTP id 17mr1127877ebp.181.1233309607364; Fri, 30 Jan 2009 02:00:07 -0800 (PST) Date: Fri, 30 Jan 2009 11:00:07 +0100 Message-ID: Subject: From: Juanma Barranquero To: control@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit reassign 2111 spam retitle 2106 end-of-defun loops on malformed python code reassign 2106 emacs,python quit From unknown Mon Aug 11 21:13:10 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Sid Subject: bug#2106 closed by Chong Yidong (Re: bug#2106: 23.0.60; which-function-mode locks up emacs 23 with 100% cpu) Message-ID: References: <87wscbtphy.fsf@cyd.mit.edu> X-Emacs-PR-Message: they-closed 2106 X-Emacs-PR-Package: emacs,python Reply-To: 2106@debbugs.gnu.org Date: Sat, 31 Jan 2009 16:30:05 +0000 Content-Type: multipart/mixed; boundary="----------=_1233419405-20273-1" This is a multi-part message in MIME format... ------------=_1233419405-20273-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" This is an automatic notification regarding your bug report which was filed against the emacs,python package: #2106: end-of-defun loops on malformed python code It has been closed by Chong Yidong . Their explanation is attached below along with your original report. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact Chong Yidong by replying to this email. --=20 2106: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D2106 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1233419405-20273-1 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@debbugs.gnu.org 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-1 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-1--