video_capture_impl.cc:122:7: warning: reading variable '_dataCallBacks' requires holding mutex 'api_lock_' [-Wthread-safety-analysis]
Categories
(Core :: WebRTC: Audio/Video, defect, P2)
Tracking
()
Tracking | Status | |
---|---|---|
firefox-esr115 | --- | unaffected |
firefox118 | --- | unaffected |
firefox119 | --- | unaffected |
firefox120 | --- | fixed |
People
(Reporter: pehrsons, Assigned: pehrsons)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
This is a warning in Mozilla-specific code inside libwebrtc, that started when _dataCallbacks
got annotated with RTC_GUARDED_BY(api_lock_)
in a commit on bug 1851693.
Note that this is still safe, since this lack of locking always happens on the only thread that can modify _dataCallbacks
.
Assignee | ||
Comment 1•1 year ago
|
||
The annotations were added in M116:
https://hg.mozilla.org/mozilla-central/rev/9cd372df013948ad822ae936752d725d77474fb5
Note that this was never unsafe, since _dataCallbacks is only written on the
same thread that we are patching here. This patch however, adds helpful static
analysis.
Assignee | ||
Comment 2•1 year ago
|
||
clang-tidy says:
'auto dataCallBack' can be declared as 'auto *dataCallBack'
Comment 3•1 year ago
|
||
Set release status flags based on info from the regressing bug 1851693
Comment 5•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/56ff441b6444
https://hg.mozilla.org/mozilla-central/rev/26c84d214137
Description
•