Closed
Bug 1490777
Opened 6 years ago
Closed 6 years ago
Silence warning in IDMap::Remove during fuzzing
Categories
(Core :: IPC, enhancement, P1)
Core
IPC
Tracking
()
RESOLVED
FIXED
mozilla64
Tracking | Status | |
---|---|---|
firefox64 | --- | fixed |
People
(Reporter: Alex_Gaynor, Assigned: Alex_Gaynor)
Details
Attachments
(1 file)
In IPC fuzzing it's possible to reach this warning. It can basically flood the output, so we should silence this -- or make it an error so we can figure out why it's happening :-)
Comment 1•6 years ago
|
||
I did a little looking around in searchfox, and it's not immediately obvious why this would happen. For example, ToplevelState::ShmemDestroyed doesn't call Remove unless the shmem ID is mapped: https://searchfox.org/mozilla-central/rev/de7676288a78b70d2b9927c79493adbf294faad5/ipc/glue/ProtocolUtils.cpp#970 The other uses I can find require having an object deserialized from the ID, which should also require that the ID was mapped. It might be informative to change the warning to an assertion and get a stack (or an rr trace).
Assignee | ||
Comment 2•6 years ago
|
||
Sounds good -- I'll give this a spin with an assert and see if we can figure it out.
Assignee | ||
Comment 3•6 years ago
|
||
Ok, what's actually happening here is that in the Shmem support for the IPC fuzzer we add/remove shmems from the protocol. If the shmem was removed by the IPC message, then we'll hit this warning.
Assignee | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
Comment on attachment 9009243 [details] Bug 1490777 -- don't log a warning in IPC fuzzing if a shmem segment was removed; r?posidron Christoph Diehl [:posidron] has approved the revision.
Attachment #9009243 -
Flags: review+
Assignee | ||
Updated•6 years ago
|
Keywords: checkin-needed
Pushed by rvandermeulen@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84ad3a2b20d0 don't log a warning in IPC fuzzing if a shmem segment was removed; r=posidron
Keywords: checkin-needed
Comment 7•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/84ad3a2b20d0
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in
before you can comment on or make changes to this bug.
Description
•