mojo::edk::Init is called several times |
|||
Issue descriptionFor example, once in service_manager::Main and again in service_manager::RunStandaloneService. The 2nd Init call will create an orphaned mojo::edk::Core (the previous global Core is not deleted). See https://chromium-review.googlesource.com/c/chromium/src/+/682974 's description and comments for why the fix is not trivial.
,
Oct 12 2017
There are probably also other cases in certain unit test suites where we suffer from duplicate initialization, but those are less concerning I think.
,
Oct 12 2017
Sorry, I meant making sure Init is called once in "all possible initialization" paths (including in tests) is not trivial :) Yes, one can fix just the RunStandaloneService case as you suggested (however, also note that in that scenario the 2nd call actually changes the config and that should be handled, too).
,
Oct 12 2017
Right, we want the configuration from service_manager::Main anyway though.
,
Jan 31 2018
,
Oct 17
|
|||
►
Sign in to add a comment |
|||
Comment 1 by roc...@chromium.org
, Oct 12 2017