Closed Bug 1490777 Opened 6 years ago Closed 6 years ago

Silence warning in IDMap::Remove during fuzzing

Categories

(Core :: IPC, enhancement, P1)

enhancement

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 :-)
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).
Sounds good -- I'll give this a spin with an assert and see if we can figure it out.
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.
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+
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
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.

Attachment

General

Created:
Updated:
Size: