Closed
Bug 49678
Opened 26 years ago
Closed 26 years ago
[crash] various leaks in a big page
Categories
(Core :: Layout, defect, P1)
Tracking
()
M18
People
(Reporter: bernd_mozilla, Assigned: rickg)
References
()
Details
(Keywords: crash, perf, Whiteboard: [nsbeta3-][fix in hand][PDTP1])
Attachments
(4 files)
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [de]C-CCK-MCD QXW0321j (Win98; I)
BuildID: 2000081708
When I load the above noted URL. Nav4.6 takes 20 sec. to load the page, while
mozilla needs minutes and it leaks...
Reproducible: Always
Steps to Reproduce:
load the url
Actual Results: Mozilla eats all memory, while
Nav4.6 leaves 36. of working memory for ohter applications.
Expected Results: Mozilla should be thinner.
Comment 2•26 years ago
|
||
over to layout
Assignee: asa → clayton
Status: UNCONFIRMED → NEW
Component: Browser-General → Layout
Ever confirmed: true
QA Contact: doronr → petersen
I saw a much different set of leaks: loads of CParserNodes, CTokens, and
nsStrs, and almost nothing else. We have known problems with those...
But there's definitely a performance problem here! I'll jprof this in a
minute...
Keywords: perf
Performance is mostly spent in
nsInlineFrame::ReflowInlineFrame ---\
nsInlineFrame::ReflowFrames |
nsInlineFrame::Reflow |
nsLineLayout::ReflowFrame <---------/
This looks just like another bug I saw earlier today...
Comment 5•26 years ago
|
||
David, did you not see that mozilla becomes bigger and bigger in your
bloat_logs? At my machine it was huge (~60MB) and slow.
Here's what's going on:
The document is incredibly mal-formed. Unfortunately, it's mal-formed in a
common way, so we should do something about this. There are dup's of this bug
floating around.
The basic pattern for the problematic section of the document is this source:
<B><TR><TD><A>text</A></TD></TR><BR><B><BR>
This pattern is repeated hundreds (maybe thousands) of times. The <B> tags are
(properly) never closed. This leads to an absurdly deep content tree. Nav4 is
not effected by this because they maintain a separate style stack for inline
style tags, rather than a true content model. But we hang, or crash, depending
on your system's available memory.
I talked with Rick, and the solution is for the parser to detect the case where
we've built a content model that is too deep. At this point, the parser will
stop notfying the content sink, and we'll give up. This is the right thing to
do. It increases stability quite a bit, without adding extra complexity to our
system. The user will see part of the document appear immediately. It may not
be obvious to the end user why the document only partially shows up, but I think
we can live with that. In 6.01, we can enable Rick's document quality feature,
and provide feedback about what is wrong with the document source.
Rick actually already has a fix in hand for this, it was so trivial to do. I
suggest we go with this fix for nsbeta3, since we don't want to allow any
source, no matter how mal-formed, to hang/crash the browser.
Comment 10•26 years ago
|
||
Comment 11•26 years ago
|
||
| Assignee | ||
Comment 12•26 years ago
|
||
I have a fix for this, but I need nsbeta3+ status. Please consider.
Status: NEW → ASSIGNED
Whiteboard: [fix in hand] → nsbeta3+ [fix in hand]
Comment 13•26 years ago
|
||
*** Bug 49658 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 14•26 years ago
|
||
*** Bug 42138 has been marked as a duplicate of this bug. ***
Comment 15•26 years ago
|
||
rickg: could you attach the patch to the bug?
| Assignee | ||
Comment 16•26 years ago
|
||
This was checked in last week.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 17•26 years ago
|
||
With the Sept 11 Win32 build, the crash no longer occurs using the url specfied.
However, the mac Sept 11 build crashs when attempting to load this url. I would
like to see this addressed on the mac too. Changing platform to all and
reopening bug for this matter
Status: RESOLVED → REOPENED
OS: Windows 98 → All
Resolution: FIXED → ---
Comment 18•26 years ago
|
||
This problem is only occuring on the Mac. Linux and Win 98 build load the url
without crashing.
OS: All → Windows 98
Comment 19•26 years ago
|
||
could somebody with a mac debug build attach a stack trace? cc-ing some of my
fav Macheads...
Comment 20•26 years ago
|
||
It's likely that the Mac is crashing by blowing the stack, in which case you'll
be lucky to get a trace. I think there was another bug like this, can't find it
now.
Comment 21•26 years ago
|
||
I'm going to attach a stack trace taken with a build from Sunday night. It did
not crash into Macsbug but it was seemingly stuck into an infinite loop (no spare
time for devices). I only waited 20 seconds or so and then decided that if the
stack were to overflow, I'd better take a trace right away.
I truncated the stack trace after a few dozen lines that were repeating over and
over. It actually was *much* deeper than that. The machine did not crash but
stayed in a weird state. After a force-quit and a relaunch, it crashed in another
app and I had to reboot.
Comment 22•26 years ago
|
||
Comment 23•26 years ago
|
||
Maybe we need some stack depth protection for Mac? I had some coded up a one
point...
| Assignee | ||
Comment 24•26 years ago
|
||
We have stack depth protection, but its currently set to 150. I had
chrisPeterson do a test that showed the mac needed a setting of 80 or so. But I
havent acted on that as of yet. There was some concern about where this code
should go.
Comment 25•26 years ago
|
||
PDT agrees P1
Whiteboard: nsbeta3+ [fix in hand] → nsbeta3+ [fix in hand][PDTP1]
| Assignee | ||
Comment 26•26 years ago
|
||
Landed fix for windows. Waiting confirmation of the appropriate level for mac.
According to tests I did with ChrisPeterson, we think the level should be 80.
Status: REOPENED → ASSIGNED
Comment 27•26 years ago
|
||
PDT marking nsbeta3-, nominating for rtm.
Keywords: rtm
Whiteboard: nsbeta3+ [fix in hand][PDTP1] → nsbeta3- [fix in hand][PDTP1]
Comment 28•26 years ago
|
||
We should take this for RTM. Crasher on the Mac on a common kind of malformed
markup.
Whiteboard: nsbeta3- [fix in hand][PDTP1] → [nsbeta3-][fix in hand][PDTP1]
Comment 29•26 years ago
|
||
Requesting a triage on this bug. It's nominated but doesn't have a - or +. Are
we going to fix this for rtm ?
Comment 30•26 years ago
|
||
Mac stach depth protection was checked in yesterday by rickg, I think. Please
retest on the branch.
| Assignee | ||
Comment 31•26 years ago
|
||
Simon's right -- a change went in yesterday. This must be a dup that I failed to
mark as such. I'll mark it now as a dup of 55095.
*** This bug has been marked as a duplicate of 55095 ***
Status: ASSIGNED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → DUPLICATE
Comment 32•25 years ago
|
||
Verifying as a duplicate of 55095 - which is now fixed
'Stack overflow causes crash'
re-open bug 55095 if this error is spotted again.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•