Bug: Intermittent browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines | IOError: Process has been unexpectedly closed (Exit code: -27) (Reason: Process unexpectedly quit without restarting (exit code: -27))
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-11-11 07:22:06+00:00
Resolved: 2021-02-09 17:02:02+00:00

**Filed by:** ccoroiu [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=321390353&repo=mozilla-central
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/SZnKQLteQreWekzPGuINSw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2020-11-10T23:51:54.665Z] 23:51:54     INFO - TEST-START | browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines
[task 2020-11-10T23:51:54.665Z] 23:51:54     INFO -  1605052314656	Marionette	DEBUG	1 -> [0,3,"WebDriver:DeleteSession",{}]
[task 2020-11-10T23:51:54.665Z] 23:51:54     INFO -  1605052314658	Marionette	DEBUG	1 <- [1,3,null,{"value":null}]
[task 2020-11-10T23:51:54.665Z] 23:51:54     INFO -  1605052314663	Marionette	DEBUG	Accepted connection 2 from 127.0.0.1:60998
[task 2020-11-10T23:51:54.666Z] 23:51:54     INFO -  1605052314664	Marionette	DEBUG	Closed connection 1
[task 2020-11-10T23:51:54.670Z] 23:51:54     INFO -  1605052314668	Marionette	DEBUG	2 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2020-11-10T23:51:54.673Z] 23:51:54     INFO -  1605052314669	Marionette	TRACE	[17] Frame script loaded
[task 2020-11-10T23:51:54.680Z] 23:51:54     INFO -  1605052314676	Marionette	DEBUG	2 <- [1,1,null,{"sessionId":"582b8c97-2a90-4ea2-b947-f6a748dc3997","capabilities":{"browserName":"firefox","browserVersion":"84.0a ... mp/tmps2jcvv.mozrunner","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true}}]
[task 2020-11-10T23:51:54.680Z] 23:51:54     INFO -  1605052314677	Marionette	DEBUG	2 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2020-11-10T23:51:54.680Z] 23:51:54     INFO -  1605052314677	Marionette	DEBUG	2 <- [1,2,null,{"value":null}]
[task 2020-11-10T23:51:54.680Z] 23:51:54     INFO -  1605052314678	Marionette	DEBUG	2 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2020-11-10T23:51:54.681Z] 23:51:54     INFO -  1605052314679	Marionette	DEBUG	2 <- [1,3,null,{"value":null}]
[task 2020-11-10T23:51:54.684Z] 23:51:54     INFO -  1605052314682	Marionette	DEBUG	2 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2020-11-10T23:51:54.685Z] 23:51:54     INFO -  1605052314683	Marionette	DEBUG	2 <- [1,4,null,{"value":null}]
[task 2020-11-10T23:51:54.688Z] 23:51:54     INFO -  1605052314686	Marionette	DEBUG	2 -> [0,5,"Marionette:GetContext",{}]
[task 2020-11-10T23:51:54.689Z] 23:51:54     INFO -  1605052314687	Marionette	DEBUG	2 <- [1,5,null,{"value":"content"}]
[task 2020-11-10T23:51:54.689Z] 23:51:54     INFO -  1605052314687	Marionette	DEBUG	2 -> [0,6,"Marionette:SetContext",{"value":"chrome"}]
[task 2020-11-10T23:51:54.690Z] 23:51:54     INFO -  1605052314687	Marionette	DEBUG	2 <- [1,6,null,{"value":null}]
[task 2020-11-10T23:51:54.704Z] 23:51:54     INFO -  1605052314689	Marionette	DEBUG	2 -> [0,7,"WebDriver:ExecuteScript",{"script":"let prefInterface = Components.classes[\"@mozilla.org/preferences-service;1\"]\n    ... args":[],"filename":"../../venv/lib/python2.7/site-packages/marionette_driver/marionette.py","sandbox":"default","line":891}]

task 2020-11-10T23:51:58.347Z] 23:51:58     INFO -  DEBUG: Starting phase xpcom-will-shutdown
[task 2020-11-10T23:51:58.347Z] 23:51:58     INFO -  DEBUG: Spinning the event loop
[task 2020-11-10T23:51:58.348Z] 23:51:58     INFO -  DEBUG: Completed blocker OS.File: flush pending requests, warn about unclosed files, shut down service. for phase xpcom-will-shutdown
[task 2020-11-10T23:51:58.348Z] 23:51:58     INFO -  DEBUG: Finished phase xpcom-will-shutdown
[task 2020-11-10T23:55:08.202Z] 23:55:08     INFO - TEST-UNEXPECTED-ERROR | browser/components/search/test/marionette/test_engines_on_restart.py TestEnginesOnRestart.test_engines | IOError: Process has been unexpectedly closed (Exit code: -27) (Reason: Process unexpectedly quit without restarting (exit code: -27))
[task 2020-11-10T23:55:08.202Z] 23:55:08     INFO - Traceback (most recent call last):
[task 2020-11-10T23:55:08.202Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_harness/marionette_test/testcases.py", line 214, in run
[task 2020-11-10T23:55:08.202Z] 23:55:08     INFO -     testMethod()
[task 2020-11-10T23:55:08.203Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/search/test/marionette/test_engines_on_restart.py", line 40, in test_engines
[task 2020-11-10T23:55:08.203Z] 23:55:08     INFO -     self.marionette.restart(clean=False, in_app=True)
[task 2020-11-10T23:55:08.204Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 37, in _
[task 2020-11-10T23:55:08.204Z] 23:55:08     INFO -     m._handle_socket_failure()
[task 2020-11-10T23:55:08.204Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 712, in _handle_socket_failure
[task 2020-11-10T23:55:08.205Z] 23:55:08     INFO -     IOError, IOError(message.format(returncode=returncode, reason=exc)), tb
[task 2020-11-10T23:55:08.205Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/decorators.py", line 27, in _
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -     return func(*args, **kwargs)
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1104, in restart
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -     tb,
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 1084, in restart
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -     self.raise_for_port(timeout=timeout_restart, check_process_status=False)
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -   File "/builds/worker/workspace/build/venv/lib/python2.7/site-packages/marionette_driver/marionette.py", line 594, in raise_for_port
[task 2020-11-10T23:55:08.206Z] 23:55:08     INFO -     self.host, self.port
[task 2020-11-10T23:55:08.207Z] 23:55:08     INFO - TEST-INFO took 193538ms```