browser-wasm windows Debug AllSubsets_CoreCLR builds failing in emcc seemingly unrelated to any code issues
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1067658 Build error leg or test failing: browser-wasm windows Debug AllSubsets_CoreCLR
Error Message
Fill the error message using step by step known issues guidance.
{
"ErrorMessage": "sys.exit(emcc.main(sys.argv))",
"BuildRetry": true,
"ExcludeConsoleLog": false
}
Known issue validation
Build: :mag_right: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1067658
Error message validated: [sys.exit(emcc.main(sys.argv))]
Result validation: :white_check_mark: Known issue matched with the provided build.
Validation performed at: 6/13/2025 6:41:53 PM UTC
Report
| Build | Definition | Step Name | Console log | Pull Request |
|---|---|---|---|---|
| 1067979 | dotnet/runtime | Build product | Log | dotnet/runtime#116590 |
| 1068063 | dotnet/runtime | Build product | Log | dotnet/runtime#116354 |
| 1068015 | dotnet/runtime | Build product | Log | dotnet/runtime#115265 |
| 1067903 | dotnet/runtime | Build product | Log | dotnet/runtime#116626 |
| 1067719 | dotnet/runtime | Build product | Log | dotnet/runtime#115265 |
| 1067658 | dotnet/runtime | Build product | Log | dotnet/runtime#116563 |
| 1067636 | dotnet/runtime | Build product | Log | dotnet/runtime#116619 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 7 | 7 | 7 |
Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.
Tagging subscribers to this area: @akoeplinger, @matouskozak, @simonrozsival See info in area-owners.md if you want to be subscribed.
Likely the same problem as https://github.com/dotnet/runtime/issues/116746 and https://github.com/dotnet/runtime/issues/116671
From the chat on First Responders it looks like the machine images were changed way earlier than the start of these issues.
We are now trying to confirm our theory, that it can be Defender intercepting the build. https://github.com/dotnet/runtime/pull/116791
Example failure:
2025-06-20T12:51:02.3032584Z Traceback (most recent call last):
2025-06-20T12:51:02.3997880Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\em++.py", line 15, in <module>
2025-06-20T12:51:02.6225743Z sys.exit(emcc.main(sys.argv))
2025-06-20T12:51:02.7001855Z ~~~~~~~~~^^^^^^^^^^
2025-06-20T12:51:02.7365944Z File "C:\python3\Lib\contextlib.py", line 85, in inner
2025-06-20T12:51:02.7870513Z return func(*args, **kwds)
2025-06-20T12:51:02.8800056Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\emcc.py", line 1575, in main
2025-06-20T12:51:02.9159111Z ret = run(args)
2025-06-20T12:51:02.9207856Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\emcc.py", line 632, in run
2025-06-20T12:51:02.9249801Z linker_inputs = phase_compile_inputs(options, state, newargs, input_files)
2025-06-20T12:51:02.9259913Z File "C:\python3\Lib\contextlib.py", line 85, in inner
2025-06-20T12:51:02.9267189Z return func(*args, **kwds)
2025-06-20T12:51:02.9301165Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\emcc.py", line 990, in phase_compile_inputs
2025-06-20T12:51:02.9320691Z shared.exec_process(cmd)
2025-06-20T12:51:02.9336893Z ~~~~~~~~~~~~~~~~~~~^^^^^
2025-06-20T12:51:02.9362795Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\tools\shared.py", line 247, in exec_process
2025-06-20T12:51:02.9370634Z rtn = run_process(cmd, stdin=sys.stdin, check=False).returncode
2025-06-20T12:51:02.9398532Z ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-06-20T12:51:02.9408055Z File "D:\a\_work\1\s\src\mono\browser\emsdk\emscripten\tools\shared.py", line 130, in run_process
2025-06-20T12:51:02.9424373Z ret = subprocess.run(cmd, check=check, input=input, *args, **kw)
2025-06-20T12:51:02.9444275Z File "C:\python3\Lib\subprocess.py", line 556, in run
2025-06-20T12:51:02.9452406Z with Popen(*popenargs, **kwargs) as process:
2025-06-20T12:51:02.9460843Z ~~~~~^^^^^^^^^^^^^^^^^^^^^^
2025-06-20T12:51:02.9469300Z File "C:\python3\Lib\subprocess.py", line 1004, in __init__
2025-06-20T12:51:02.9517008Z errread, errwrite) = self._get_handles(stdin, stdout, stderr)
2025-06-20T12:51:02.9521127Z ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
2025-06-20T12:51:02.9523617Z File "C:\python3\Lib\subprocess.py", line 1377, in _get_handles
2025-06-20T12:51:02.9525965Z p2cread = self._make_inheritable(p2cread)
2025-06-20T12:51:02.9528385Z
2025-06-20T12:51:02.9530935Z File "C:\python3\Lib\subprocess.py", line 1428, in _make_inheritable
2025-06-20T12:51:02.9533432Z
2025-06-20T12:51:02.9535764Z h = _winapi.DuplicateHandle(
2025-06-20T12:51:02.9538153Z
2025-06-20T12:51:02.9540469Z _winapi.GetCurrentProcess(), handle,
2025-06-20T12:51:02.9542730Z
2025-06-20T12:51:02.9545026Z _winapi.GetCurrentProcess(), 0, 1,
2025-06-20T12:51:02.9547284Z
2025-06-20T12:51:02.9549505Z _winapi.DUPLICATE_SAME_ACCESS)
2025-06-20T12:51:02.9551832Z
2025-06-20T12:51:02.9554249Z OSError: [WinError 6] The handle is invalid
This was https://github.com/dotnet/runtime/issues/116746