Closed
Bug 1153394
Opened 8 years ago
Closed 8 years ago
TSan: data race dom/ipc/ProcessHangMonitor.cpp:98 HangMonitorChild::Get()
Categories
(Core :: DOM: Content Processes, defect)
Tracking
()
RESOLVED
FIXED
mozilla43
Tracking | Status | |
---|---|---|
firefox43 | --- | fixed |
People
(Reporter: froydnj, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [tsan])
Attachments
(2 files)
9.86 KB,
text/plain
|
Details | |
1.21 KB,
patch
|
billm
:
review+
|
Details | Diff | Splinter Review |
The attached logfile shows a thread/data race detected by TSan (ThreadSanitizer). * Specific information about this bug This race looks like we're relying on a variable getting set on one thread and being able to be read in another. Turning this variable into an Atomic<> is probably the right thing to do. * General information about TSan, data races, etc. Typically, races reported by TSan are not false positives, but it is possible that the race is benign. Even in this case though, we should try to come up with a fix unless this would cause unacceptable performance issues. Also note that seemingly benign races can possibly be harmful (also depending on the compiler and the architecture) [1][2]. If the bug cannot be fixed, then this bug should be used to either make a compile-time annotation for blacklisting or add an entry to the runtime blacklist. [1] http://software.intel.com/en-us/blogs/2013/01/06/benign-data-races-what-could-possibly-go-wrong [2] _How to miscompile programs with "benign" data races_: https://www.usenix.org/legacy/events/hotpar11/tech/final_files/Boehm.pdf
![]() |
Reporter | |
Comment 1•8 years ago
|
||
The atomic-ness here should not be significant performance concern--it looks like we're not accessing this variable in hot paths.
Attachment #8659965 -
Flags: review?(wmccloskey)
Comment on attachment 8659965 [details] [diff] [review] make HangMonitorChild::sInstance an atomic variable Review of attachment 8659965 [details] [diff] [review]: ----------------------------------------------------------------- Thanks Nathan.
Attachment #8659965 -
Flags: review?(wmccloskey) → review+
https://hg.mozilla.org/mozilla-central/rev/c425e00cb6c5
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•