Open Bug 1991833 Opened 1 year ago Updated 8 days ago

High frequency win-msix PermissionError: [WinError 5] Access is denied

Categories

(Infrastructure & Operations :: RelOps: General, defect)

defect

Tracking

(Not tracked)

People

(Reporter: intermittent-bug-filer, Unassigned, NeedInfo)

References

Details

(Keywords: intermittent-failure)

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


[task 2025-10-01T07:01:48.594+00:00] 07:01:48     INFO - TEST-START | xpcshell-remote.toml:toolkit/components/extensions/test/xpcshell/test_ext_background_type_module.js
[task 2025-10-01T07:01:48.602+00:00] 07:01:48     INFO - Following exceptions were raised:
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR - Traceback (most recent call last):
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -   File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 263, in run
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -     self.run_test()
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -   File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 912, in run_test
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -     proc = self.launchProcess(
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -            ^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -   File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 359, in launchProcess
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -     proc = popen_func(cmd, stdout=stdout, stderr=stderr, env=env, cwd=cwd)
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.605+00:00] 07:01:48    ERROR -   File "D:\task_175930145055592\build\venv\Lib\site-packages\psutil\__init__.py", line 1401, in __init__
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -     self.__subproc = subprocess.Popen(*args, **kwargs)
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -   File "c:\mozilla-build\python3\Lib\subprocess.py", line 1026, in __init__
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -     self._execute_child(args, executable, preexec_fn, close_fds,
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -   File "c:\mozilla-build\python3\Lib\subprocess.py", line 1538, in _execute_child
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -     hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR -                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR - PermissionError: [WinError 5] Access is denied
[task 2025-10-01T07:01:48.606+00:00] 07:01:48    ERROR - 
[task 2025-10-01T07:01:48.606+00:00] 07:01:48     INFO -  Traceback (most recent call last):
[task 2025-10-01T07:01:48.606+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 2536, in <module>
[task 2025-10-01T07:01:48.607+00:00] 07:01:48     INFO -      main()
[task 2025-10-01T07:01:48.607+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 2527, in main
[task 2025-10-01T07:01:48.607+00:00] 07:01:48     INFO -      result = xpcsh.runTests(options)
[task 2025-10-01T07:01:48.607+00:00] 07:01:48     INFO -               ^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.608+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 2208, in runTests
[task 2025-10-01T07:01:48.608+00:00] 07:01:48     INFO -      status = self.runTestList(
[task 2025-10-01T07:01:48.608+00:00] 07:01:48     INFO -               ^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.609+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 2472, in runTestList
[task 2025-10-01T07:01:48.609+00:00] 07:01:48     INFO -      raise exceptions[0]
[task 2025-10-01T07:01:48.609+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 263, in run
[task 2025-10-01T07:01:48.610+00:00] 07:01:48     INFO -      self.run_test()
[task 2025-10-01T07:01:48.610+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 912, in run_test
[task 2025-10-01T07:01:48.610+00:00] 07:01:48     INFO -      proc = self.launchProcess(
[task 2025-10-01T07:01:48.610+00:00] 07:01:48     INFO -             ^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.611+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\tests\xpcshell\runxpcshelltests.py", line 359, in launchProcess
[task 2025-10-01T07:01:48.611+00:00] 07:01:48     INFO -      proc = popen_func(cmd, stdout=stdout, stderr=stderr, env=env, cwd=cwd)
[task 2025-10-01T07:01:48.612+00:00] 07:01:48     INFO -             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.612+00:00] 07:01:48     INFO -    File "D:\task_175930145055592\build\venv\Lib\site-packages\psutil\__init__.py", line 1401, in __init__
[task 2025-10-01T07:01:48.612+00:00] 07:01:48     INFO -      self.__subproc = subprocess.Popen(*args, **kwargs)
[task 2025-10-01T07:01:48.612+00:00] 07:01:48     INFO -                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.612+00:00] 07:01:48     INFO -    File "c:\mozilla-build\python3\Lib\subprocess.py", line 1026, in __init__
[task 2025-10-01T07:01:48.613+00:00] 07:01:48     INFO -      self._execute_child(args, executable, preexec_fn, close_fds,
[task 2025-10-01T07:01:48.613+00:00] 07:01:48     INFO -    File "c:\mozilla-build\python3\Lib\subprocess.py", line 1538, in _execute_child
[task 2025-10-01T07:01:48.613+00:00] 07:01:48     INFO -      hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
[task 2025-10-01T07:01:48.613+00:00] 07:01:48     INFO -                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2025-10-01T07:01:48.614+00:00] 07:01:48     INFO -  PermissionError: [WinError 5] Access is denied
[task 2025-10-01T07:01:48.681+00:00] 07:01:48     INFO - Return code: 1
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - TinderboxPrint: xpcshell-xpcshell<br/>869/0/1
[task 2025-10-01T07:01:48.692+00:00] 07:01:48  WARNING - setting return code to 2
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - The xpcshell suite: xpcshell ran with return status: FAILURE
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - Running post-action listener: _package_coverage_data
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - Running post-action listener: _resource_record_post_action
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - Running post-action listener: process_java_coverage_data
[task 2025-10-01T07:01:48.692+00:00] 07:01:48     INFO - [mozharness: 2025-10-01 07:01:48.692934Z] Finished run-tests step (success)
[task 2025-10-01T07:01:48.693+00:00] 07:01:48     INFO - [mozharness: 2025-10-01 07:01:48.692934Z] Running uninstall step.
[task 2025-10-01T07:01:48.693+00:00] 07:01:48     INFO - Running pre-action listener: _resource_record_pre_action
[task 2025-10-01T07:01:48.693+00:00] 07:01:48     INFO - Running main action method: uninstall
[task 2025-10-01T07:01:48.693+00:00] 07:01:48     INFO - Getting output from command: ['D:\\task_175930145055592\\build\\venv\\Scripts\\mozuninstall', 'C:\\Program Files\\WindowsApps\\Mozilla.MozillaFirefoxNightly_145.2510.104.0_x64__jag0gd4e3s9p2\\VFS\\ProgramFiles\\MozillaFirefoxNightly Package Root\\firefox.exe']
[task 2025-10-01T07:01:48.693+00:00] 07:01:48     INFO - Copy/paste: D:\task_175930145055592\build\venv\Scripts\mozuninstall "C:\Program Files\WindowsApps\Mozilla.MozillaFirefoxNightly_145.2510.104.0_x64__jag0gd4e3s9p2\VFS\ProgramFiles\MozillaFirefoxNightly Package Root\firefox.exe"
[task 2025-10-01T07:01:51.882+00:00] 07:01:51     INFO - Using _rmtree_windows ...
[task 2025-10-01T07:01:51.887+00:00] 07:01:51     INFO - Running command: del /F /Q "D:\task_175930145055592\tmpfile_stderr"
[task 2025-10-01T07:01:51.897+00:00] 07:01:51     INFO - Return code: 0
[task 2025-10-01T07:01:51.897+00:00] 07:01:51     INFO - Using _rmtree_windows ...
[task 2025-10-01T07:01:51.897+00:00] 07:01:51     INFO - Running command: del /F /Q "D:\task_175930145055592\tmpfile_stdout"
[task 2025-10-01T07:01:51.906+00:00] 07:01:51     INFO - Return code: 0
[task 2025-10-01T07:01:51.907+00:00] 07:01:51     INFO - Return code: 0
[task 2025-10-01T07:01:51.907+00:00] 07:01:51     INFO - Running post-action listener: _resource_record_post_action
[task 2025-10-01T07:01:51.907+00:00] 07:01:51     INFO - [mozharness: 2025-10-01 07:01:51.907336Z] Finished uninstall step (success)
[task 2025-10-01T07:01:51.907+00:00] 07:01:51     INFO - Running post-run listener: _resource_record_post_run

this seems to happen when the worker gets into a state of perma fail/timeout. here is a recent log. at this point in time:
[task 2025-10-09T11:49:55.852+00:00] 11:49:55 INFO - xpcshell-remote.toml:toolkit/components/extensions/test/xpcshell/test_ext_background_script_and_service_worker.js failed or timed out, will retry.

everything else fails. Some thoughts on this:

  1. a windows machine update?
  2. a previous test runs and messes things up
  3. too many xpcshell processes, causing windows to mess up

this isn't perma, but usually in the same set of tests, so I am inclined to think this is related to previous tests.

Severity: S4 → --
Priority: P5 → --
Summary: Intermittent PermissionError: [WinError 5] Access is denied → High frequency PermissionError: [WinError 5] Access is denied

Florian, could you please take a look? It's high frequency

Flags: needinfo?(florian)

Looking at the history of failures, this seems to affect only msix jobs, where we have an error like this when attempting to start a process:

Traceback (most recent call last):
  File "D:\task_176994436466235\build\tests\xpcshell\runxpcshelltests.py", line 260, in run
    self.run_test()
  File "D:\task_176994436466235\build\tests\xpcshell\runxpcshelltests.py", line 980, in run_test
    proc = self.launchProcess(
           ^^^^^^^^^^^^^^^^^^^
  File "D:\task_176994436466235\build\tests\xpcshell\runxpcshelltests.py", line 356, in launchProcess
    proc = popen_func(cmd, stdout=stdout, stderr=stderr, env=env, cwd=cwd)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\task_176994436466235\build\venv\Lib\site-packages\psutil\__init__.py", line 1401, in __init__
    self.__subproc = subprocess.Popen(*args, **kwargs)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\mozilla-build\python3\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "c:\mozilla-build\python3\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [WinError 5] Access is denied
Summary: High frequency PermissionError: [WinError 5] Access is denied → High frequency win-msix PermissionError: [WinError 5] Access is denied
You need to log in before you can comment on or make changes to this bug.