Closed
Bug 793947
Opened 13 years ago
Closed 13 years ago
Race condition in dbg-server.js breaks Marionette
Categories
(DevTools :: Debugger, defect)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 18
People
(Reporter: jgriffin, Assigned: past)
References
Details
Attachments
(1 file, 1 obsolete file)
2.88 KB,
patch
|
msucan
:
review+
|
Details | Diff | Splinter Review |
There is a race condition in dbg-server.js that is causing Marionette to fail randomly with:
* Call to xpconnect wrapped JSObject produced this error: *
[Exception... "'[JavaScript Error: "this._allowConnection is not a function" {file: "chrome://global/content/devtools/dbg-server.js" line: 272}]' when calling method: [nsIServerSocketListener::onSocketAccepted]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "native frame :: <unknown filename> :: <TOP_LEVEL> :: line 0" data: yes]
In looking at this a bit, it appears that destroy() is being called before the socket is really closed (the socket will call onStopListening when it closes, which is currently a no-op in dbg-server.js), so there is a window of time when onSocketAccepted will accept a new connection, but this._allowConnection will have been nulled out by destroy().
This, combined with the patch from bug 792867 is breaking Marionette. There's a fix to the Marionette side of things in bug 793760, but this bug will need to be fixed as well in order to get Marionette operational again.
This is impacting several aspects of test automation for B2G.
Assignee | ||
Comment 1•13 years ago
|
||
I may have gone a bit too far while trying to avoid leaks. This patch removes the automatic shutdown of the server when the last connection is closed. I think we can live with this, since I still don;t get any mochitest leaks locally. If it doesn't cause any problems with the web console patch we can land it.
Try: https://tbpl.mozilla.org/?tree=Try&rev=fde4b21fd32c
Assignee | ||
Comment 2•13 years ago
|
||
Forgot to revert the xpcshell test change.
Attachment #664845 -
Attachment is obsolete: true
Attachment #664845 -
Flags: review?(mihai.sucan)
Attachment #664865 -
Flags: review?(mihai.sucan)
Comment 3•13 years ago
|
||
Comment on attachment 664865 [details] [diff] [review]
Patch v2
Review of attachment 664865 [details] [diff] [review]:
-----------------------------------------------------------------
Patch looks good and try runs with the web console remoting patches went well.
Attachment #664865 -
Flags: review?(mihai.sucan) → review+
Assignee | ||
Comment 4•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
Reporter | ||
Comment 5•13 years ago
|
||
Tim, could we get this merged into m-c soon? We really need this fix as soon as we can. Thanks!
Comment 6•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 18
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•