Closed
Bug 53358
Opened 25 years ago
Closed 25 years ago
[FIX IN HAND] crash in FindPreviousAnonymousSibling (nsCSSFrameConstructor.cpp)
Categories
(Core :: Layout, defect, P1)
Core
Layout
Tracking
()
VERIFIED
FIXED
People
(Reporter: Bienvenu, Assigned: attinasi)
References
Details
(Keywords: crash, Whiteboard: [nsbeta3++][PDTP1])
Attachments
(3 files)
|
1.48 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.59 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.95 KB,
patch
|
Details | Diff | Splinter Review |
I crash in FindPreviousAnonymousSibling (nsCSSFrameConstructor.cpp) occasionally
when selecting the subject text frame after entering an e-mail address, because
xblDoc is null. I don't know why xblDoc is null, but checking for null fixes the
crash, and if I continue in the debugger, I don't run into any more problems.
I'll attach the proposed fix next.
| Reporter | ||
Comment 1•25 years ago
|
||
| Reporter | ||
Comment 2•25 years ago
|
||
rods says this is marc's area, and that waterson and steve would be doing code
review, so reassigning and cc'ing as appropriate.
Assignee: clayton → attinasi
| Assignee | ||
Comment 3•25 years ago
|
||
I cannot reproduce the problem, and I've been using Netscape6 Mail and Mozilla
Mail exclusively for days now...
The fix looks good, however, and I can see no reason to NOT check for null. In
fact, I'd check for null on the doc too, before the QI for xblDoc, since it is
not guaranteed that the aContainer content will have a doc (or if it is, then at
least assert it).
Accepting: hopefully this can be reproduced, but if not, the code cleanup patch
is good anyway (safer).
Status: NEW → ASSIGNED
Target Milestone: --- → M19
| Reporter | ||
Comment 4•25 years ago
|
||
It's not easy to recreate - I suspect it is partly caused by the address
completion widget trying to pop up at the wrong time. The larger your history
address book is, the slower this will be. If you've only been running for a few
days, your history address book will be puny :-) I've seen this crash in talback
logs, so other people have seen this.
without knowing the code, it seems odd that your patch returns null in the first
case if the xbldoc is null, and in the second case you don't return. cvs blame
points to hyatt for this code. run it by him, and if it's ok with him, r=buster.
| Assignee | ||
Comment 6•25 years ago
|
||
Updating some keyword fields to get this on the nsbeta3 radar
| Assignee | ||
Comment 7•25 years ago
|
||
I think that either case will return null, the first one returns null directly,
and the second causes the bulk of the method to be skipped and nextSibling is
returned, which will be the initial value of null.
It would probably be best to do the same fix in both cases, and I prefer the
second approach. I'll attach another patch that treats the two cases the same,
and also checks for a null document.
| Assignee | ||
Comment 8•25 years ago
|
||
| Reporter | ||
Comment 9•25 years ago
|
||
Steve, I don't need to return in the second case because nodeList will remain
null, and we'll fall through to the end of the routine.
Comment 10•25 years ago
|
||
It seems very odd that the document would be null. It shouldn't be possible for
us to notify the front end about an element that isn't even in the document. I
think there's a deeper problem here. The null checks are great and will bypass
the crash, but I'm a bit concerned about how we got into this situation in the
first place.
Comment 11•25 years ago
|
||
Could this be related to joki's hover stuff? It also causes a crash in which
there's an element with no document. He has an nsbeta3+ bug on this: crash in
mailcompose.
Comment 12•25 years ago
|
||
hyatt: how about we check in the patch as a stability enhancement, but leave
this bug open to find out how we got the null document. If that research points
towards joki's bug, great. But if not, we'll have this to track the issue. If
it's useful, the patch could be augmented by adding asserts when we get a null
xbl doc. If it can't be null, the assert should be there anyway.
Comment 13•25 years ago
|
||
This sounds great to me. For reference, joki's bug is 53219. It looks
suspiciously similar to me.
| Assignee | ||
Comment 14•25 years ago
|
||
Yea, bug 53219 sure looks like the same problem. Marking dependent, but still
want to check in this patch (actually, a new one with assertions - coming).
Depends on: 53219
| Assignee | ||
Comment 15•25 years ago
|
||
Comment 16•25 years ago
|
||
*** Bug 53408 has been marked as a duplicate of this bug. ***
Comment 19•25 years ago
|
||
a=buster
Comment 20•25 years ago
|
||
*** Bug 54039 has been marked as a duplicate of this bug. ***
Comment 22•25 years ago
|
||
marking nsbeta3++ per email with pdt.
Whiteboard: [nsbeta3+][PDTP1] → [nsbeta3++][PDTP1]
| Assignee | ||
Comment 23•25 years ago
|
||
OK - I'll be checking it in on the branch as soon as my branch-build is done and
the tree is open.
Updated•25 years ago
|
OS: Windows NT → All
Hardware: PC → All
Comment 24•25 years ago
|
||
*** Bug 53851 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 25•25 years ago
|
||
Fix checked into branch.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 26•25 years ago
|
||
Checked into trunk too, for good measure.
Comment 27•25 years ago
|
||
great! I'll try out for mail in tomorrow's build.
Comment 28•25 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•