Open Bug 1863615 Opened 1 year ago Updated 1 year ago

Performing a clean shutdown of a utility process does not send profiler data to the parent

Categories

(Core :: IPC, task)

task

Tracking

()

People

(Reporter: rkraesig, Assigned: gerard-majax)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

When a utility process is shut down, it's ultimately killed rather than actually shutting down cleanly.

A consequence of this is that, if the Firefox profiler is running, the utility process' profiler data is lost; it never gets a chance to send its profiler data back to the parent.

Can you elaborate what is lost? There is test, so we definitively verify there is data sent.

(going to sleep so just brain dump) what if we add mProfilerController->GrabShutdownProfileAndShutdown(); to https://searchfox.org/mozilla-central/source/ipc/glue/UtilityProcessChild.cpp#143-151 ?

Flags: needinfo?(rkraesig)
Assignee: nobody → lissyx+mozillians

So bug 1529131 already has the solution, it never landed, and attached is a patch that adds testing

Depends on: 1529131

(In reply to :gerard-majax from comment #4)

(going to sleep so just brain dump) what if we add mProfilerController->GrabShutdownProfileAndShutdown(); to https://searchfox.org/mozilla-central/source/ipc/glue/UtilityProcessChild.cpp#143-151 ?

Since the needinfo is still up: I'm not sure that would work — I don't think the utility process ever actually goes through its shutdown sequence. Or at least I don't think anything blocks on it doing so, so it could get Terminate()d halfway through.

Bug 1529131 does look like what's needed, at a cursory glance.

Flags: needinfo?(rkraesig)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: