Closed
Bug 67900
Opened 24 years ago
Closed 24 years ago
Tools->History crashes
Categories
(Core Graveyard :: RDF, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.8
People
(Reporter: jesup, Assigned: waterson)
Details
(Keywords: crash, Whiteboard: mlk, crash)
Attachments
(4 files)
12.83 KB,
text/plain
|
Details | |
1.28 KB,
patch
|
Details | Diff | Splinter Review | |
23.82 KB,
text/plain
|
Details | |
741 bytes,
patch
|
Details | Diff | Splinter Review |
FreeBSD 4.1. 20010206xx
Pull/build today. Also crashed on 1/31 build.
Select Tools->History. Boom. GDB trace to follow.
Reporter | ||
Comment 1•24 years ago
|
||
Reporter | ||
Comment 2•24 years ago
|
||
Crash, critical, mozilla0.8 (excuse me for giving it a milestone, it seemed
important to get this fixed for 0.8 and time is short), OS->All (from the error
it would appear to affect all OS's; not checked)
I have a work-around patch to fix this. There's a call in nsXULSortService.cpp:
gXULUtils->GetElementResource(child, &resource);
This call can fail, and now does. It then tries to use resource and Boom.
Workaround: check the result. (Patch to be attached) This doesn't solve the
fundamental problem of _why_ it fails. And the patch is VERY crude; I don't
understand the code here well enough to know if there's anything else that
should be done.
Changing to RDF; reassigning to RDF owner.
Assignee: alecf → waterson
Severity: normal → critical
Component: History: Global → RDF
OS: FreeBSD → All
QA Contact: claudius → tever
Target Milestone: --- → mozilla0.8
Reporter | ||
Comment 3•24 years ago
|
||
Reporter | ||
Comment 4•24 years ago
|
||
Reporter | ||
Comment 5•24 years ago
|
||
Chris - I also noted there seem to be serious weirdness going on in the History
window as I paged down - columns moving back and forth, etc, incomplete updates,
etc. I'm rebuilding a non-optimized build and will recheck. Also, my patch
might be screwing things up.
Comment 6•24 years ago
|
||
Randal, you can always use the milestone name as a keyword to nominate a bug,
and leave the Target Milestone setting to the bug's assignee. Not that waterson
minded, in this case, but it's better protocol in general.
/be
Reporter | ||
Comment 7•24 years ago
|
||
Sorry, mea culpa - the fact that 0.8 is coming so soon and a menu entry is
crashing had me worried.
Assignee | ||
Comment 8•24 years ago
|
||
rjesup: could you try this patch instead? I think it might be allright for
GetElementResource() to fail here, leaving the nsIRDFResource null. (I cannot
reproduce the crash, FWIW...)
Assignee | ||
Comment 9•24 years ago
|
||
Assignee | ||
Updated•24 years ago
|
Whiteboard: mlk, crash
Reporter | ||
Comment 10•24 years ago
|
||
I'll give it a try. I got the crash because the stack-garbage value I got was
usually 0x0a. If a NULL resource is valid; initializing it to NULL would work
as well.
Ok, fixed with that patch. Note that a bunch of other problems with RDF and
History still exist; I'll open another bug or 3.
Assignee | ||
Comment 11•24 years ago
|
||
rjesup, can I treat that as an `r='? alecf, could you sr=? cc'ing putterman, who
wrote this code originally (or, touched it last, anyway) so he gets a chance to
comment...
Status: NEW → ASSIGNED
Comment 12•24 years ago
|
||
looks ok to me. I assume there were no AddRefs or Releases in parts of the code
not in the diff.
Comment 13•24 years ago
|
||
fortunately, it wouldn't compile if there were other addref/releases
so sr=alecf! Let's get this puppy in.
Reporter | ||
Comment 14•24 years ago
|
||
Yes, that was r=jesup. (Hmm, didn't know I could 'r').
Assignee | ||
Comment 15•24 years ago
|
||
Fix checked in. Good find, rjesup!
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 16•24 years ago
|
||
Anyone can r=, although mozilla.org wants a module owner or peer (acting for
owner) to do so, in general. Extra r='s don't hurt, and may help (you're a peer
if you know the code well enough that people believe your comments).
/be
Updated•24 years ago
|
Keywords: mozilla0.8
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•