all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 100% CPU usage in c-mode
@ 2003-03-15  7:58 Dennis Björklund
  0 siblings, 0 replies; only message in thread
From: Dennis Björklund @ 2003-03-15  7:58 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-03-15  7:58 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-15  7:58 100% CPU usage in c-mode Dennis Björklund

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.