Skip to content

run_client.py: force permission denied (originated from sysctl(KERN_PROCARGS2) -> errno 0) #6461

@jozkee

Description

@jozkee

Build

https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1309813

Build leg reported

Microsoft.Bcl.Numerics.Tests.WorkItemExecution

Pull Request

https://github.com/dotnet/runtime.git/pull/124867

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "force permission denied (originated from sysctl(KERN_PROCARGS2) -> errno 0)",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

https://helixr1107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-124867-merge-6a7f7df3bd864469b9/Microsoft.Bcl.Numerics.Tests/9f3bd125-a0b3-4eb0-826c-f5c370c50e8b.log?helixlogtype=result

2026-02-25T19:26:09.065Z	INFO   	job(38)	wait	Work item's process exited normally.
2026-02-25T19:26:09.124Z	ERROR  	executor(928)	_execute_command	<built-in function proc_cmdline> returned a result with an exception set
PermissionError: [Errno 13] force permission denied (originated from sysctl(KERN_PROCARGS2) -> errno 0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/private/etc/helix/scripts/helix/executor.py", line 890, in _execute_command
    finished_gracefully = job.wait()
  File "/private/etc/helix/scripts/helix/job.py", line 50, in wait
    self.kill_any_leaked_workitem_processes()
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/private/etc/helix/scripts/helix/job.py", line 93, in kill_any_leaked_workitem_processes
    instances = [p for p in psutil.process_iter(attrs=['pid', 'name', 'cmdline']) if current_pid != p.info['pid']]
                            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/etc/helix/scripts/psutil/__init__.py", line 1558, in process_iter
    proc.info = proc.as_dict(attrs=attrs, ad_value=ad_value)
                ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/etc/helix/scripts/psutil/__init__.py", line 579, in as_dict
    ret = meth()
  File "/private/etc/helix/scripts/psutil/__init__.py", line 748, in cmdline
    return self._proc.cmdline()
           ~~~~~~~~~~~~~~~~~~^^
  File "/private/etc/helix/scripts/psutil/_psosx.py", line 347, in wrapper
    return fun(self, *args, **kwargs)
  File "/private/etc/helix/scripts/psutil/_psosx.py", line 405, in cmdline
    return cext.proc_cmdline(self.pid)
           ~~~~~~~~~~~~~~~~~^^^^^^^^^^
SystemError: <built-in function proc_cmdline> returned a result with an exception set
2026-02-25T19:26:09.133Z	INFO   	interval(67)	set_abort_after_timer	Set the timer's abort_after to 180 seconds from now: abort_after = 2026-02-25 14:29:09.133048
2026-02-25T19:26:09.133Z	INFO   	executor(1017)	_upload_files	Allowing maximum 0.0 seconds to upload 0 bytes of files.
2026-02-25T19:26:09.133Z	INFO   	interval(67)	set_abort_after_timer	Set the timer's abort_after to 60.0 seconds from now: abort_after = 2026-02-25 14:27:09.133392
2026-02-25T19:26:09.133Z	INFO   	logs(167)	__exit__	Uploading self-uploading log file /tmp/helix/logs/9f3bd125-a0b3-4eb0-826c-f5c370c50e8b.log (Client: dci-mac-build-320)
2026-02-25T19:26:09.162Z	ERROR  	logs(169)	__exit__	Unhandled error
Traceback (most recent call last):
  File "/private/etc/helix/scripts/helix/executor.py", line 149, in run
    (log_path, exit_code, timed_out) = self._execute_command(
                                       ~~~~~~~~~~~~~~~~~~~~~^
        command=command,
        ^^^^^^^^^^^^^^^^
    ...<2 lines>...
        local_iteration=local_reruns,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/private/etc/helix/scripts/helix/executor.py", line 935, in _execute_command
    log.info("Finished _execute_command, exit code: %d" % exit_code)
             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~
TypeError: %d format: a real number is required, not NoneType

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1309813
Error message validated: [force permission denied (originated from sysctl(KERN_PROCARGS2) -> errno 0)]
Result validation: ❌ Known issue did not match with the provided build.
Validation performed at: 2/26/2026 4:58:10 PM UTC

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions