From 14d91a196cd2a8ce75510672a78d682b0a65ed0f Mon Sep 17 00:00:00 2001 From: Radek Zikmund Date: Wed, 4 Mar 2026 10:12:29 +0100 Subject: [PATCH 1/2] Disable ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed on macOS The test crashes with SIGABRT (exit code 134) on macOS 14 due to a double-free bug in Apple's GSS framework (_gss_scram_release_cred) when cleaning up SPNEGO/Negotiate authentication contexts. This is a known macOS bug (not a .NET bug) that affects .NET 8 which uses the native GSS APIs. .NET 9+ is unaffected because it uses a managed NTLM/SPNEGO implementation. Fix #125150 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs index 4ad8e2005a9285..79f9e7b3f4931f 100644 --- a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs +++ b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs @@ -81,6 +81,7 @@ await server.AcceptConnectionSendResponseAndCloseAsync( #if !WINHTTPHANDLER_TEST [PlatformSpecific(TestPlatforms.AnyUnix)] // The default proxy is resolved via WinINet on Windows. + [SkipOnPlatform(TestPlatforms.OSX, "Crashes due to a double-free bug in macOS GSS framework (https://github.com/dotnet/runtime/issues/125150)")] [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [InlineData(false)] [InlineData(true)] From 0af4717eff1df2c6b0f649ea03fd3bbaa870ef7a Mon Sep 17 00:00:00 2001 From: Radek Zikmund <32671551+rzikm@users.noreply.github.com> Date: Wed, 4 Mar 2026 10:23:54 +0100 Subject: [PATCH 2/2] Update src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs index 79f9e7b3f4931f..21d2c71d3227d6 100644 --- a/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs +++ b/src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.DefaultProxyCredentials.cs @@ -81,7 +81,7 @@ await server.AcceptConnectionSendResponseAndCloseAsync( #if !WINHTTPHANDLER_TEST [PlatformSpecific(TestPlatforms.AnyUnix)] // The default proxy is resolved via WinINet on Windows. - [SkipOnPlatform(TestPlatforms.OSX, "Crashes due to a double-free bug in macOS GSS framework (https://github.com/dotnet/runtime/issues/125150)")] + [ActiveIssue("https://github.com/dotnet/runtime/issues/125150", TestPlatforms.OSX)] // Crashes due to a double-free bug in macOS GSS framework [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))] [InlineData(false)] [InlineData(true)]