Closed
Bug 1136952
Opened 9 years ago
Closed 8 years ago
TSan: multiple data races stemming from dom/storage/DOMStorageCache.cpp:454 GetItem
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1136857
People
(Reporter: froydnj, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [tsan])
Attachments
(1 file)
20.41 KB,
text/plain
|
Details |
The attached logfile shows a thread/data race detected by TSan (ThreadSanitizer). * Specific information about this bug TSan doesn't like how the localstorage DB thread touches DOMStorageCache's hashtables under a lock, but the main thread can read data from those same hashtables without a lock. There's a number of stacks that look pretty similar to this coming out of TSan, and I think they're all related. I've only provided one in the attached log file. * 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
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•