Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py TestSessionStoreEnabledAllWindows.test_close_tabs | OSError: Process has been unexpectedly closed (Exit code: -15)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-11-03 14:40:45+00:00
Resolved: 2022-11-29 17:05:17+00:00

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

---
```
[task 2022-11-03T12:42:47.397Z] 12:42:47     INFO -  DEBUG: Completed blocker OS.File: flush I/O queued before profileBeforeChange for phase profile-before-change
[task 2022-11-03T12:42:47.398Z] 12:42:47     INFO -  DEBUG: Completed blocker PlacesUtils wrapped connection closing as part of Places shutdown for phase Places Connection shutdown
[task 2022-11-03T12:42:47.399Z] 12:42:47     INFO -  DEBUG: Completed blocker PlacesUtils wrapped connection must be closed before Sqlite.sys.mjs for phase Sqlite.sys.mjs: wait until all clients have completed their task
[task 2022-11-03T12:42:47.399Z] 12:42:47     INFO -  DEBUG: Completed blocker JSON store: writing data for phase AddonManager: Waiting for providers to shut down.
[task 2022-11-03T12:42:47.400Z] 12:42:47     INFO -  DEBUG: Completed blocker SitePermsAddonProvider for phase AddonManager: Waiting for providers to shut down.
[task 2022-11-03T12:42:47.401Z] 12:42:47     INFO -  DEBUG: Completed blocker GMPProvider for phase AddonManager: Waiting for providers to shut down.
[task 2022-11-03T12:42:47.401Z] 12:42:47     INFO -  DEBUG: Completed blocker XPIProvider for phase AddonManager: Waiting for providers to shut down.
[task 2022-11-03T12:42:47.402Z] 12:42:47     INFO -  DEBUG: Completed blocker AddonManager: shutting down. for phase profile-before-change
[task 2022-11-03T12:42:47.414Z] 12:42:47     INFO -  DEBUG: Completed blocker CrashMonitor: Writing notifications to file after receiving profile-before-change and awaiting all checkpoints written for phase IOUtils: waiting for profileBeforeChange IO to complete
[task 2022-11-03T12:42:47.430Z] 12:42:47     INFO -  DEBUG: Completed blocker places.sqlite#0: waiting for shutdown for phase Sqlite.sys.mjs: wait until all connections are closed
[task 2022-11-03T12:42:47.430Z] 12:42:47     INFO -  DEBUG: Completed blocker PlacesUtils read-only connection closing as part of Places shutdown for phase Places Connection shutdown
[task 2022-11-03T12:42:47.431Z] 12:42:47     INFO -  DEBUG: Completed blocker PlacesUtils read-only connection must be closed before Sqlite.sys.mjs for phase Sqlite.sys.mjs: wait until all clients have completed their task
[task 2022-11-03T12:42:47.441Z] 12:42:47     INFO -  DEBUG: Completed blocker content-prefs.sqlite#0: waiting for shutdown for phase Sqlite.sys.mjs: wait until all connections are closed
[task 2022-11-03T12:42:47.442Z] 12:42:47     INFO -  DEBUG: Completed blocker Closing ContentPrefService2 connection. for phase Sqlite.sys.mjs: wait until all clients have completed their task
[task 2022-11-03T12:42:47.445Z] 12:42:47     INFO -  DEBUG: Completed blocker Sqlite.sys.mjs shutdown blocker for phase profile-before-change
[task 2022-11-03T12:42:57.385Z] 12:42:57     INFO -  WARNING: At least one completion condition is taking too long to complete. Conditions: [{"name":"ServiceWorkerRegistrar: Flushing data","state":{"saveDataRunnableDispatched":false,"shuttingDown":false},"filename":"/builds/worker/checkouts/gecko/dom/serviceworkers/ServiceWorkerRegistrar.cpp","lineNumber":1288,"stack":"ServiceWorkerRegistrar: Flushing data"},{"name":"ShieldRecipeClient: Cleaning up","state":"(none)","filename":"resource://normandy/lib/CleanupManager.jsm","lineNumber":45,"stack":["resource://normandy/lib/CleanupManager.jsm:cleanup:45","resource://normandy/Normandy.jsm:uninit:189","resource:///modules/BrowserGlue.jsm:_onQuitApplicationGranted/tasks<:1993","resource:///modules/BrowserGlue.jsm:_onQuitApplicationGranted:2005","resource:///modules/BrowserGlue.jsm:BG_observe:952"]}] Barrier: profile-before-change
[task 2022-11-03T12:43:07.554Z] 12:43:07     INFO - TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py TestSessionStoreEnabledAllWindows.test_close_tabs | OSError: Process has been unexpectedly closed (Exit code: -15) (Reason: Process still running 310.0s after quit request)
[task 2022-11-03T12:43:07.555Z] 12:43:07     INFO - Traceback (most recent call last):
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_harness/marionette_test/testcases.py", line 202, in run
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -     testMethod()
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py", line 49, in test_close_tabs
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -     self.close_all_tabs_and_restart()
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 216, in close_all_tabs_and_restart
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -     self.marionette.quit(callback=self._close_tab_shortcut)
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/decorators.py", line 37, in _
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -     m._handle_socket_failure()
[task 2022-11-03T12:43:07.556Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 746, in _handle_socket_failure
[task 2022-11-03T12:43:07.557Z] 12:43:07     INFO -     IOError, IOError(message.format(returncode=returncode, reason=exc)), tb
[task 2022-11-03T12:43:07.557Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/six.py", line 702, in reraise
[task 2022-11-03T12:43:07.557Z] 12:43:07     INFO -     raise value.with_traceback(tb)
[task 2022-11-03T12:43:07.558Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/decorators.py", line 27, in _
[task 2022-11-03T12:43:07.558Z] 12:43:07     INFO -     return func(*args, **kwargs)
[task 2022-11-03T12:43:07.558Z] 12:43:07     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 1055, in quit
[task 2022-11-03T12:43:07.559Z] 12:43:07     INFO -     raise IOError(message.format(self.shutdown_timeout))
[task 2022-11-03T12:43:07.559Z] 12:43:07     INFO - TEST-INFO took 344613ms
```