Skip to content

Preserve throw kind across GetThread - #130015

Merged
jkotas merged 10 commits into
dotnet:mainfrom
am11:patch-55
Jun 30, 2026
Merged

Preserve throw kind across GetThread#130015
jkotas merged 10 commits into
dotnet:mainfrom
am11:patch-55

Conversation

@am11

@am11am11 commented Jun 30, 2026

Copy link
Copy Markdown
Member

Fixes#129792.

@dotnet-policy-servicedotnet-policy-serviceBot added the community-contribution Indicates that the PR has been added by a community member label Jun 30, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @agocke, @dotnet/ilc-contrib
See info in area-owners.md if you want to be subscribed.

@am11am11 added arch-loongarch64 arch-riscv Related to the RISC-V architecture labels Jun 30, 2026
@am11

am11 commented Jun 30, 2026

Copy link
Copy Markdown
MemberAuthor

cc @dotnet/samsung, @LuckyXu-HF, @shushanhf

LA64 seemed to have the same issue, I didn't run this test there though.

@shushanhf

Copy link
Copy Markdown
Contributor

cc @dotnet/samsung, @LuckyXu-HF, @shushanhf

LA64 seemed to have the same issue, I didn't run this test there though.

Thanks, we will test it

@LuckyXu-HF

Copy link
Copy Markdown
Contributor

cc @dotnet/samsung, @LuckyXu-HF, @shushanhf
LA64 seemed to have the same issue, I didn't run this test there though.

Thanks, we will test it

Big thanks for the reminder!
After test LA64 has different results of this based on parent commit 8b16f838b402a42d4edd4d6ed299ed2d4508a2a2 without this PR:
build step:

$export QEMU_LD_PREFIX="/loongarch64-rootfs/"$export ROOTFS_DIR="/loongarch64-rootfs/"### Release cross-build
root@af0f9dca56cd:/runtime# bash build.sh clr.aot+libs --cross --arch loongarch64 -c release -bootstrap
root@af0f9dca56cd:/runtime# ./build.sh libs.tests --cross --arch loongarch64 --os linux --use-bootstrap -c Release -p:TestNativeAot=true -p:ArchiveTests=true
### Debug cross-build
root@af0f9dca56cd:/runtime# bash build.sh clr.aot+libs --cross --arch loongarch64 -c debug --use-bootstrap
root@af0f9dca56cd:/runtime# ./build.sh libs.tests --cross --arch loongarch64 --os linux --use-bootstrap -c Debug -p:TestNativeAot=true -p:ArchiveTests=true
### scp the following zips to LA64 machine and test:
/runtime/artifacts/helix/tests/linux.AnyCPU.Release/System.Net.Http.Functional.Tests.zip
/runtime/artifacts/helix/tests/linux.AnyCPU.Debug/System.Net.Http.Functional.Tests.zip

Release-NAOT-System.Net.Http.Functional.Tests : Tests run: 4553, Errors: 0, Failures: 0, Skipped: 148. Time: 44.4428478s
Debug:-NAOT-System.Net.Http.Functional.Tests:Tests run: 4555, Errors: 0, Failures: 2, Skipped: 148. Time: 49.9817175s

Test interface System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured passed on LA64:

