Closed Bug 250718 Opened 20 years ago Closed 20 years ago

HTML pages with certain special characters, like "<font size=12> &#151; </font>", freeze Mozilla.

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: karlhanf, Unassigned)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

HTML pages with the text "\227", or "<font size=12> &#151; </font>", freeze
Mozilla.  (Its X windows still exist, but their contents are never again redrawn.)
Cut and paste the next line and try viewing it; if you get a freeze too, you
have replicated the problem; if not, perhaps I have a font problem?  (I have no
other symptoms of font troubles.  I'm running RedHat 7.)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Example line of code:
<html> <body> \227 </body> </html>
Summary: HTML pages with certain special characters, like "\227", freeze Mozilla.or "<font size=12> &#151; </font>", freeze Mozilla. (Its X windows still exist, but their contents are never again redrawn.) → HTML pages with certain special characters, like "\227", freeze Mozilla.
I'm sorry, the "\227" does not freeze it, but this line definitely does:
<html> <body> <font size=12> &#151; </font> </body> </html>
Works fine for me with Linux. This may be a local issue or RedHat (i don't use
Redhat).

Reporter, post a stacktrace of the hang please.
Karl, what does "about:buildconfig" say?
Thanks for your attention!  I'm not enough of a programmer, perhaps, to know how
to get a stack trace.  But here is what "about:buildconfig" says:

Build platform
target
i686-pc-linux-gnu

Build tools
Compiler 	Version 	Compiler flags
gcc 	gcc version 3.2.3 	-Wall -W -Wno-unused -Wpointer-arith -Wcast-align
-Wno-long-long -pedantic -pthread -pipe
c++ 	gcc version 3.2.3 	-fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy
-Wno-non-virtual-dtor -Wno-long-long -pedantic -fshort-wchar -pthread -pipe
-I/usr/X11R6/include

Configure arguments
--disable-tests --enable-extensions=default,irc --without-system-nspr
--without-system-jpeg --without-system-zlib --without-system-png
--without-system-mng --disable-debug '--enable-optimize=-O2 -gstabs+'
--enable-crypto 
So a vanilla build.  Yeah, sounds like buggy fonts somewhere to me....
Are you using xinerama?  If you run 'top' in a terminal, what is at the top of
the process list?
I have a dual-head (2 monitor) Matrox video card, I use 2 monitors side by side,
and although I don't know what Xinerama is, I have this in my
/etc/X11/XF86Config-4 :

...
Section "ServerFlags"
        Option "Xinerama"
EndSection
...
Section "Files"
        RgbPath      "/usr/X11R6/lib/X11/rgb"
        FontPath     "unix/:7100"
EndSection
...

I don't quite know why you ask about top's output, but here is an example of the
first few processes:

> top
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  Command           
  875 root      15   0 99.2m  49m  52m S  0.3  9.7   8:21.26 X                 
14326 root      15   0  1776  936 1620 R  0.3  0.2   0:00.37 top               
    1 root      15   0  1320  492 1272 S  0.0  0.1   0:05.03 init              
...
Summary: HTML pages with certain special characters, like "\227", freeze Mozilla. → HTML pages with certain special characters, like "<font size=12> &#151; </font>", freeze Mozilla.
I think the distribution you're running is old enough where the bug with fonts
and xinerama still existed.  If you request some characters in some fonts the
application will hang.  You either need to upgrade your system or not use
xinerama.  I don't beleive that we have any kind of work-around for this problem.

You can see if this is the problem by disabling xinerama temporarily and seeing
if this problem still happens.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.