bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

100% CPU usage in c-mode


From: Dennis Björklund
Subject: 100% CPU usage in c-mode
Date: Sat, 15 Mar 2003 08:58:16 +0100 (CET)

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 address@hidden 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]