Release:
xuliangyu@loongson3a60007a2000-38-234:~/ISSUE129729/Release$ ./System.Net.Http.Functional.Tests -method System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Finished System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Tests run: 6, Errors: 0, Failures: 0, Skipped: 0. Time: 0.0272469s
Debug:
xuliangyu@loongson3a60007a2000-38-234:~/ISSUE129729/Debug$ ./System.Net.Http.Functional.Tests -method System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Finished System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Tests run: 6, Errors: 0, Failures: 0, Skipped: 0. Time: 0.0941333s
Release-test-detail
xuliangyu@loongson3a60007a2000-38-234:~/ISSUE129729/Release$ ./RunTests.sh --runtime-path foo
========================= Begin custom configuration settings ==============================
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start Tue Jun 30 02:31:04 PM CST 2026 =============== To repro directly: =====================================================
pushd.
chmod +rwx System.Net.Http.Functional.Tests ^&^& ./System.Net.Http.Functional.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing -xml testResults.xml popd
===========================================================================================================
~/ISSUE129729/Release ~/ISSUE129729/Release
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_DowngradesPoolToHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_AuthDisabledAfterRedirect_Returns401
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_Http2OnlyRequestsStillWork
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_ExactVersionPolicy_Returns401
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_UseIpAddressAndHostHeader_Success
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_WithContent_Returns401
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_SubsequentRequestsUseHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_PostSetsFlag_SubsequentGetUsesHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_Http11RequestVersionOrHigher_DowngradesToHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.DefaultHandler_FakeServer_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Proxy_DomainJoinedProxyServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerChallengesWithWindowsAuth_ClientSendsWindowsAuthHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerUsesWindowsAuthentication_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_BrokenNtlmFromServer
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.AllSocketsHttpHandlerCounters_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.RequestDuration_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.ActiveRequests_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20_HttpMessageInvoker.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http2.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_MaxConnectionsPerServer_Test.AppContextSetData_SetDefaultMaxConnectionsPerServer
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_StreamingCancellation
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20_HttpMessageInvoker.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerUsesWindowsAuthentication_Success
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerChallengesWithWindowsAuth_ClientSendsWindowsAuthHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Proxy_DomainJoinedProxyServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_BrokenNtlmFromServer
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_ServerCertificates_Test.HttpClientUsesSslCertEnvironmentVariables
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_UseIpAddressAndHostHeader_Success
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Cancellation_Test.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_ServerFail
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_ThrowFromContentCopy_RequestFails
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_Streaming
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_CancelRequest
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponse
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Sync.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Sync.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.ReadAsStreamAsync_Cancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.ReadAsStreamAsync_StreamingCancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_UseResponseHeadersReadOption_TrailingHeadersReceived(includeContentLength: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_TrailingHeadersReceived(emptyContent: False, includeContentLength: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_TrailingHeadersReceived(emptyContent: True, includeContentLength: True)
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Http11_Cancellation_Test.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.HttpClientTest.DefaultProxy_Credentials_SetGet_Roundtrips
[SKIP] System.Net.Http.Functional.Tests.HttpClientTest.DefaultProxy_SetGet_Roundtrips
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_DefaultProxyCredentials_Test.ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_ClientEKUServerAuth_Fails
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_NoEKUServerAuth_Ok
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_NoEKUClientAuth_Ok
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_ServerEKUClientAuth_Fails
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Proxy_Test.Proxy_SslProxyUnsupported_Throws
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClient_SelectedSites_Test.RetrieveSite_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClient_SelectedSites_Test.RetrieveSite_Debug_Helper
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_Cancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_StreamingCancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_Cancellation
Finished System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Tests run: 4553, Errors: 0, Failures: 0, Skipped: 148. Time: 44.4428478s
~/ISSUE129729/Release
----- end Tue Jun 30 02:31:50 PM CST 2026 ----- exit code 0 ----------------------------------------------------------
exit code 0 means Exited Successfully
Debug-test-detail
xuliangyu@loongson3a60007a2000-38-234:~/ISSUE129729/Debug$ ./RunTests.sh --runtime-path foo
========================= Begin custom configuration settings ==============================
export XUNIT_HIDE_PASSING_OUTPUT_DIAGNOSTICS=1
========================== End custom configuration settings ===============================
----- start Tue Jun 30 02:36:38 PM CST 2026 =============== To repro directly: =====================================================
pushd.
chmod +rwx System.Net.Http.Functional.Tests ^&^& ./System.Net.Http.Functional.Tests -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing -xml testResults.xml popd
===========================================================================================================
~/ISSUE129729/Debug ~/ISSUE129729/Debug
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: False)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\nxwow\nmore\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Headers_Http11.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandlerTest_HttpClientHandlerTest_Headers.SendAsync_InvalidCharactersInResponseHeader_ReplacedWithSpaces(testHttp11: False, value: "test\rwow\rmore\r\n", testTrailers: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http11.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_UseIpAddressAndHostHeader_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Proxy_DomainJoinedProxyServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerChallengesWithWindowsAuth_ClientSendsWindowsAuthHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerUsesWindowsAuthentication_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_BrokenNtlmFromServer
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClient_SelectedSites_Test.RetrieveSite_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClient_SelectedSites_Test.RetrieveSite_Debug_Helper
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_ServerCertificates_Test.HttpClientUsesSslCertEnvironmentVariables
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Http11_Cancellation_Test.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_DiagnosticsTest_Http2.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.HttpClientTest.DefaultProxy_Credentials_SetGet_Roundtrips
[SKIP] System.Net.Http.Functional.Tests.HttpClientTest.DefaultProxy_SetGet_Roundtrips
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.ReadAsStreamAsync_Cancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandlerTest_HttpClientHandlerTest_Http2.ReadAsStreamAsync_StreamingCancellation
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_SuppressedGlobalStaticPropagationEnvVar
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceNewAndDeprecatedEventsLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteW3CTraceParentHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.UseIPAddressInTargetUri_ProxyTunnel
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_OperationCanceledException_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLogging_InvalidBaggage
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticCancelledLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_Success_ConnectionSetupActivityGraphRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLoggingDoesNotOverwriteHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ConnectionFailure_RecordsActivitiesWithCorrectErrorInfo
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ActivityIsCreatedIfRequested
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.UseIPAddressInTargetUri_NoProxy_RecordsHostHeaderAsServerAddress
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_DoNotSampleAllData_NoTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_SuppressedGlobalStaticPropagationNoListenerAppCtx
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_HttpTracingEnabled_Succeeds
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.Http3_WaitForConnection_RecordedWhenWaitingForStream
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceUrlFilteredActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_DiagnosticListener_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ActivitySource_ExpectedTagsRecorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticExceptionOnlyActivityLogging
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_DiagnosticsTest.SendAsync_ExpectedDiagnosticSourceNoLogging
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Proxy_Test.Proxy_SslProxyUnsupported_Throws
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Sync.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Sync.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Cancellation_Test.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_Cancellation_Test_Http2.CancelPendingRequest_DropsStalledConnectionAttempt_CustomPendingConnectionTimeout
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20_HttpMessageInvoker.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http20_HttpMessageInvoker.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.AllSocketsHttpHandlerCounters_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.RequestDuration_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_DefaultMeter.ActiveRequests_Success_Recorded
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_ClientEKUServerAuth_Fails
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_NoEKUServerAuth_Ok
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_NoEKUClientAuth_Ok
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientEKUTest.HttpClient_ServerEKUClientAuth_Fails
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_DowngradesPoolToHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_AuthDisabledAfterRedirect_Returns401
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_Http2OnlyRequestsStillWork
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_ExactVersionPolicy_Returns401
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_WithContent_Returns401
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_SubsequentRequestsUseHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_PostSetsFlag_SubsequentGetUsesHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.Http2_SessionAuthChallenge_Http11RequestVersionOrHigher_DowngradesToHttp11
[SKIP] System.Net.Http.Functional.Tests.NtAuthTests.DefaultHandler_FakeServer_Success
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerUsesWindowsAuthentication_Success
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_ServerChallengesWithWindowsAuth_ClientSendsWindowsAuthHeader
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Proxy_DomainJoinedProxyServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_ServerFail
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_ThrowFromContentCopy_RequestFails
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_Streaming
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponseAbort
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingRequest_CancelRequest
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_ResponseStreamTest.BrowserHttpHandler_StreamingResponse
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_BrokenNtlmFromServer
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_CustomTags_DiagnosticListener_Recorded
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_Success
[SKIP] System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async_HttpMessageInvoker.RequestDuration_HttpTracingEnabled_RecordedWhileRequestActivityRunning
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandler_Authentication_Test.Credentials_DomainJoinedServerUsesKerberos_UseIpAddressAndHostHeader_Success
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_UseResponseHeadersReadOption_TrailingHeadersReceived(includeContentLength: True)
[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_Cancellation
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_TrailingHeadersReceived(emptyContent: False, includeContentLength: True)
[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_Http1_TrailingHeaders_Test.GetAsync_TrailingHeadersReceived(emptyContent: True, includeContentLength: True)
[FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(useSocketHandler: True)
System.NullReferenceException : Object reference not set to an instance of an object.
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4722
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection connection)
--- End of stack trace from previous location ---
at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 170--- End of stack trace from previous location --- at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 171 at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_1(LoopbackServer) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4715--- End of stack trace from previous location --- at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 119--- End of stack trace from previous location --- at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[]) in /runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 89 at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<CreateClientAndServerAsync>b__0(LoopbackServer) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 123--- End of stack trace from previous location --- at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 132 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 164 at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2, LoopbackServer.Options) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107--- End of stack trace from previous location --- at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 132 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 164 at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(Boolean) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4694--- End of stack trace from previous location ------ End of stack trace from previous location ------ End of stack trace from previous location ---[FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(useSocketHandler: False)System.NullReferenceException : Object reference not set to an instance of an object. at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4722 at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection connection)--- End of stack trace from previous location --- at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 170--- End of stack trace from previous location --- at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 171 at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_1(LoopbackServer) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4715--- End of stack trace from previous location --- at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 119--- End of stack trace from previous location --- at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[]) in /runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 89 at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<CreateClientAndServerAsync>b__0(LoopbackServer) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 123--- End of stack trace from previous location --- at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 132 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 164 at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2, LoopbackServer.Options) in /runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107--- End of stack trace from previous location --- at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 132 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114 at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 164 at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(Boolean) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4694--- End of stack trace from previous location ------ End of stack trace from previous location ------ End of stack trace from previous location ---[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_DefaultProxyCredentials_Test.ProxySetViaEnvironmentVariable_DefaultProxyCredentialsUsed[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandler_MaxConnectionsPerServer_Test.AppContextSetData_SetDefaultMaxConnectionsPerServer[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_StreamingCancellation[SKIP] System.Net.Http.Functional.Tests.SyncHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_StreamingCancellation[SKIP] System.Net.Http.Functional.Tests.SocketsHttpHandler_HttpClientHandlerTest.ReadAsStreamAsync_CancellationFinished System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51Tests run: 4555, Errors: 0, Failures: 2, Skipped: 148. Time: 49.9817175s~/ISSUE129729/Debug----- end Tue Jun 30 02:37:34 PM CST 2026 ----- exit code 1 ----------------------------------------------------------ulimit -c value: 0cat /proc/sys/kernel/core_pattern: corecat /proc/sys/kernel/core_uses_pid: 1cat: /proc/sys/kernel/coredump_filter: No such file or directorycat /proc/sys/kernel/coredump_filter:Looking around for any Linux dumps...Looking for files matching core.* ...

Under Debug mode LA64 get a different failed at -method System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed, after apply this PR then clean and rebuild,it still failed. On our native linux-x64 will also hit the same failed with the same error at this test interface:

linux-x64: Tests run: 2, Errors: 0, Failures: 2, Skipped: 0. Time: 6.7297756s
Debug-linux-x64-failed-detail
xuliangyu@debian-31-93:/data/xuliangyu/linux-x64-Debug$ ./System.Net.Http.Functional.Tests -method System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
[FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(useSocketHandler: True)
System.NullReferenceException : Object reference not set to an instance of an object.
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4722
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection connection)
--- End of stack trace from previous location ---
at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 170
--- End of stack trace from previous location ---
at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 171
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_1(LoopbackServer) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4715
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 119
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[]) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 89
at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<CreateClientAndServerAsync>b__0(LoopbackServer) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 123
--- End of stack trace from previous location ---
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 131
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 163
at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2, LoopbackServer.Options) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107
--- End of stack trace from previous location ---
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 131
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 163
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(Boolean) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4694
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
[FAIL] System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(useSocketHandler: False)
System.NullReferenceException : Object reference not set to an instance of an object.
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4722
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_2(LoopbackServer.Connection connection)
--- End of stack trace from previous location ---
at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 170
--- End of stack trace from previous location ---
at System.Net.Test.Common.LoopbackServer.AcceptConnectionAsync(Func`2) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 171
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.<>c.<Https_MultipleRequests_TlsResumed>b__3_1(LoopbackServer) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4715
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 119
--- End of stack trace from previous location ---
at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[]) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs:line 89
at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<CreateClientAndServerAsync>b__0(LoopbackServer) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 123
--- End of stack trace from previous location ---
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 131
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 163
at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2, LoopbackServer.Options) in /data/xuliangyu/runtime/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs:line 107
--- End of stack trace from previous location ---
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Task, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 131
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.GetResult(Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 114
at System.Runtime.CompilerServices.RuntimeAsyncTaskContinuation.TaskContinuationResume.ResumeTaskContinuation(Continuation, Byte&) in /data/xuliangyu/runtime/src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeAsyncTaskContinuation.cs:line 163
at System.Net.Http.Functional.Tests.SocketsHttpHandler_SocketsHttpHandler_SecurityTest_Http11.Https_MultipleRequests_TlsResumed(Boolean) in /data/xuliangyu/runtime/src/libraries/System.Net.Http/tests/FunctionalTests/SocketsHttpHandlerTest.cs:line 4694
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
Finished System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
Tests run: 2, Errors: 0, Failures: 2, Skipped: 0. Time: 6.7297756s

If the test step is correct, as LA64 didn't hit the same issue #129792 , I tend to keep the LA64 GetThreadA2 code as it is like ARM64's GetThreadX2.

@am11

am11 commented Jun 30, 2026

Copy link
Copy Markdown
MemberAuthor

Thanks for testing this. Given LA64 passes the exact #129792 repro without this change, I agree it is better to keep this PR RISC-V-only and keep LA64 aligned with ARM64 for now.

  • ARM64 and LA64 currently have the same shape: the throw kind is carried in a caller-saved argument register (x4 / $a4) into the throw implementation, and GetThread is called before the kind is stored into ExInfo._kind.

  • That is not guaranteed by the ABI, but in practice the current ARM64 and LA64 RhpGetThread paths do not appear to clobber that register in this path, so RhpThrowExact still reaches ExInfo._kind as ExKind.RethrowFlag.

  • RISC-V has the same source shape, but different observed behavior: we verified that RhpGetThread clobbers a4, so RhpThrowExact loses ExKind.RethrowFlag before ExInfo._kind is written.

  • Once that flag is lost, the rethrow is treated as a fresh throw (flags=1 instead of flags=3). NativeAOT then clears the existing stack trace, which is why RISCV64 stacktrace test fails with NativeAOT due to missing context #129792 loses the async frames on RISC-V.

  • So the RISC-V change is intentional divergence from ARM64/LA64: it is not changing the exception semantics, it is preserving the value that RISC-V actually loses today.

  • If we want to harden ARM64/LA64 against future RhpGetThread implementation changes, that can be a separate follow-up. Since LA64 does not repro this issue, I think it should stay out of this PR.

am11 added 2 commits June 30, 2026 14:37
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
@jkotas

Copy link
Copy Markdown
Member

That is not guaranteed by the ABI, but in practice the current ARM64 and LA64 RhpGetThread paths do not appear to clobber that register in this path

This is very fragile. The thread-local lookup is replaced dynamically by the linker with multiple different implementations. Just because this "works" in a simple test does not mean that it is going to work in a NAOT library loaded into a process with number of other libraries where RhpGetThread takes slower path.

I would like to see this fixed for all architectures with this bug, including Arm64.

cc @rcj1#122722

Comment threadsrc/coreclr/nativeaot/Runtime/riscv64/ExceptionHandling.S Outdated
@jkotas

Copy link
Copy Markdown
Member

Does Unix amd64 need the same fix?

@jkotasjkotas left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jkotas
jkotas enabled auto-merge (squash) June 30, 2026 20:58
@jkotas
jkotas merged commit 284284d into dotnet:mainJun 30, 2026
108 of 110 checks passed
@am11
am11 deleted the patch-55 branch June 30, 2026 23:46
@dotnet-milestone-botdotnet-milestone-botBot added this to the 11.0-preview7 milestone Jul 1, 2026
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Aug 1, 2026
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-arm64arch-loongarch64arch-riscvRelated to the RISC-V architecturearch-x64area-NativeAOT-coreclrcommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RISCV64 stacktrace test fails with NativeAOT due to missing context

4 participants

@am11@shushanhf@LuckyXu-HF@jkotas