From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoffrey Prewett Newsgroups: gmane.emacs.bugs Subject: Emacs 22.1 hangs frequently Date: Wed, 06 Jun 2007 17:03:35 -0500 Message-ID: <46672F37.6040609@us.cd-adapco.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070607080705000204020307" X-Trace: sea.gmane.org 1181170206 22179 80.91.229.12 (6 Jun 2007 22:50:06 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 6 Jun 2007 22:50:06 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 07 00:50:04 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 1Hw4KJ-00025t-6j for geb-bug-gnu-emacs@m.gmane.org; Thu, 07 Jun 2007 00:50:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw4KI-0006n7-Hx for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Jun 2007 18:50:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hw3bw-00078L-W1 for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2007 18:04:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hw3bv-000789-U4 for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2007 18:04:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hw3bv-000786-Rn for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2007 18:04:11 -0400 Original-Received: from gatekeeper.adapco.com ([12.39.225.134]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Hw3bv-0002Rc-1l for bug-gnu-emacs@gnu.org; Wed, 06 Jun 2007 18:04:11 -0400 Original-Received: from [192.168.3.44] (xeona04.adapco.com [192.168.3.44]) by gatekeeper.adapco.com (8.13.8/8.13.8) with ESMTP id l56M4GZP009746 for ; Wed, 6 Jun 2007 18:04:17 -0400 (envelope-from geoffrey.prewett@us.cd-adapco.com) User-Agent: Thunderbird 1.5.0.10 (X11/20070221) X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Wed, 06 Jun 2007 18:50:00 -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:15769 Archived-At: This is a multi-part message in MIME format. --------------070607080705000204020307 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I downloaded and built Emacs 22.1 today from the source on the FSF FTP site. My machine is x86_64 RHEL4, dual Xeon with hyperthreading turned on (i.e. 4 CPUs visible to Linux). I compiled with --prefix= --with-gtk and CFLAGS set to "-O2". If I run with -q, Emacs will start up, but will often hang for quite a while (30 seconds) while typing text. The hang rails one of the CPUs. If I use my .emacs file it tends to hang while starting up, but never gets to the point of drawing itself. Further investigations suggest that it has something to do with how much history my shell has. If I start up a shell (tcsh) on my system, emacs will hang on startup. If I do `set history=1000`, it will start up fine. The output of `tcsh --version` is "tcsh 6.13.00 (Astron) 2004-05-19 (x86_64-unknown-linux) options 8b,nls,dl,al,kan,rh,color,dspm,filec". I have included the relevant shell files and env.txt, which is the output of `set` and `setenv` in a non-working shell. Thanks, Geoff Prewett ---- In GNU Emacs 22.1.2 (x86_64-unknown-linux-gnu, GTK+ Version 2.4.13) of 2007-06-06 on xeona04 Windowing system distributor `The X.Org Foundation', version 11.0.60801000 configured using `configure '--with-gtk' '--prefix=/u/xeona04/people/prewett/local' 'CFLAGS=-O2'' 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_US.UTF-8 locale-coding-system: utf-8 default-enable-multibyte-characters: t Major mode: Lisp Interaction 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 Recent input: M-x r e p o r t - e n a c s m a c s - b u g Recent messages: ("/u/xeona04/people/prewett/local/bin/emacs" "-q") For information about the GNU Project and its goals, type C-h C-p. [2 times] Loading emacsbug... Loading regexp-opt...done Loading emacsbug...done --------------070607080705000204020307 Content-Type: text/plain; name=".emacs" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=".emacs" ;; Customize face attributes (setq font-lock-face-attributes ;; Symbol-for-Face Foreground Background Bold Italic Underline '((font-lock-string-face "plum1") (font-lock-builtin-face "thistle1") (font-lock-comment-face "lime green") (font-lock-constant-face "wheat") (font-lock-function-name-face "white") (font-lock-keyword-face "wheat") (font-lock-type-face "deep sky blue") (font-lock-variable-name-face "pale turquoise") (font-lock-warning-face "black" "yellow") )) ;; Load the font-lock package. (require 'font-lock) ;; Maximum colors (setq font-lock-maximum-decoration t) ;; Set lazy-lock mode (fontifies only when not typing) with .3 sec refresh ;; time and no minimum buffer size ;; Lazy lock gives problems with Java files in RHEL4 ;(setq font-lock-support-mode 'lazy-lock-mode) (setq lazy-lock-continuity-time 0.3) (setq lazy-lock-minimum-size nil) ; Fontify small buffers (setq font-lock-maximum-size nil) ; Fontify huge buffers ;; Add fontification (font lock) only for files in c-mode ;;(add-hook 'c-mode-hook 'turn-on-font-lock) ;; Add fontification for everything that has it (global-font-lock-mode t) ;; Use my GDB, not the system one ;(setq gdb-command-name "/u/linux3/people/prewett/local/bin/gdb") ;;;;;;;;;;;;;;;;;; Display ;;;;;;;;;;;;;;;; ;; Set the text color. Note a given font face (e.g. default) has three ;; attributes set with three different functions: ;; background color (set-face-background face color) ;; foreground color (set-face-foreground face color) ;; font (set-face-font face font) (set-background-color "black") (set-foreground-color "grey") (set-default-font "-misc-fixed-medium-r-*-*-*-130-*-*-*-*-iso8859-1") ;(set-default-font "fixed") ; This is the xterm font, but it's harder to ; read in emacs than xterm for some reason (set-cursor-color "yellow") ;; Set tab stops to 4 characters ;(setq default-tab-width 4) ; Change CC-mode definition if this changes ;(setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80)) ;; Set Shift-TAB to insert a tab (global-set-key [S-iso-lefttab] '(lambda () (interactive) (insert-char ?\t 1))) ;(global-set-key [S-iso-lefttab] 'viper-insert-tab) ;; Show the time (display-time) ;; Show line numbers on status line (setq line-number-mode t) ;; Get a real title instead of the useless "emacs@hostname" (setq frame-title-format "Emacs: %f%& (%b)") ;; Turn off the toolbar in Emacs 21 ;(if (>= string-to-number(emacs-version) 21) ; (tool-bar-mode -1)) (cond ((fboundp 'tool-bar-mode) (tool-bar-mode -1))) ;; Much as I like the scrollbar, it still has the wierd middle mouse problem ;; and the grey is visually distracting from the black background (toggle-scroll-bar -1) ;; Set the default frame (window) size. ;; (The borders on the left and right collectively take up 1 extra width) (setq default-frame-alist '((width . 81) (height . 60))) ;; Turn on fancy GDB debugging ;(if (>= string-to-number(emacs-version) 22) ; (setq gdb-many-windows t)) (setq gdb-many-windows t) ;;;;;;;;;;;;;;;;;;; Programming Modes ;;;;;;;;;;;;;;;;;;;;;;;;;;; (setq auto-mode-alist (append '(("\\.C$" . c++-mode) ("\\.cc$" . c++-mode) ("\\.cxx$" . c++-mode) ("\\.cpp$" . c++-mode) ("\\.h$" . c++-mode) ("\\.H$" . c++-mode) ("\\.hpp$" . c++-mode) ("\\.hh$" . c++-mode) ("\\.c$" . c-mode) ("\\.m$" . objc-mode) ("\\.pm$" . perl-mode) ) auto-mode-alist)) (defun my-c-mode-common-hook () ;; my customizations for all of c-mode and related modes (c-set-style "stroustrup") ;; set auto cr mode ;; (c-toggle-auto-hungry-state t) ;; qt keywords and stuff ... ;; set up indenting correctly for new qt kewords (one line) (setq c-access-key "\\<\\(signals\\|public\\|protected\\|private\\|public slots\\|protected slots\\|private slots\\)\\>[ \t]*:") ;; modify the colour of slots to match public, private, etc ... (font-lock-add-keywords 'c++-mode '(("\\<\\(slots\\|signals\\)\\>" . font-lock-type-face))) ;; make new font for rest of qt keywords (make-face 'qt-keywords-face) (set-face-foreground 'qt-keywords-face "green") ;; qt keywords (font-lock-add-keywords 'c++-mode '(("\\" . 'qt-keywords-face))) (font-lock-add-keywords 'c++-mode '(("\\" . 'qt-keywords-face))) (font-lock-add-keywords 'c++-mode '(("\\