all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hang during font-lock-fontify on c++ file
@ 2005-03-31 23:23 David W. Funk
  0 siblings, 0 replies; only message in thread
From: David W. Funk @ 2005-03-31 23:23 UTC (permalink / raw)
  Cc: dwfunk

[-- Attachment #1: Type: text/plain, Size: 2534 bytes --]

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 #2: emacs_bugfiles.zip --]
[-- Type: application/zip, Size: 27211 bytes --]

[-- Attachment #3: Type: text/plain, Size: 149 bytes --]

_______________________________________________
Bug-gnu-emacs mailing list
Bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs

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

only message in thread, other threads:[~2005-03-31 23:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-31 23:23 hang during font-lock-fontify on c++ file David W. Funk

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.