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

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

hang during font-lock-fontify on c++ file


From: David W. Funk
Subject: hang during font-lock-fontify on c++ file
Date: 31 Mar 2005 15:23:04 -0800

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 (i386-redhat-linux-gnu, X toolkit, Xaw3d scroll
bars)
 of 2003-02-19 on porky.devel.redhat.com
configured using `configure  --host=i386-redhat-linux
--build=i386-redhat-linux --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: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

I start emacs from bash shell, like:
emacs fh23g.cpp &

Emacs starts ok, but after a minute or two it hangs.
Does NOT respond to C-g or anything else.
NO keyboard input is required. My .emacs is set to enable the
font-lock-fontify stuff automatically on C and C++ files.

This same file causes the same hang with Windows 
  emacs 21.3.1 (i386-mingw-nt5.2.3790) of 2004-3-10 on NYAUMO
also on a co-workers redhat linux with emacs v21.3.1

If font-lock is turned OFF --> NO problem (no hang)

The file fh23g.cpp will not compile do to many errors.
I found that line #1457 has an unbalanced ")" that seems to be causing
the problem.

    this_view.addNew(PR_ASSOC_CONTENT_COUNT, (unsigned32) 4), row,
true); // 0x367

changing "4)," to "4," stops the hang.
File fh23gx.cpp has the correction.
If the lines are removed from the problem file, emacs will not hang. So
there is something about the total file that is causing the problem.
I initially found the hang in a much larger file. The fh23g.cpp is
almost as small a possible to cause the "hang" bug.

Problem file fh23g.cpp and corrected file fh23gx.cpp in attached zip.

David W. Funk

P.S.
  The fontify stuff does not handle large sections (multiple functions)
that are commented out with /*....*/

Attachment: emacs_bugfiles.zip
Description: Zip archive


reply via email to

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