Crashes in content::BlinkTestRunner::TestFinished when Layout Tests run with --site-per-process |
|||
Issue descriptionThe linux_site_isolation FYI bot shows 100 crashes: https://build.chromium.org/p/chromium.fyi/builders/Site%20Isolation%20Linux/builds/8598/steps/webkit_tests/logs/stdio I suspect that the code added in https://codereview.chromium.org/1836203002 crashes when Layout Tests run with --site-per-process - the newly added code dereferences render_view()->GetMainRenderFrame() which can be null if the main frame is a remote frame that lives in another renderer process. Repro (the important bit is --additional-drt-flag=--site-per-process): $ DISPLAY=:20 ~/src/chromium4/src/third_party/WebKit/Tools/Scripts/run-webkit-tests -t Release -v --additional-drt-flag=--site-per-process --no-retry-failures --additional-drt-flag=--no-sandbox http/tests/security/cross-frame-access-delete.html
,
Mar 30 2016
BTW: When relanding, could you please include linux_site_isolation trybot in the mix? This should catch any potential regressions in --site-per-process mode.
,
Mar 31 2016
I also wonder if the unregistration/cleanup could be done in the layer of responsible for installing the mocks (rather than adding this responsibility to the somewhat unrelated BlinkTestRunner). One idea would be to do unregister/cleanup on beforeunload or unload event. OTOH I haven't been able to find where the mocks are installed; I assume they are installed by javascript (somewhere around mock-battery-monitor.js pulled by LayoutTests/battery-status/page-visibility.html, but to my surprise I haven't been able to find mock-battery-monitor.js under third_party/WebKit/LayoutTests).
,
Mar 31 2016
Using an unload event handler sounds much nicer and it seems to run before the leak detector. Thanks for the idea.
,
Mar 31 2016
Marking as fixed - the bot is green after relanding the latest patchset from the original CL @ https://codereview.chromium.org/1836203002/
,
May 18 2016
|
|||
►
Sign in to add a comment |
|||
Comment 1 by lukasza@chromium.org
, Mar 30 2016