From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David L" Newsgroups: gmane.emacs.bugs Subject: emacs 22.1 hogging CPU Date: Mon, 18 Jun 2007 11:04:19 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-Trace: sea.gmane.org 1182195959 15942 80.91.229.12 (18 Jun 2007 19:45:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 18 Jun 2007 19:45:59 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 18 21:45:56 2007 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 1I0NAf-0008EY-1A for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jun 2007 21:45:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0NAe-0003uB-G3 for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Jun 2007 15:45:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I0LaV-0005Vg-2O for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2007 14:04:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I0LaU-0005VU-83 for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2007 14:04:26 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I0LaU-0005VR-5C for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2007 14:04:26 -0400 Original-Received: from bay0-omc3-s10.bay0.hotmail.com ([65.54.246.210]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I0LaT-0004J2-J4 for bug-gnu-emacs@gnu.org; Mon, 18 Jun 2007 14:04:25 -0400 Original-Received: from hotmail.com ([65.55.155.109]) by BAY0-OMC3-S10.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Mon, 18 Jun 2007 11:04:24 -0700 Original-Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 18 Jun 2007 11:04:24 -0700 Original-Received: from 65.55.155.123 by by144fd.bay144.hotmail.msn.com with HTTP; Mon, 18 Jun 2007 18:04:19 GMT X-Originating-IP: [64.169.29.2] X-Originating-Email: [idht4n@hotmail.com] X-Sender: idht4n@hotmail.com X-OriginalArrivalTime: 18 Jun 2007 18:04:24.0150 (UTC) FILETIME=[1A576760:01C7B1D3] X-detected-kernel: Windows 2000 SP4, XP SP1+ X-Mailman-Approved-At: Mon, 18 Jun 2007 15:45:33 -0400 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:15943 Archived-At: I started emacs like this: emacs -l shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.nep2 -f nep-build-and-load-tags -title "fc6debug1_1t gtkview" For several minutes after I started it, emacs was using between 10% and 40% of a 3GHz P4. This problem is either new with the 22.1 release or is much worse now. I don't know how to profile emacs to tell what's using the CPU, but emacs appears to be doing nothing at the time except waiting for user input... the building and loading of etags had long since finished. The contents of the gtkview.nep2 file looked like this: (defconst nep-project-name "shared/sw/gvu/bin/fc6debug1_1t/gtkview.nep" "Define the full name of this project file relative to the CVS root level") (defconst nep-build-dir "shared/sw/gvu/src" "Defines the build directory relative to the CVS root level") (defconst nep-bin-dir "shared/sw/gvu/src/../bin" "Defines the bin directory relative to the CVS root level") (defconst nep-exec-root "gtkview" "Defines the DL-style executable root name") (defconst nep-build-script "./buildgtkview" "Defines the DL-style buildscript") (defconst nep-build-target "fc6debug1_1t" "Defines the DL-style target") (defun nep-debug-project () (interactive) (gdb "gdb -cd=/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src --annotate=3 /projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview")) (defconst nep-tags-file-name "/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.etags") (defconst nep-cvsrootlevel "/projects/ct/team/dl/tim/svncvs/trunk") (defconst nep-current-project "/projects/ct/team/dl/tim/svncvs/trunk/shared/sw/gvu/src/../bin/fc6debug1_1t/gtkview.el") (defconst nep-current-project-makefile "shared/sw/gvu/src/makefile.gtkview") The function nep-build-and-load-tags looks like this: ;; function called when using the "emacs" target (defun nep-build-and-load-tags () (add-hook 'compilation-finish-functions 'nep-load-tags-after-compile) (nep-build-etags) (visit-tags-table nep-tags-file-name) (find-tag "main") ) The function nep-build-etags looks like this: (defun nep-build-etags () (interactive) (compile (concat "cd " nep-cvsrootlevel "/" nep-build-dir "; " nep-build-script " " nep-build-target " etags")) ) The problem seems to be intermittent. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/22.1/etc/DEBUG for instructions. In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.10.8) of 2007-06-18 on chewbacca.x.com Windowing system distributor `The X.Org Foundation', version 11.0.70101000 configured using `configure '--with-x-toolkit=gtk'' 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: nil locale-coding-system: nil default-enable-multibyte-characters: t Major mode: C++/l Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t line-number-mode: t abbrev-mode: t Recent input: Recent messages: Loading cc-mode...done Loading /home/dl/ecb/semantic-1.4.4/semantic-c.el (source)...done Loading vc-svn...done Loading vc...done Mark set (iconify-frame (#)) (make-frame-visible (#)) (iconify-frame (#)) (make-frame-visible (#)) Loading emacsbug...done _________________________________________________________________ Like puzzles? Play free games & earn great prizes. Play Clink now. http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2