Closed Bug 448131 Opened 16 years ago Closed 16 years ago

crash with many css properties or declarations [@ nsStyleSet::AddImportantRules]

Categories

(Firefox :: General, defect)

x86
All
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 439184

People

(Reporter: lists, Unassigned)

Details

Attachments

(1 file)

339 bytes, text/html
Details
User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008070206 Firefox/3.0.1

crash with this simple html file:

#!/usr/bin/perl
use warnings;
use strict;

print   "<html><head><style type=\"text/css\">".
        "div {text-align: center;}"  x 65530 .
        "</style></head><body><div><p>test</p></div></body></html>";




Reproducible: Always

Steps to Reproduce:
1. create an html with the script
2. browse it
3. if on linux refresh or close the tab
Actual Results:  
crash/segfault

Expected Results:  
not crashed
Please provide a stacktrace, if you are using a Mozilla.org build then provide the crsh id from about:crashes.

Do you mean with html file the whole script (which is a script and not an html file) or only the html output of that script ?
(In reply to comment #1)
> Please provide a stacktrace, if you are using a Mozilla.org build then provide
> the crsh id from about:crashes.
> 
> Do you mean with html file the whole script (which is a script and not an html
> file) or only the html output of that script ?
> 

i mean the output of the script of course.
there's nothing in about:crashes and i can't build a debug version now, btw:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6e32730 (LWP 16091)]
0xb77a0edc in ?? () from /opt/firefox/libxul.so
(gdb) b
Breakpoint 1 at 0xb77a0edc
(gdb) bt
#0  0xb77a0edc in ?? () from /opt/firefox/libxul.so
#1  0x00000000 in ?? ()


feel free to try the script by yourself.

p.s.
if you are using a debug build you'll probably need to raise the moltiplier on the script.
Attached file Testcase
Let's use JavaScript, that's available to everyone...
bp-48e883d9-5b45-11dd-ab2f-0013211cbf8a
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
Summary: crash with many css properties or declarations → crash with many css properties or declarations [@ nsStyleSet::AddImportantRules]
verified dupe.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: