Performing a clean shutdown of a utility process does not send profiler data to the parent
Categories
(Core :: IPC, task)
Tracking
()
People
(Reporter: rkraesig, Assigned: gerard-majax)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
Assignee | ||
Comment 1•1 year ago
|
||
Can you elaborate what is lost? There is test, so we definitively verify there is data sent.
Assignee | ||
Comment 2•1 year ago
|
||
Assignee | ||
Comment 3•1 year ago
|
||
Are we missing something like https://searchfox.org/mozilla-central/source/dom/ipc/ContentChild.cpp#3050-3051 ?
Assignee | ||
Comment 4•1 year ago
|
||
(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 ?
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 5•1 year ago
|
||
Assignee | ||
Comment 6•1 year ago
|
||
So bug 1529131 already has the solution, it never landed, and attached is a patch that adds testing
Reporter | ||
Comment 7•1 year ago
|
||
(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.
Description
•