From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Dennis_Bj=F6rklund?= Newsgroups: gmane.emacs.bugs Subject: 100% CPU usage in c-mode Date: Sat, 15 Mar 2003 08:58:16 +0100 (CET) Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: main.gmane.org 1047715294 26395 80.91.224.249 (15 Mar 2003 08:01:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 15 Mar 2003 08:01:34 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Sat Mar 15 09:01:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18u6bk-0006rQ-00 for ; Sat, 15 Mar 2003 09:01:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18u6Zq-0006zP-02 for gnu-bug-gnu-emacs@m.gmane.org; Sat, 15 Mar 2003 02:59:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18u6Yz-0004nX-00 for bug-gnu-emacs@gnu.org; Sat, 15 Mar 2003 02:58:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18u6Yi-0004Ku-00 for bug-gnu-emacs@gnu.org; Sat, 15 Mar 2003 02:58:25 -0500 Original-Received: from as2-4-3.an.g.bonet.se ([194.236.34.191] helo=zigo.dhs.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18u6Yc-0004BU-00 for bug-gnu-emacs@gnu.org; Sat, 15 Mar 2003 02:58:19 -0500 Original-Received: from localhost (db@localhost) by zigo.dhs.org (8.11.6/8.11.6) with ESMTP id h2F7wGV12559 for ; Sat, 15 Mar 2003 08:58:16 +0100 Original-To: bug-gnu-emacs@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4618 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4618 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2002-08-29 on astest configured using `configure --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --with-gcc --with-pop --with-sound' 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: sv_SE locale-coding-system: iso-latin-1 default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi! I use the emacs 21.2 that comes with rh8. Put the following c code in a .c file and load in emacs: -------------------------------- void f() { /* { { } */ } } int main() { g (); } --------------------------------- When I try to comment out the call to g in main(), then emacs freezes and uses 100% CPU. I guess it is some elisp code in c-mode having to do with matching parentheses or something. Comment out the line using // and it should trigger. I've also asked another person to reproduce it and it occurs on his system too. His system is: GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195) Hope this is enough for you to reproduce it. -- /Dennis