Closed
Bug 969469
Opened 10 years ago
Closed 10 years ago
Don't spin event loop during interface gathering on Gonk/WebRTC
Categories
(Core :: WebRTC: Networking, defect)
Tracking
()
People
(Reporter: ekr, Assigned: kk1fff)
Details
Attachments
(1 file)
1.86 KB,
patch
|
bwc
:
review+
fabrice
:
approval-mozilla-b2g28+
|
Details | Diff | Splinter Review |
in gonk_addrs.c: // Get network interface list. std::vector<NetworkInterface> interfaces; if (NS_FAILED(NS_DispatchToMainThread( mozilla::WrapRunnableNMRet(&GetInterfaces, &interfaces, &rv), NS_DISPATCH_SYNC))) { return R_FAILED; } This will spin the STS event loop which creates reentrancy and we don't want it. Currently WebRTC is the only user of STS in content processes on gonk, so please replace with SyncRunnable. In future, we may consider rewriting this to pre-fetch the interface list asynchronously and make this fast.
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8377412 -
Flags: review?(ekr)
Comment 4•10 years ago
|
||
(In reply to Patrick Wang (Chih-Kai Wang) (:kk1fff) from comment #3) > based on comment 1, nominating 1.3?. What's the user impact for not doing this? What's the likelihood of this happening?
Reporter | ||
Comment 5•10 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #4) > (In reply to Patrick Wang (Chih-Kai Wang) (:kk1fff) from comment #3) > > based on comment 1, nominating 1.3?. > > What's the user impact for not doing this? Unknown behavior. > What's the likelihood of this > happening? Reasonably high. Patrick, I think this may actually have some modest compilation errors. Can you cleanup and do a try push?
Assignee | ||
Comment 6•10 years ago
|
||
I have pushed it to try: https://tbpl.mozilla.org/?tree=Try&rev=5b4e0eb4a4ec
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #4) > (In reply to Patrick Wang (Chih-Kai Wang) (:kk1fff) from comment #3) > > based on comment 1, nominating 1.3?. > > What's the user impact for not doing this? What's the likelihood of this > happening? This is fix of bug 966802 on WebRTC side. The stack overflow is from this nested event loop.
Updated•10 years ago
|
blocking-b2g: 1.3? → 1.3+
Reporter | ||
Comment 8•10 years ago
|
||
Comment on attachment 8377412 [details] [diff] [review] Use SyncRunnable to get local interface on gonk Review of attachment 8377412 [details] [diff] [review]: ----------------------------------------------------------------- I know this doesn't compile, cause I missed some includes. Patrick, can you fix this and bring it back for review?
Attachment #8377412 -
Flags: review?(ekr)
Assignee | ||
Comment 9•10 years ago
|
||
(In reply to Eric Rescorla (:ekr) from comment #8) > I know this doesn't compile, cause I missed some includes. I don't get compiling error in my local build. And try server builds this patch successfully. Maybe the header is included in other header. Which header should I include?
Reporter | ||
Comment 11•10 years ago
|
||
Comment on attachment 8377412 [details] [diff] [review] Use SyncRunnable to get local interface on gonk Review of attachment 8377412 [details] [diff] [review]: ----------------------------------------------------------------- Since I wrote this originally, asking Byron for review.
Attachment #8377412 -
Flags: review?(docfaraday)
Comment 12•10 years ago
|
||
Comment on attachment 8377412 [details] [diff] [review] Use SyncRunnable to get local interface on gonk Review of attachment 8377412 [details] [diff] [review]: ----------------------------------------------------------------- lgtm
Updated•10 years ago
|
Attachment #8377412 -
Flags: review?(docfaraday) → review+
Assignee | ||
Comment 13•10 years ago
|
||
https://hg.mozilla.org/integration/b2g-inbound/rev/25623a3aa663
Comment 14•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/25623a3aa663
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment 15•10 years ago
|
||
Please request approval-mozilla-b2g28 on this patch as 1.3 blockers no longer have auto-approval for uplift.
status-b2g-v1.3:
--- → affected
status-b2g-v1.4:
--- → fixed
status-firefox28:
--- → wontfix
status-firefox29:
--- → wontfix
status-firefox30:
--- → fixed
Flags: needinfo?(ekr) → needinfo?(pwang)
Assignee | ||
Comment 16•10 years ago
|
||
Comment on attachment 8377412 [details] [diff] [review] Use SyncRunnable to get local interface on gonk [Approval Request Comment] Bug caused by (feature/regressing bug #): bug 867933 User impact if declined: Can cause stack overflow, program behavior becomes undefined. Testing completed: Yes Risk to taking this patch (and alternatives if risky): Low String or UUID changes made by this patch:
Attachment #8377412 -
Flags: approval-mozilla-b2g28?
Flags: needinfo?(pwang)
Updated•10 years ago
|
Attachment #8377412 -
Flags: approval-mozilla-b2g28? → approval-mozilla-b2g28+
Updated•10 years ago
|
status-b2g-v1.3T:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•