Closed Bug 1807157 Opened 1 year ago Closed 1 year ago

Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:807:18 in swap or nsCOMPtr.h:867:45 in operator bool

Categories

(Toolkit :: Safe Browsing, defect)

defect

Tracking

()

RESOLVED FIXED
111 Branch
Tracking Status
firefox111 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: timhuang)

References

(Blocks 1 open bug)

Details

(Keywords: intermittent-failure, Whiteboard: [retriggered])

Attachments

(2 files)

Filed by: rvandermeulen [at] mozilla.com
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=400519728&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/UAKmL0CES6K9L6kwNkiNYw/runs/0/artifacts/public/logs/live_backing.log


Encountered intermittently when running mochitest-devtools in TSAN mode.
Group: firefox-core-security
See Also: → 1806936
Attached file tsan log

Doesn't look like the same race as bug 1806936, but feel free to dupe it over if it is.

Summary: Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:807:18 in swap → Intermittent SUMMARY: ThreadSanitizer: data race /builds/worker/workspace/obj-build/dist/include/nsCOMPtr.h:807:18 in swap or nsCOMPtr.h:867:45 in operator bool

First occurrence so far on mozilla-central: push

Whiteboard: [retriggered]
Assignee: nobody → tihuang
Status: NEW → ASSIGNED

The member variable mUpdateObserver of nsUrlClassifierDBService can be
accessed by both the main thread and the worker thread. This patch adds
a lock to protect it from race condition.

Pushed by tihuang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/4b3c3c2c4825
Add a mUpdateObserverLock in nsUrlClassifierDBService to protect mUpdateObserver. r=dimi
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 111 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: