Closed
Bug 806828
Opened 13 years ago
Closed 12 years ago
WebRTC possible data race with updateVidCapTbl vs gsmsdp_get_media_capability
Categories
(Core :: WebRTC: Signaling, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: posidron, Assigned: ehugg)
References
Details
(Whiteboard: [tsan] [WebRTC] [blocking-webrtc-] [qa-])
Attachments
(2 files)
|
1.83 KB,
text/plain
|
Details | |
|
5.14 KB,
patch
|
jesup
:
review+
|
Details | Diff | Splinter Review |
media/webrtc/signaling/src/sipcc/core/gsm/media_cap_tbl.c:72
// we can do native now enable cap
g_media_table.cap[CC_VIDEO_1].enabled = TRUE;
media/webrtc/signaling/src/sipcc/core/gsm/gsm_sdp.c:125
*(dcb_p->media_cap_tbl) = g_media_table;
Tested with m-c changeset: 111684:e19e170d2f6d
Updated•13 years ago
|
Whiteboard: [tsan] → [tsan] [WebRTC] [blocking-webrtc+]
| Reporter | ||
Comment 1•13 years ago
|
||
No locks involved; the TSan mode was pure-happens-before, false positive and/or the data race between 'g_media_table' is unimportant.
| Reporter | ||
Comment 3•12 years ago
|
||
Updated•12 years ago
|
Assignee: nobody → ethanhugg
Severity: major → normal
Priority: -- → P2
Whiteboard: [tsan] [WebRTC] [blocking-webrtc+] → [tsan] [WebRTC] [blocking-webrtc-]
| Assignee | ||
Comment 4•12 years ago
|
||
This is indeed a data race. Couldn't repro with TSan, but I can see it with the debugger. However those values set in media_cap_tbl.c:72 don't matter because they're reset 8 lines after the line listed in gsm_sdp.c since "if (sdpmode)" is always true. For example, I set the cap[CC_VIDEO_1].enabled = FALSE instead of TRUE and the video still works because it's being set again. So I don't think there's a danger here, but it does point to some cleanup needed.
| Assignee | ||
Comment 5•12 years ago
|
||
| Assignee | ||
Comment 6•12 years ago
|
||
Comment on attachment 709909 [details] [diff] [review]
Signaling - copy selectively from g_media_table on init
Review of attachment 709909 [details] [diff] [review]:
-----------------------------------------------------------------
This patch avoids the struct copy of g_media_table altogether when sdpmode is on which is always true in Firefox.
Attachment #709909 -
Flags: review?(rjesup)
Updated•12 years ago
|
Attachment #709909 -
Flags: review?(rjesup) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Comment 8•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
Updated•12 years ago
|
Whiteboard: [tsan] [WebRTC] [blocking-webrtc-] → [tsan] [WebRTC] [blocking-webrtc-] [qa-]
You need to log in
before you can comment on or make changes to this bug.
Description
•