Diagnose craches at CacheFileChunkBuffer
Categories
(Core :: Networking: Cache, task, P2)
Tracking
()
People
(Reporter: sinker, Assigned: sinker)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
CacheFileChunkBuffer::DataSize() crashes for a reason unknown yet. CacheFileIOManager has been checked many times, but nothing found.
I wonder CacheFileChunk::OnDataRead() have been called twice, or mReadingStateBuf was not set properly. It is very difficult to reproduce. I am going to use MOZ_DIAGNOSTIC_ASSERT() to check if mReadingStateBuf and other fields set properly, and clean mCallback of ReadEvent to catch when calling OnDataRead() twice.
For both cases, they are going to crash definitely. So the changes here will not cause more damages.
| Assignee | ||
Comment 1•16 hours ago
|
||
CacheFileChunkBuffer::DataSize() crashes for a reason unknown
yet. This patch uses MOZ_DIAGNOSTIC_ASSERT() to check if
mReadingStateBuf and other fields set properly, and clear mCallback of
ReadEvent to catch when calling OnDataRead() twice.
For both cases, they are going to crash definitely. So the changes
here will not cause more damages.
Updated•16 hours ago
|
Updated•2 hours ago
|
Description
•