After running all libraries and runtime tests in AOT mode on linux-riscv64 machine, I have found one issue:
am11@k1:~/naottstlibs/http$ lldb -- ./System.Net.Http.Functional.Tests -method System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured
SOS_HOSTING: Failed to find runtime directory
Unrecognized command'setsymbolserver' because managed hosting failed or was disabled. See sethostruntime commandfor details.
(lldb) target create "./System.Net.Http.Functional.Tests"
Current executable set to '/home/am11/naottstlibs/http/System.Net.Http.Functional.Tests' (riscv64).
(lldb) settings set -- target.run-args "-method""System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured"
(lldb) r
Process 3844930 launched: '/home/am11/naottstlibs/http/System.Net.Http.Functional.Tests' (riscv64)
Running assembly:System.Net.Http.Functional.Tests, Version=11.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
===== OperationCanceledException_WithOriginalCancellationToken BEGIN exceptionText =====
System.Threading.Tasks.TaskCanceledException: Useful information
---> System.OperationCanceledException: Useful information
---> System.Exception: Useful inner exception information
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception, Boolean, HttpResponseMessage, CancellationTokenSource, CancellationToken, CancellationTokenSource) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 644
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 564
--- End of stack trace from previous location ---
at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139
===== OperationCanceledException_WithOriginalCancellationToken END exceptionText =====
[FAIL] System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(scenario: OperationCanceledException_WithOriginalCancellationToken)
Assert.Contains() Failure: Sub-string not found
String: "System.Threading.Tasks.TaskCanceledException: Usef"···
Not found: "InterestingMethodInTheStackTrace"
at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(HttpClientTest.HttpClientSendTest.ExceptionScenario) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1636
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
===== OperationCanceledException_UnknownCancellationToken BEGIN exceptionText =====
System.Threading.Tasks.TaskCanceledException: Useful information
---> System.OperationCanceledException: Useful information
---> System.Exception: Useful inner exception information
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544
--- End of inner exception stack trace ---
at System.Net.Http.HttpClient.HandleFailure(Exception, Boolean, HttpResponseMessage, CancellationTokenSource, CancellationToken, CancellationTokenSource) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 644
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 564
--- End of stack trace from previous location ---
at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139
===== OperationCanceledException_UnknownCancellationToken END exceptionText =====
[FAIL] System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(scenario: OperationCanceledException_UnknownCancellationToken)
Assert.Contains() Failure: Sub-string not found
String: "System.Threading.Tasks.TaskCanceledException: Usef"···
Not found: "InterestingMethodInTheStackTrace"
at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(HttpClientTest.HttpClientSendTest.ExceptionScenario) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1636
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
--- End of stack trace from previous location ---
===== HttpRequestException BEGIN exceptionText =====
System.Net.Http.HttpRequestException: Useful information
---> System.Exception: Useful inner exception information
--- End of inner exception stack trace ---
at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>g__InterestingMethodInTheStackTrace|6_1(Func`1 exceptionFactory) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1639 at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<>c__DisplayClass6_0.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>b__0(HttpRequestMessage, CancellationToken) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1607 at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<>c__DisplayClass6_0.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>b__0(HttpRequestMessage _, CancellationToken cancellationToken)--- End of stack trace from previous location --- at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544--- End of stack trace from previous location --- at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139===== HttpRequestException END exceptionText ========== HttpRequestException_DuringCancellation BEGIN exceptionText =====System.Threading.Tasks.TaskCanceledException: The operation was canceled. ---> System.Net.Http.HttpRequestException: Useful information ---> System.Exception: Useful inner exception information --- End of inner exception stack trace --- at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544 --- End of inner exception stack trace --- at System.Net.Http.HttpClient.HandleFailure(Exception, Boolean, HttpResponseMessage, CancellationTokenSource, CancellationToken, CancellationTokenSource) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 644 at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 564--- End of stack trace from previous location --- at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139===== HttpRequestException_DuringCancellation END exceptionText =====[FAIL] System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(scenario: HttpRequestException_DuringCancellation)Assert.Contains() Failure: Sub-string not foundString: "System.Threading.Tasks.TaskCanceledException: The "···Not found: "InterestingMethodInTheStackTrace" at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(HttpClientTest.HttpClientSendTest.ExceptionScenario) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1636--- End of stack trace from previous location ------ End of stack trace from previous location ------ End of stack trace from previous location ---===== UnknownException BEGIN exceptionText =====System.Exception: Useful information ---> System.Exception: Useful inner exception information --- End of inner exception stack trace --- at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>g__InterestingMethodInTheStackTrace|6_1(Func`1 exceptionFactory) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1639 at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<>c__DisplayClass6_0.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>b__0(HttpRequestMessage, CancellationToken) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1613 at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.<>c__DisplayClass6_0.<Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured>b__0(HttpRequestMessage _, CancellationToken cancellationToken)--- End of stack trace from previous location --- at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544--- End of stack trace from previous location --- at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139===== UnknownException END exceptionText ========== UnknownException_DuringCancellation BEGIN exceptionText =====System.Exception: Useful information ---> System.Exception: Useful inner exception information --- End of inner exception stack trace --- at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage, HttpCompletionOption, CancellationTokenSource, Boolean, CancellationTokenSource, CancellationToken) in /runtime/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 544--- End of stack trace from previous location --- at Xunit.Assert.<RecordExceptionAsync>d__215.MoveNext() in /_/src/arcade/src/Microsoft.DotNet.XUnitAssert/src/Record.cs:line 139===== UnknownException_DuringCancellation END exceptionText =====[FAIL] System.Net.Http.Functional.Tests.HttpClientSendTest_Async.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(scenario: UnknownException_DuringCancellation)Assert.Contains() Failure: Sub-string not foundString: "System.Exception: Useful information\n ---> System."···Not found: "InterestingMethodInTheStackTrace" at System.Net.Http.Functional.Tests.HttpClientTest.HttpClientSendTest.Send_InnerHandlerThrows_OriginalExceptionInformationIsCaptured(HttpClientTest.HttpClientSendTest.ExceptionScenario) in /runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs:line 1636--- 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=cc7b13ffcd2ddd51Tests run: 6, Errors: 0, Failures: 4, Skipped: 0. Time: 0.1947178sProcess 3844930 exited with status = 1 (0x00000001) (lldb) q
After running all libraries and runtime tests in AOT mode on linux-riscv64 machine, I have found one issue:
This assertion fails:
runtime/src/libraries/System.Net.Http/tests/FunctionalTests/HttpClientTest.cs
Line 1634 in 46b72c7
I added a debug (Console.Write) line and found this: