DescriptionFix race causing crash in net::FileNetLogObserver shutdown
The class must stop listening for NetLog events before it attempts to
shut itself down. Without this fix these two things happen simultaneously:
1. FileNetLogObserver::StopObserving() posts FlushAndStop() to file thread.
2. FileNetLogObserver::OnAddEntry() posts Flush() to file thread.
The file thread then runs FlushAndStop() which clears event_files_, then
the file thread runs Flush() which indexes into event_files_ and crashes.
Also, re-enable test that caught this crash.
BUG=729257
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
Review-Url: https://codereview.chromium.org/2932613002
Cr-Commit-Position: refs/heads/master@{#478151}
Committed: https://chromium.googlesource.com/chromium/src/+/316c57df2b949823a1fbd31d64150edb3d3af1e0
Patch Set 1 #
Total comments: 2
Patch Set 2 : add tests #
Messages
Total messages: 21 (12 generated)
|