Closed Bug 806822 Opened 12 years ago Closed 12 years ago

WebRTC possible data race with cprGetMessage vs. cprPegSendMessageStats

Categories

(Core :: WebRTC: Signaling, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: posidron, Assigned: jesup)

References

Details

(Whiteboard: [tsan] [WebRTC] [blocking-webrtc-] [qa-])

Attachments

(2 files)

Attached file callstack
media/webrtc/signaling/src/sipcc/cpr/linux/cpr_linux_ipc.c:505
    msgq->currentCount--;

media/webrtc/signaling/src/sipcc/cpr/linux/cpr_linux_ipc.c:729
        msgq->maxCount = msgq->currentCount;

This race was confirmed by race verifier.

Tested with m-c changeset: 111684:e19e170d2f6d
Whiteboard: [tsan] → [tsan] [WebRTC] [blocking-webrtc+]
This is a definite race but I am not sure how important this one might be.
Assignee: nobody → rjesup
True race, but non-problematic - at most the stats are wrong, and we ignore the stats.
Whiteboard: [tsan] [WebRTC] [blocking-webrtc+] → [tsan] [WebRTC] [blocking-webrtc-]
Attachment #690189 - Flags: review?(ethanhugg)
Comment on attachment 690189 [details] [diff] [review]
avoid race condition in gathering stats

Review of attachment 690189 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm.  Even though we don't currently take advantage of these stats, I'm hesitant take them out yet.
Attachment #690189 - Flags: review?(ethanhugg) → review+
https://hg.mozilla.org/mozilla-central/rev/13da8dc7b474
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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.

Attachment

General

Created:
Updated:
Size: