Closed
Bug 115105
Opened 24 years ago
Closed 24 years ago
crash dereferencing null for bad xbl
Categories
(Core :: XBL, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: timeless, Assigned: hyatt)
Details
(Keywords: crash)
Attachments
(1 file)
|
1016 bytes,
patch
|
bryner
:
review+
alecf
:
superreview+
|
Details | Diff | Splinter Review |
Core was generated by `mozilla-bin'.
Program terminated with signal 11, Segmentation fault.
#0 0x292f8a6d in nsBindingManager::RemoveXBLDocumentInfo (this=0x885f680, aDocumentInfo=0x0)
at /home/timeless/mozilla/content/xbl/src/nsBindingManager.cpp:971
971 aDocumentInfo->GetDocument(getter_AddRefs(doc));
(gdb) p aDocumentInfo
$1 = (nsIXBLDocumentInfo *) 0x0
(gdb) up
#1 0x292f3b3b in nsXBLService::LoadBindingDocumentInfo (this=0x822fc00, aBoundElement=0x885f2c0,
aBoundDocument=0x87f2000, aURLStr=@0xbfbfdcd0, aRef=@0xbfbfdc78, aForceSyncLoad=0, aResult=0xbfbfdc6c)
at /home/timeless/mozilla/content/xbl/src/nsXBLService.cpp:1150
1150 xblDocBindingManager->RemoveXBLDocumentInfo(info); // Break the self-imposed cycle.
(gdb) p info
$2 = {mRawPtr = 0x0}
(gdb) list
1145
1146 if (document) {
1147 nsCOMPtr<nsIBindingManager> xblDocBindingManager;
1148 document->GetBindingManager(getter_AddRefs(xblDocBindingManager));
1149 xblDocBindingManager->GetXBLDocumentInfo(aURLStr, getter_AddRefs(info));
1150 xblDocBindingManager->RemoveXBLDocumentInfo(info); // Break the self-imposed cycle.
1151
1152 if (!info) {
1153 NS_ERROR("An XBL file is malformed. Did you forget the XBL namespace on the bindings tag?");
1154 return NS_ERROR_FAILURE;
move line 1150 into the 1152 block.
Comment 2•24 years ago
|
||
Comment on attachment 61606 [details] [diff] [review]
don't break the cycle unles there's a cycle to break
r=bryner
Attachment #61606 -
Flags: review+
Comment 3•24 years ago
|
||
Comment on attachment 61606 [details] [diff] [review]
don't break the cycle unles there's a cycle to break
sr=alecf
Attachment #61606 -
Flags: superreview+
Updated•24 years ago
|
Severity: major → critical
Comment 4•24 years ago
|
||
This is fine for 0.9.7 too (as is bug 115124's patch, with a space around each
operator in the + lines as requested).
/be
Blocks: 114455
Keywords: mozilla0.9.7+
fix checked in
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•