After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 473123 - gedit crashes when writing <a href="
gedit crashes when writing <a href="
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: General
1.90.x
Other Linux
: Normal critical
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-03 11:05 UTC by Sebastien Bacher
Modified: 2007-09-03 14:32 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Sebastien Bacher 2007-09-03 11:05:06 UTC
The bug has been opened on https://bugs.launchpad.net/bugs/135702

"...
I am running gedit 2.19.91 whith gutsy gibbon.
When trying to write "<a href=" at line 105 of the attached file, the gedit screen becomes white and do not answer.

http://launchpadlibrarian.net/9051007/osm.html
osm.html  (3.3 KiB, text/html)
...
I experienced this behavior earlier when editing HTML files. I can reproduce the behavior when opening the provided osm.html file and adding <a href=" to line 105. To reproduce:

- Open a gedit window
- Copy the source code into the editor
- Enable HTML syntax coloring
- Scroll to line 105
- Add <a href="

After typing the ", gedit starts eating all the available RAM and causes my machine to start swapping. I tried to get a backtrace by using gdb, but I was not successful (it said "no stack" when I entered "backtrace full", and I'm not familiarized with the gdb).

Used packages:

[gerry@djax ~ ] dpkg -l | grep gedit
ii gedit 2.19.91-0ubuntu1 official text editor of the GNOME desktop en
ii gedit-common 2.19.91-0ubuntu1 official text editor of the GNOME desktop en
ii gedit-dbgsym 2.19.91-0ubuntu1 debug symbols for package gedit
..."
Comment 1 Yevgen Muntyan 2007-09-03 14:32:52 UTC
2007-09-03  Yevgen Muntyan  <muntyan@tamu.edu>

	* gtksourceview/gtksourcecontextengine.c (container_context_starts_here):
	Make sure it does not go into an infinite loop in case of zero-length
	match. Fixes #473123.