Closed Bug 174690 Opened 22 years ago Closed 3 years ago

Remove the content-depth-limiting code on Unix platforms

Categories

(Core :: DOM: HTML Parser, defect, P5)

x86
Linux
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bzbarsky, Unassigned)

Details

I was talking to Roland earlier today and he mentioned that we could use
"ulimit" in run-mozilla.sh to set the stack size to, essentially, 2GB on typical
Unix systems (32 bit, etc).  In particular,

ulimit -s unlimited

in run-mozilla.sh should do the trick.  The benefit is that we can probably stop
crippling the content model, which we do to avoid the stack-overflow issues in
layout....

So now we need to decide whether to do it.

Harish, I can't seem to locate the code that does this limiting.. Version 3.384
of nsHTMLContentSink.cpp has a checkin comment by you saying the code has moved
to the parser, but no bug# is included and there are no changes to CNavDTD.cpp
or nsParser.cpp around that date that seem immediately relevant...
But is it truly useful if pages with badly nested font tags are allowed to
consume a lot of memory?
Well... that's one aspect of it.  How much are we talking here?  iirc, we were
blowing out the stack with a few hundred kilobytes of stack-allocated data....
Check versions 3.309 and 3.360 of CNavDTD or search for MAX_REFLOW_DEPTH in CNavDTD.
Boris, is this something that you are still interested in? The fix would be
fairly simple if we wanted to do this.
I think it's still worth checking out, yes.  I guess one con is that it would
make rendering on Unix and Windows different...
Assignee: harishd → nobody
QA Contact: moied → parser

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5

The fix for bug 256180 is consistent across *nix and Windows.

Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.