Closed Bug 49678 Opened 26 years ago Closed 26 years ago

[crash] various leaks in a big page

Categories

(Core :: Layout, defect, P1)

x86
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 55095

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.
Attached file bloat log —
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...
David, did you not see that mozilla becomes bigger and bigger in your bloat_logs? At my machine it was huge (~60MB) and slow.
Dividing up claytons bugs to triage.
Assignee: clayton → kmcclusk
Reassigning to buster for performance issue.
Assignee: kmcclusk → buster
bring it!
Status: NEW → ASSIGNED
Priority: P3 → P1
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.
Assignee: buster → rickg
Severity: normal → critical
Status: ASSIGNED → NEW
Keywords: crash, nsbeta3
Summary: [MLK] various leaks in a big page → [crash] various leaks in a big page
Whiteboard: [fix in hand]
Target Milestone: --- → M18
I have a fix for this, but I need nsbeta3+ status. Please consider.
Status: NEW → ASSIGNED
Whiteboard: [fix in hand] → nsbeta3+ [fix in hand]
*** Bug 49658 has been marked as a duplicate of this bug. ***
*** Bug 42138 has been marked as a duplicate of this bug. ***
rickg: could you attach the patch to the bug?
This was checked in last week.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
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 → ---
This problem is only occuring on the Mac. Linux and Win 98 build load the url without crashing.
OS: All → Windows 98
could somebody with a mac debug build attach a stack trace? cc-ing some of my fav Macheads...
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.
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.
Attached file stack trace on Mac —
Maybe we need some stack depth protection for Mac? I had some coded up a one point...
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.
PDT agrees P1
Whiteboard: nsbeta3+ [fix in hand] → nsbeta3+ [fix in hand][PDTP1]
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
PDT marking nsbeta3-, nominating for rtm.
Keywords: rtm
Whiteboard: nsbeta3+ [fix in hand][PDTP1] → nsbeta3- [fix in hand][PDTP1]
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]
Requesting a triage on this bug. It's nominated but doesn't have a - or +. Are we going to fix this for rtm ?
Mac stach depth protection was checked in yesterday by rickg, I think. Please retest on the branch.
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
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.

Attachment

General

Creator:
Created:
Updated:
Size: