Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-10-27 02:49:27+00:00
Resolved: 2024-11-25 12:06:06+00:00

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

---
```
[task 2023-10-27T01:02:28.954Z] 01:02:28     INFO - Application command: /builds/worker/workspace/build/application/firefox/firefox -no-remote -marionette -profile /tmp/tmpowglxqee.mozrunner
[task 2023-10-27T01:02:29.164Z] 01:02:29     INFO -  Inconsistency detected by ld.so: ../elf/dl-tls.c: 481: _dl_allocate_tls_init: Assertion `listp->slotinfo[cnt].gen <= GL(dl_tls_generation)' failed!
[task 2023-10-27T01:02:29.279Z] 01:02:29     INFO - TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py TestSessionStoreEnabledAllWindows.test_with_variety | OSError: Process has been unexpectedly closed (Exit code: 127) (Reason: Process killed after 120s because no connection to Marionette server could be established. Check gecko.log for errors)
[task 2023-10-27T01:02:29.281Z] 01:02:29     INFO - Traceback (most recent call last):
[task 2023-10-27T01:02:29.282Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py", line 198, in run
[task 2023-10-27T01:02:29.283Z] 01:02:29     INFO -     testMethod()
[task 2023-10-27T01:02:29.285Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py", line 37, in test_with_variety
[task 2023-10-27T01:02:29.286Z] 01:02:29     INFO -     self.marionette.start_session()
[task 2023-10-27T01:02:29.287Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 34, in _
[task 2023-10-27T01:02:29.288Z] 01:02:29     INFO -     m._handle_socket_failure()
[task 2023-10-27T01:02:29.289Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 854, in _handle_socket_failure
[task 2023-10-27T01:02:29.290Z] 01:02:29     INFO -     IOError, IOError(message.format(returncode=returncode, reason=exc)), tb
[task 2023-10-27T01:02:29.291Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/six.py", line 702, in reraise
[task 2023-10-27T01:02:29.292Z] 01:02:29     INFO -     raise value.with_traceback(tb)
[task 2023-10-27T01:02:29.293Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2023-10-27T01:02:29.293Z] 01:02:29     INFO -     return func(*args, **kwargs)
[task 2023-10-27T01:02:29.294Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 1360, in start_session
[task 2023-10-27T01:02:29.295Z] 01:02:29     INFO -     self.start_binary(timeout)
[task 2023-10-27T01:02:29.296Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 660, in start_binary
[task 2023-10-27T01:02:29.297Z] 01:02:29     INFO -     reraise(IOError, IOError(msg.format(timeout)), sys.exc_info()[2])
[task 2023-10-27T01:02:29.298Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/six.py", line 702, in reraise
[task 2023-10-27T01:02:29.304Z] 01:02:29     INFO -     raise value.with_traceback(tb)
[task 2023-10-27T01:02:29.304Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 650, in start_binary
[task 2023-10-27T01:02:29.305Z] 01:02:29     INFO -     self.raise_for_port(timeout=timeout)
[task 2023-10-27T01:02:29.306Z] 01:02:29     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 746, in raise_for_port
[task 2023-10-27T01:02:29.307Z] 01:02:29     INFO -     self.host, self.port
[task 2023-10-27T01:02:29.308Z] 01:02:29     INFO - TEST-INFO took 25201ms
[task 2023-10-27T01:02:29.311Z] 01:02:29    ERROR - test_end for browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py TestSessionStoreEnabledAllWindows.test_with_variety logged while not in progress. Logged with data: {"message": "marionette_driver.errors.InvalidSessionIdException: Please start a session", "expected": "PASS", "stack": "Traceback (most recent call last):\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py\", line 231, in run\n    self.tearDown()\n  File \"/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py\", line 97, in tearDown\n    super(SessionStoreTestCase, self).tearDown()\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/runner/mixins/window_manager.py\", line 22, in tearDown\n    if len(self.marionette.chrome_window_handles) > len(self.start_windows):\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 1526, in chrome_window_handles\n    with self.using_context(\"chrome\"):\n  File \"/usr/lib/python3.7/contextlib.py\", line 112, in __enter__\n    return next(self.gen)\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 1595, in using_context\n    scope = self._send_message(\"Marionette:GetContext\", key=\"value\")\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py\", line 24, in _\n    return func(*args, **kwargs)\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 766, in _send_message\n    raise errors.InvalidSessionIdException(\"Please start a session\")\n", "extra": {"class_name": "test_restore_windows_after_close_last_tabs.TestSessionStoreEnabledAllWindows", "method_name": "test_with_variety"}, "test": "browser/components/sessionstore/test/marionette/test_restore_windows_after_close_last_tabs.py TestSessionStoreEnabledAllWindows.test_with_variety", "status": "ERROR"}

```