Closed
Bug 1009648
Opened 11 years ago
Closed 11 years ago
nsStandardURL crashes when calling SetHost after Clear()
Categories
(Core :: Networking, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: valentin, Assigned: valentin)
Details
Attachments
(2 files, 1 obsolete file)
|
7.03 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
|
3.29 KB,
patch
|
mcmanus
:
review+
|
Details | Diff | Splinter Review |
xpcshell-test in test_standardurl.js
function test_clearedSpec()
{
var url = stringToURL("http://example.com");
url.spec = "";
url.host = "example.com";
}
| Assignee | ||
Comment 1•11 years ago
|
||
This patch changes nsStandardURL so that when SetSpec fails, the old spec is restored and the url object is still valid.
Attachment #8424260 -
Flags: review?(mcmanus)
Updated•11 years ago
|
Attachment #8424260 -
Flags: review?(mcmanus) → review+
| Assignee | ||
Comment 2•11 years ago
|
||
This new patch creates a backup nsStandardURL which it uses to revert the URL in case SetSpec fails.
Unlike the previous patch, we don't call SetSpec again, so there's no chance of a stack overflow.
It it however a bit more complex than the old one.
Attachment #8470124 -
Flags: review?(mcmanus)
| Assignee | ||
Updated•11 years ago
|
Attachment #8424260 -
Attachment is obsolete: true
Comment 3•11 years ago
|
||
Comment on attachment 8470124 [details] [diff] [review]
nsStandardURL crashes when calling SetHost after Clear()
Review of attachment 8470124 [details] [diff] [review]:
-----------------------------------------------------------------
this is getting more exciting each time..
Attachment #8470124 -
Flags: review?(mcmanus) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=72db44f5f499
Try run is green.
| Assignee | ||
Updated•11 years ago
|
Keywords: checkin-needed
Comment 5•11 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Comment 6•11 years ago
|
||
Backed out for frequent Windows debug shutdown crashes.
https://hg.mozilla.org/integration/mozilla-inbound/rev/f9825adf25c5
https://tbpl.mozilla.org/php/getParsedLog.php?id=45590548&tree=Mozilla-Inbound
| Assignee | ||
Comment 7•11 years ago
|
||
We shouldn't add urls to gAllURLs if the URL is on the stack.
Not sure why this crash only happens on Windows. My guess is that there's a race between SetSpec and ShutdownGlobalObjects.
Attachment #8470436 -
Flags: review?(mcmanus)
| Assignee | ||
Comment 8•11 years ago
|
||
No more crashes it seems: https://tbpl.mozilla.org/?tree=Try&rev=27df696692e3
Updated•11 years ago
|
Attachment #8470436 -
Flags: review?(mcmanus) → review+
| Assignee | ||
Comment 9•11 years ago
|
||
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/f7ff242d4af8
https://hg.mozilla.org/mozilla-central/rev/ffe2d5537d2d
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in
before you can comment on or make changes to this bug.
Description
•