Closed Bug 1746917 Opened 3 years ago Closed 3 years ago

Clean up locking in MediaTrackGraph

Categories

(Core :: Audio/Video: MediaStreamGraph, defect)

defect

Tracking

()

RESOLVED FIXED
97 Branch
Tracking Status
firefox-esr91 --- wontfix
firefox95 --- wontfix
firefox96 --- wontfix
firefox97 --- fixed

People

(Reporter: jesup, Assigned: jesup)

References

(Blocks 1 open bug)

Details

(Keywords: csectype-race, sec-moderate, Whiteboard: [post-critsmash-triage][adv-main97+r])

Attachments

(1 file)

MediaTrackGraph doesn't take locks when accessing some members for debug messages or assertions. Not an issue in the field normally, but good to clean up and lets us do static analysis of locking

Also, one member is accessed for deciding an early return without locking.

Assignee: nobody → rjesup
Status: NEW → ASSIGNED

Landed: https://hg.mozilla.org/integration/autoland/rev/68d37cc2dbf3b411bef44d8eaf5a2cb3bc2772d5

Backed out for build bustage in MediaTrackGraph.h:

https://hg.mozilla.org/integration/autoland/rev/94b76fa487b3c0db8ac6aa2048f70b39de7e1c32

Push with failures: https://treeherder.mozilla.org/jobs?repo=autoland&group_state=expanded&selectedTaskRun=To06SJmcT6mdC5f3cuoZEQ.0&resultStatus=retry%2Ctestfailed%2Cbusted%2Cexception%2Cusercancel&revision=68d37cc2dbf3b411bef44d8eaf5a2cb3bc2772d5
Failure log: https://treeherder.mozilla.org/logviewer?job_id=362893778&repo=autoland

[task 2022-01-03T15:16:59.519Z] 15:16:59    ERROR -  /builds/worker/workspace/obj-build/dist/include/MediaTrackGraph.h:704:20: error: expected ';' at end of declaration list
[task 2022-01-03T15:16:59.519Z] 15:16:59     INFO -    Mutex& GetMutex() RETURN_CAPABILITY(mMutex) { return mMutex; }
[task 2022-01-03T15:16:59.519Z] 15:16:59     INFO -                     ^
[task 2022-01-03T15:16:59.520Z] 15:16:59     INFO -                     ;
Flags: needinfo?(rjesup)
Severity: -- → S4
Group: media-core-security → core-security-release
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 97 Branch
Flags: needinfo?(rjesup)
Flags: qe-verify-
Whiteboard: [post-critsmash-triage]
Whiteboard: [post-critsmash-triage] → [adv-main97+r]
Whiteboard: [adv-main97+r] → [post-critsmash-triage][adv-main97+r]
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: