dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.47k stars 4.77k forks source link

[wasm][aot] test fails because it calls `Type.GetType ("FOO")` which uses a stack walk to obtain the calling assembly which is used to resolved `FOO` #52393

Open radical opened 3 years ago

radical commented 3 years ago

System.Runtime.Tests

Seen in https://github.com/dotnet/runtime/pull/52004/checks?check_run_id=2517540700

fail: console.error: RuntimeError: invalid index into function table
fail: console.error: RuntimeError: invalid index into function table

fail:     at corlib_System_Type_Equals_System_Type (<anonymous>:wasm-function[54851]:0x1700cf7)
fail:     at xunit_assert_Xunit_Assert_Throws_System_Type_System_Exception (<anonymous>:wasm-function[23832]:0x53a43d)
fail:     at xunit_assert_Xunit_Assert_Throws_T_REF_System_Action (<anonymous>:wasm-function[23830]:0x53a08a)
fail:     at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArrayAsIList_System_Array (<anonymous>:wasm-function[31042]:0x87e9d5)
fail:     at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArray_System_Array_System_Type_int___int__ (<anonymous>:wasm-function[30805]:0x84105b)
fail:     at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArray_System_Array_System_Type_int___int___object (<anonymous>:wasm-function[30901]:0x85aa85)
fail:     at System_Runtime_Tests_System_Tests_ArrayTests_CreateInstance_Advanced_System_Type_int___int___object (<anonymous>:wasm-function[30900]:0x85a9bd)
fail:     at System_Runtime_Tests_System_Tests_ArrayTests_CreateInstance_System_Type_object (<anonymous>:wasm-function[30899]:0x859cf0)
fail:     at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_void_objobj (<anonymous>:wasm-function[67910]:0x1bac49d)
fail:     at corlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[67587]:0x1b7095c)
fail:     at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[5011]:0xe4577)
fail:     at mono_jit_runtime_invoke (<anonymous>:wasm-function[4983]:0xe2ce7)
fail:     at do_runtime_invoke (<anonymous>:wasm-function[2302]:0x9d5f5)
fail:     at mono_runtime_invoke_checked (<anonymous>:wasm-function[2300]:0x9d5a0)
fail:     at mono_runtime_try_invoke_array (<anonymous>:wasm-function[2452]:0xa1760)
fail:     at mono_runtime_invoke_array_checked (<anonymous>:wasm-function[2456]:0xa1d81)
fail:     at ves_icall_InternalInvoke (<anonymous>:wasm-function[1085]:0x7b0ca)
fail:     at ves_icall_InternalInvoke_raw (<anonymous>:wasm-function[1281]:0x813b1)
fail:     at aot_wrapper_corlib_System_dot_Reflection_System_dot_Reflection_dot_RuntimeMethodInfo__InternalInvoke_pinvoke_obj_this_objclc_object_5b_5d_bclsc_Exception_26__attrs_2obj_cls1d_Reflection_dRuntimeMethodInfo_objclc_object_5b_5d_bclsc_Exception_26__attrs_2 (<anonymous>:wasm-function[62779]:0x19af330)
fail:     at invoke_iiiiii (dotnet.js:12145:32)
fail:     at corlib_System_Reflection_RuntimeMethodInfo_Invoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo (<anonymous>:wasm-function[62780]:0x19af8ad)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_CallTestMethod_object (<anonymous>:wasm-function[20157]:0x3c8fb9)
fail:     at invoke_iiii (dotnet.js:12101:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1___InvokeTestMethodAsyncb__1d_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20172]:0x3cc1e6)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__6 (<anonymous>:wasm-function[22447]:0x4d8a10)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_INST_TStateMachine_INST_ (<anonymous>:wasm-function[21885]:0x4b3a19)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1_TTestCase_REF__InvokeTestMethodAsyncb__1 (<anonymous>:wasm-function[20171]:0x3ca632)
fail:     at corlib_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_invoke_TResult (<anonymous>:wasm-function[66470]:0x1b09ad4)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_MoveNext (<anonymous>:wasm-function[20004]:0x3ab6ba)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_ (<anonymous>:wasm-function[21800]:0x4adf5e)
fail:     at xunit_execution_dotnet_Xunit_Sdk_ExecutionTimer_AggregateAsync_System_Func_1_System_Threading_Tasks_Task (<anonymous>:wasm-function[20002]:0x3ab327)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1_TTestCase_REF__InvokeTestMethodAsyncb__0 (<anonymous>:wasm-function[20170]:0x3ca518)
fail:     at corlib_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_invoke_TResult (<anonymous>:wasm-function[66470]:0x1b09ad4)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_core_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_MoveNext (<anonymous>:wasm-function[23198]:0x504d3d)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_core_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_ (<anonymous>:wasm-function[23419]:0x521816)
fail:     at xunit_core_Xunit_Sdk_ExceptionAggregator_RunAsync_System_Func_1_System_Threading_Tasks_Task (<anonymous>:wasm-function[23194]:0x5045fa)
fail:     at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_this_obj (<anonymous>:wasm-function[67845]:0x1baab2b)
fail:     at jit_call_cb (<anonymous>:wasm-function[9183]:0x1706d2)
fail:     at invoke_vi (dotnet.js:12057:25)
fail:     at mono_llvm_cpp_catch_exception (<anonymous>:wasm-function[6009]:0x1043a0)
fail:     at do_jit_call (<anonymous>:wasm-function[9142]:0x16f98d)
fail:     at interp_exec_method (<anonymous>:wasm-function[9083]:0x1627b9)
fail:     at interp_entry (<anonymous>:wasm-function[9125]:0x16ef3b)
fail:     at interp_entry_instance_1 (<anonymous>:wasm-function[9198]:0x170b87)
fail:     at corlib_aot_wrapper_gsharedvt_in_sig_void_this_bii (<anonymous>:wasm-function[69842]:0x1be36ab)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_InvokeTestMethodAsync_object (<anonymous>:wasm-function[20160]:0x3c9bef)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestInvoker_InvokeTestMethodAsync_object (<anonymous>:wasm-function[20345]:0x3fd5d8)
fail:     at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_this_obj (<anonymous>:wasm-function[67845]:0x1baab2b)
fail:     at jit_call_cb (<anonymous>:wasm-function[9183]:0x1706d2)
fail:     at invoke_vi (dotnet.js:12057:25)
fail:     at mono_llvm_cpp_catch_exception (<anonymous>:wasm-function[6009]:0x1043a0)
fail:     at do_jit_call (<anonymous>:wasm-function[9142]:0x16f98d)
fail:     at interp_exec_method (<anonymous>:wasm-function[9083]:0x162673)
fail:     at interp_entry (<anonymous>:wasm-function[9125]:0x16ef3b)
fail:     at interp_entry_instance_1 (<anonymous>:wasm-function[9198]:0x170b87)
fail:     at corlib_aot_wrapper_gsharedvt_in_sig_void_this_bii (<anonymous>:wasm-function[69842]:0x1be36ab)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF__RunAsyncb__47_0 (<anonymous>:wasm-function[20162]:0x3c9df4)
fail:     at xunit_execution_dotnet_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_1_System_Decimal_invoke_TResult (<anonymous>:wasm-function[21281]:0x476b40)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_MoveNext (<anonymous>:wasm-function[21882]:0x4b2db6)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_ (<anonymous>:wasm-function[22437]:0x4d7a65)
fail:     at xunit_execution_dotnet_Xunit_Sdk_ExceptionAggregator_RunAsync_System_Decimal_System_Func_1_System_Threading_Tasks_Task_1_System_Decimal (<anonymous>:wasm-function[21881]:0x4b2acd)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20159]:0x3c9ab5)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner_InvokeTestMethodAsync_Xunit_Sdk_ExceptionAggregator (<anonymous>:wasm-function[20359]:0x3ff60f)
fail:     at invoke_iiii (dotnet.js:12101:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_MoveNext (<anonymous>:wasm-function[20360]:0x3ffbc9)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_ (<anonymous>:wasm-function[21994]:0x4bcc80)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner_InvokeTestAsync_Xunit_Sdk_ExceptionAggregator (<anonymous>:wasm-function[20358]:0x3ff2d0)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1__c__DisplayClass43_0_TTestCase_REF__RunAsyncb__0 (<anonymous>:wasm-function[20225]:0x3d6750)
fail:     at xunit_execution_dotnet_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_1_System_Tuple_2_System_Decimal_string_invoke_TResult (<anonymous>:wasm-function[21317]:0x479068)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_core_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_T_REF_MoveNext (<anonymous>:wasm-function[23200]:0x505a9d)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_core_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST_ (<anonymous>:wasm-function[23565]:0x527c40)
fail:     at xunit_core_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST_ (<anonymous>:wasm-function[23421]:0x521b6e)
fail:     at xunit_core_Xunit_Sdk_ExceptionAggregator_RunAsync_T_REF_System_Func_1_System_Threading_Tasks_Task_1_T_REF (<anonymous>:wasm-function[23195]:0x5047c9)
fail:     at invoke_iiii (dotnet.js:12101:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1__RunAsyncd__43_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20226]:0x3d7ba6)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__9 (<anonymous>:wasm-function[22452]:0x4d99fc)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__8 (<anonymous>:wasm-function[21894]:0x4b3f1c)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20223]:0x3d65a3)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_MoveNext (<anonymous>:wasm-function[20383]:0x40e35d)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_ (<anonymous>:wasm-function[22006]:0x4bde38)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCaseRunner_RunTestAsync (<anonymous>:wasm-function[20368]:0x401087)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCaseRunner_1__RunAsyncd__19_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20065]:0x3b66d8)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__1 (<anonymous>:wasm-function[22427]:0x4d5fe8)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__1 (<anonymous>:wasm-function[21862]:0x4b17cd)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCaseRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[19996]:0x3aaa0e)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCase_RunAsync_Xunit_Abstractions_IMessageSink_Xunit_Sdk_IMessageBus_object___Xunit_Sdk_ExceptionAggregator_System_Threading_CancellationTokenSource (<anonymous>:wasm-function[20616]:0x438440)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestMethodRunner_RunTestCaseAsync_Xunit_Sdk_IXunitTestCase (<anonymous>:wasm-function[20356]:0x3ff17d)
fail:     at invoke_iiii (dotnet.js:12101:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1__RunTestCasesAsyncd__32_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20200]:0x3d4f0e)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__8 (<anonymous>:wasm-function[22449]:0x4d93b8)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__7 (<anonymous>:wasm-function[21890]:0x4b3c99)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1_TTestCase_REF_RunTestCasesAsync (<anonymous>:wasm-function[20194]:0x3d1bd6)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1__RunAsyncd__31_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20195]:0x3d2443)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__7 (<anonymous>:wasm-function[22448]:0x4d8ee7)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__6 (<anonymous>:wasm-function[21889]:0x4b3c22)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20193]:0x3d1a16)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestClassRunner_RunTestMethodAsync_Xunit_Abstractions_ITestMethod_Xunit_Abstractions_IReflectionMethodInfo_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_object__ (<anonymous>:wasm-function[20288]:0x3e8f05)
fail:     at invoke_iiiiiii (dotnet.js:12233:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1__RunTestMethodsAsyncd__38_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20106]:0x3c17b7)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__3 (<anonymous>:wasm-function[22430]:0x4d69d9)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__3 (<anonymous>:wasm-function[21870]:0x4b2481)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1_TTestCase_REF_RunTestMethodsAsync (<anonymous>:wasm-function[20093]:0x3baeed)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1__RunAsyncd__37_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20101]:0x3bc9d5)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__2 (<anonymous>:wasm-function[22429]:0x4d654b)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__2 (<anonymous>:wasm-function[21869]:0x4b240a)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20092]:0x3bad2d)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestCollectionRunner_RunTestClassAsync_Xunit_Abstractions_ITestClass_Xunit_Abstractions_IReflectionTypeInfo_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase (<anonymous>:wasm-function[20321]:0x3f627b)
fail:     at invoke_iiiiii (dotnet.js:12145:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunTestClassesAsyncd__28_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20133]:0x3c7303)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__5 (<anonymous>:wasm-function[22434]:0x4d74ab)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__5 (<anonymous>:wasm-function[21877]:0x4b2834)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1_TTestCase_REF_RunTestClassesAsync (<anonymous>:wasm-function[20124]:0x3c2b49)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunAsyncd__27_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20125]:0x3c3821)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__4 (<anonymous>:wasm-function[22433]:0x4d701d)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__4 (<anonymous>:wasm-function[21876]:0x4b27bd)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20123]:0x3c2989)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner_RunTestCollectionAsync_Xunit_Sdk_IMessageBus_Xunit_Abstractions_ITestCollection_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_System_Threading_CancellationTokenSource (<anonymous>:wasm-function[20244]:0x3deb4b)
fail:     at invoke_iiiiiii (dotnet.js:12233:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1__RunTestCollectionsAsyncd__42_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20053]:0x3b514b)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__0 (<anonymous>:wasm-function[22423]:0x4d5946)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__0 (<anonymous>:wasm-function[21854]:0x4b146b)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1_TTestCase_REF_RunTestCollectionsAsync_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (<anonymous>:wasm-function[20040]:0x3b0878)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__n__0_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (<anonymous>:wasm-function[20246]:0x3ded95)
fail:     at invoke_iiiii (dotnet.js:12167:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_MoveNext (<anonymous>:wasm-function[20258]:0x3e0181)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_ (<anonymous>:wasm-function[21898]:0x4b4197)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner_RunTestCollectionsAsync_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (<anonymous>:wasm-function[20243]:0x3de8c5)
fail:     at invoke_iiiii (dotnet.js:12167:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1__RunAsyncd__41_TTestCase_REF_MoveNext (<anonymous>:wasm-function[20048]:0x3b2076)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST_ (<anonymous>:wasm-function[22422]:0x4d54a2)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST_ (<anonymous>:wasm-function[21853]:0x4b13f4)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1_TTestCase_REF_RunAsync (<anonymous>:wasm-function[20039]:0x3b0634)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_MoveNext (<anonymous>:wasm-function[20613]:0x437811)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_ (<anonymous>:wasm-function[22063]:0x4c1409)
fail:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestFrameworkExecutor_RunTestCases_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (<anonymous>:wasm-function[20611]:0x4372c4)
fail:     at xunit_execution_dotnet_Xunit_Sdk_TestFrameworkExecutor_1_TTestCase_REF_RunTests_System_Collections_Generic_IEnumerable_1_Xunit_Abstractions_ITestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (<anonymous>:wasm-function[20486]:0x419c9f)
fail:     at xunit_runner_utility_netcoreapp10_Xunit_Xunit2_RunTests_System_Collections_Generic_IEnumerable_1_Xunit_Abstractions_ITestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (<anonymous>:wasm-function[16069]:0x23a780)
fail:     at invoke_viiiii (dotnet.js:12200:25)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_MoveNext (<anonymous>:wasm-function[93660]:0x25ed865)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_ (<anonymous>:wasm-function[93784]:0x25fc863)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner_Run_string_bool_Xunit_XunitFilters (<anonymous>:wasm-function[93647]:0x25e89b0)
fail:     at invoke_iiiii (dotnet.js:12167:32)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_MoveNext (<anonymous>:wasm-function[93681]:0x25f3781)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_ (<anonymous>:wasm-function[93846]:0x25fee7a)
fail:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint_Run (<anonymous>:wasm-function[93678]:0x25efee1)
fail:     at invoke_iii (dotnet.js:12090:32)
fail:     at WasmTestRunner_SimpleWasmTestRunner__Maind__0_MoveNext (<anonymous>:wasm-function[24567]:0x57f1dc)
fail:     at invoke_vii (dotnet.js:12079:25)
fail:     at WasmTestRunner_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_SimpleWasmTestRunner__Maind__0_SimpleWasmTestRunner__Maind__0_ (<anonymous>:wasm-function[24609]:0x58324f)
fail:     at WasmTestRunner_SimpleWasmTestRunner_Main_string__ (<anonymous>:wasm-function[24563]:0x57c502)
fail:     at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_obj (<anonymous>:wasm-function[67822]:0x1baa40e)
fail:     at invoke_viii (dotnet.js:12112:25)
fail:     at corlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[67587]:0x1b70bcc)
fail:     at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[5011]:0xe4577)
fail:     at mono_jit_runtime_invoke (<anonymous>:wasm-function[4983]:0xe2ce7)
fail:     at do_runtime_invoke (<anonymous>:wasm-function[2302]:0x9d5f5)
fail:     at mono_runtime_try_invoke (<anonymous>:wasm-function[2311]:0x9dbea)
fail:     at mono_runtime_invoke (<anonymous>:wasm-function[2386]:0x9fc2c)
fail:     at mono_wasm_invoke_method (<anonymous>:wasm-function[101777]:0x290fc59)
fail:     at Object.Module._mono_wasm_invoke_method [as invoke_method] (dotnet.js:11320:117)
fail:     at Object._call_method_with_converted_args (dotnet.js:9235:30)
fail:     at Object.call_method (dotnet.js:9195:18)
fail:     at dotnet.js:9454:29
fail:     at Object.call_assembly_entry_point (dotnet.js:9461:66)
fail:     at Object.init (runtime.js:355:24)
fail:     at Object.config.loaded_cb (runtime.js:241:8)
fail:     at Object._finalize_startup (dotnet.js:7411:11)
fail:     at onPendingRequestComplete (dotnet.js:7448:14)
fail:     at processFetchResponseBuffer (dotnet.js:7463:8)
info: Process v8 exited with 1
ghost commented 3 years ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

Issue Details
[System.Runtime.Tests](https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-52004-merge-3dd81fa5d0b34cd8a4/System.Runtime.Tests/console.c20daf34.log?sv=2019-07-07&se=2021-05-26T09%3A41%3A25Z&sr=c&sp=rl&sig=SMjMqOkkeGjsu3Qw%2BsJS%2BdyJoKkGBOex3M5va3FGvNk%3D) Seen in https://github.com/dotnet/runtime/pull/52004/checks?check_run_id=2517540700 ``` fail: console.error: RuntimeError: invalid index into function table fail: console.error: RuntimeError: invalid index into function table fail: at corlib_System_Type_Equals_System_Type (:wasm-function[54851]:0x1700cf7) fail: at xunit_assert_Xunit_Assert_Throws_System_Type_System_Exception (:wasm-function[23832]:0x53a43d) fail: at xunit_assert_Xunit_Assert_Throws_T_REF_System_Action (:wasm-function[23830]:0x53a08a) fail: at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArrayAsIList_System_Array (:wasm-function[31042]:0x87e9d5) fail: at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArray_System_Array_System_Type_int___int__ (:wasm-function[30805]:0x84105b) fail: at System_Runtime_Tests_System_Tests_ArrayTests_VerifyArray_System_Array_System_Type_int___int___object (:wasm-function[30901]:0x85aa85) fail: at System_Runtime_Tests_System_Tests_ArrayTests_CreateInstance_Advanced_System_Type_int___int___object (:wasm-function[30900]:0x85a9bd) fail: at System_Runtime_Tests_System_Tests_ArrayTests_CreateInstance_System_Type_object (:wasm-function[30899]:0x859cf0) fail: at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_void_objobj (:wasm-function[67910]:0x1bac49d) fail: at corlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (:wasm-function[67587]:0x1b7095c) fail: at mono_llvmonly_runtime_invoke (:wasm-function[5011]:0xe4577) fail: at mono_jit_runtime_invoke (:wasm-function[4983]:0xe2ce7) fail: at do_runtime_invoke (:wasm-function[2302]:0x9d5f5) fail: at mono_runtime_invoke_checked (:wasm-function[2300]:0x9d5a0) fail: at mono_runtime_try_invoke_array (:wasm-function[2452]:0xa1760) fail: at mono_runtime_invoke_array_checked (:wasm-function[2456]:0xa1d81) fail: at ves_icall_InternalInvoke (:wasm-function[1085]:0x7b0ca) fail: at ves_icall_InternalInvoke_raw (:wasm-function[1281]:0x813b1) fail: at aot_wrapper_corlib_System_dot_Reflection_System_dot_Reflection_dot_RuntimeMethodInfo__InternalInvoke_pinvoke_obj_this_objclc_object_5b_5d_bclsc_Exception_26__attrs_2obj_cls1d_Reflection_dRuntimeMethodInfo_objclc_object_5b_5d_bclsc_Exception_26__attrs_2 (:wasm-function[62779]:0x19af330) fail: at invoke_iiiiii (dotnet.js:12145:32) fail: at corlib_System_Reflection_RuntimeMethodInfo_Invoke_object_System_Reflection_BindingFlags_System_Reflection_Binder_object___System_Globalization_CultureInfo (:wasm-function[62780]:0x19af8ad) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_CallTestMethod_object (:wasm-function[20157]:0x3c8fb9) fail: at invoke_iiii (dotnet.js:12101:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1___InvokeTestMethodAsyncb__1d_TTestCase_REF_MoveNext (:wasm-function[20172]:0x3cc1e6) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__6 (:wasm-function[22447]:0x4d8a10) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_Start_TStateMachine_INST_TStateMachine_INST_ (:wasm-function[21885]:0x4b3a19) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1_TTestCase_REF__InvokeTestMethodAsyncb__1 (:wasm-function[20171]:0x3ca632) fail: at corlib_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_invoke_TResult (:wasm-function[66470]:0x1b09ad4) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_MoveNext (:wasm-function[20004]:0x3ab6ba) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_Xunit_Sdk_ExecutionTimer__AggregateAsyncd__4_ (:wasm-function[21800]:0x4adf5e) fail: at xunit_execution_dotnet_Xunit_Sdk_ExecutionTimer_AggregateAsync_System_Func_1_System_Threading_Tasks_Task (:wasm-function[20002]:0x3ab327) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1__c__DisplayClass48_1_TTestCase_REF__InvokeTestMethodAsyncb__0 (:wasm-function[20170]:0x3ca518) fail: at corlib_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_invoke_TResult (:wasm-function[66470]:0x1b09ad4) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_core_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_MoveNext (:wasm-function[23198]:0x504d3d) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_core_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_Xunit_Sdk_ExceptionAggregator__RunAsyncd__9_ (:wasm-function[23419]:0x521816) fail: at xunit_core_Xunit_Sdk_ExceptionAggregator_RunAsync_System_Func_1_System_Threading_Tasks_Task (:wasm-function[23194]:0x5045fa) fail: at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_this_obj (:wasm-function[67845]:0x1baab2b) fail: at jit_call_cb (:wasm-function[9183]:0x1706d2) fail: at invoke_vi (dotnet.js:12057:25) fail: at mono_llvm_cpp_catch_exception (:wasm-function[6009]:0x1043a0) fail: at do_jit_call (:wasm-function[9142]:0x16f98d) fail: at interp_exec_method (:wasm-function[9083]:0x1627b9) fail: at interp_entry (:wasm-function[9125]:0x16ef3b) fail: at interp_entry_instance_1 (:wasm-function[9198]:0x170b87) fail: at corlib_aot_wrapper_gsharedvt_in_sig_void_this_bii (:wasm-function[69842]:0x1be36ab) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_InvokeTestMethodAsync_object (:wasm-function[20160]:0x3c9bef) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestInvoker_InvokeTestMethodAsync_object (:wasm-function[20345]:0x3fd5d8) fail: at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_this_obj (:wasm-function[67845]:0x1baab2b) fail: at jit_call_cb (:wasm-function[9183]:0x1706d2) fail: at invoke_vi (dotnet.js:12057:25) fail: at mono_llvm_cpp_catch_exception (:wasm-function[6009]:0x1043a0) fail: at do_jit_call (:wasm-function[9142]:0x16f98d) fail: at interp_exec_method (:wasm-function[9083]:0x162673) fail: at interp_entry (:wasm-function[9125]:0x16ef3b) fail: at interp_entry_instance_1 (:wasm-function[9198]:0x170b87) fail: at corlib_aot_wrapper_gsharedvt_in_sig_void_this_bii (:wasm-function[69842]:0x1be36ab) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF__RunAsyncb__47_0 (:wasm-function[20162]:0x3c9df4) fail: at xunit_execution_dotnet_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_1_System_Decimal_invoke_TResult (:wasm-function[21281]:0x476b40) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_MoveNext (:wasm-function[21882]:0x4b2db6) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_System_Decimal_ (:wasm-function[22437]:0x4d7a65) fail: at xunit_execution_dotnet_Xunit_Sdk_ExceptionAggregator_RunAsync_System_Decimal_System_Func_1_System_Threading_Tasks_Task_1_System_Decimal (:wasm-function[21881]:0x4b2acd) fail: at xunit_execution_dotnet_Xunit_Sdk_TestInvoker_1_TTestCase_REF_RunAsync (:wasm-function[20159]:0x3c9ab5) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner_InvokeTestMethodAsync_Xunit_Sdk_ExceptionAggregator (:wasm-function[20359]:0x3ff60f) fail: at invoke_iiii (dotnet.js:12101:32) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_MoveNext (:wasm-function[20360]:0x3ffbc9) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_Xunit_Sdk_XunitTestRunner__InvokeTestAsyncd__4_ (:wasm-function[21994]:0x4bcc80) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestRunner_InvokeTestAsync_Xunit_Sdk_ExceptionAggregator (:wasm-function[20358]:0x3ff2d0) fail: at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1__c__DisplayClass43_0_TTestCase_REF__RunAsyncb__0 (:wasm-function[20225]:0x3d6750) fail: at xunit_execution_dotnet_wrapper_delegate_invoke_System_Func_1_System_Threading_Tasks_Task_1_System_Tuple_2_System_Decimal_string_invoke_TResult (:wasm-function[21317]:0x479068) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_core_Xunit_Sdk_ExceptionAggregator__RunAsyncd__10_1_T_REF_MoveNext (:wasm-function[23200]:0x505a9d) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_core_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST_ (:wasm-function[23565]:0x527c40) fail: at xunit_core_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST_ (:wasm-function[23421]:0x521b6e) fail: at xunit_core_Xunit_Sdk_ExceptionAggregator_RunAsync_T_REF_System_Func_1_System_Threading_Tasks_Task_1_T_REF (:wasm-function[23195]:0x5047c9) fail: at invoke_iiii (dotnet.js:12101:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1__RunAsyncd__43_TTestCase_REF_MoveNext (:wasm-function[20226]:0x3d7ba6) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__9 (:wasm-function[22452]:0x4d99fc) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__8 (:wasm-function[21894]:0x4b3f1c) fail: at xunit_execution_dotnet_Xunit_Sdk_TestRunner_1_TTestCase_REF_RunAsync (:wasm-function[20223]:0x3d65a3) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_MoveNext (:wasm-function[20383]:0x40e35d) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_Xunit_Sdk_XunitTheoryTestCaseRunner__RunTestAsyncd__11_ (:wasm-function[22006]:0x4bde38) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCaseRunner_RunTestAsync (:wasm-function[20368]:0x401087) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCaseRunner_1__RunAsyncd__19_TTestCase_REF_MoveNext (:wasm-function[20065]:0x3b66d8) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__1 (:wasm-function[22427]:0x4d5fe8) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__1 (:wasm-function[21862]:0x4b17cd) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCaseRunner_1_TTestCase_REF_RunAsync (:wasm-function[19996]:0x3aaa0e) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTheoryTestCase_RunAsync_Xunit_Abstractions_IMessageSink_Xunit_Sdk_IMessageBus_object___Xunit_Sdk_ExceptionAggregator_System_Threading_CancellationTokenSource (:wasm-function[20616]:0x438440) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestMethodRunner_RunTestCaseAsync_Xunit_Sdk_IXunitTestCase (:wasm-function[20356]:0x3ff17d) fail: at invoke_iiii (dotnet.js:12101:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1__RunTestCasesAsyncd__32_TTestCase_REF_MoveNext (:wasm-function[20200]:0x3d4f0e) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__8 (:wasm-function[22449]:0x4d93b8) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__7 (:wasm-function[21890]:0x4b3c99) fail: at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1_TTestCase_REF_RunTestCasesAsync (:wasm-function[20194]:0x3d1bd6) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1__RunAsyncd__31_TTestCase_REF_MoveNext (:wasm-function[20195]:0x3d2443) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__7 (:wasm-function[22448]:0x4d8ee7) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__6 (:wasm-function[21889]:0x4b3c22) fail: at xunit_execution_dotnet_Xunit_Sdk_TestMethodRunner_1_TTestCase_REF_RunAsync (:wasm-function[20193]:0x3d1a16) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestClassRunner_RunTestMethodAsync_Xunit_Abstractions_ITestMethod_Xunit_Abstractions_IReflectionMethodInfo_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_object__ (:wasm-function[20288]:0x3e8f05) fail: at invoke_iiiiiii (dotnet.js:12233:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1__RunTestMethodsAsyncd__38_TTestCase_REF_MoveNext (:wasm-function[20106]:0x3c17b7) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__3 (:wasm-function[22430]:0x4d69d9) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__3 (:wasm-function[21870]:0x4b2481) fail: at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1_TTestCase_REF_RunTestMethodsAsync (:wasm-function[20093]:0x3baeed) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1__RunAsyncd__37_TTestCase_REF_MoveNext (:wasm-function[20101]:0x3bc9d5) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__2 (:wasm-function[22429]:0x4d654b) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__2 (:wasm-function[21869]:0x4b240a) fail: at xunit_execution_dotnet_Xunit_Sdk_TestClassRunner_1_TTestCase_REF_RunAsync (:wasm-function[20092]:0x3bad2d) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestCollectionRunner_RunTestClassAsync_Xunit_Abstractions_ITestClass_Xunit_Abstractions_IReflectionTypeInfo_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase (:wasm-function[20321]:0x3f627b) fail: at invoke_iiiiii (dotnet.js:12145:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunTestClassesAsyncd__28_TTestCase_REF_MoveNext (:wasm-function[20133]:0x3c7303) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__5 (:wasm-function[22434]:0x4d74ab) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__5 (:wasm-function[21877]:0x4b2834) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1_TTestCase_REF_RunTestClassesAsync (:wasm-function[20124]:0x3c2b49) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1__RunAsyncd__27_TTestCase_REF_MoveNext (:wasm-function[20125]:0x3c3821) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__4 (:wasm-function[22433]:0x4d701d) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__4 (:wasm-function[21876]:0x4b27bd) fail: at xunit_execution_dotnet_Xunit_Sdk_TestCollectionRunner_1_TTestCase_REF_RunAsync (:wasm-function[20123]:0x3c2989) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner_RunTestCollectionAsync_Xunit_Sdk_IMessageBus_Xunit_Abstractions_ITestCollection_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_System_Threading_CancellationTokenSource (:wasm-function[20244]:0x3deb4b) fail: at invoke_iiiiiii (dotnet.js:12233:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1__RunTestCollectionsAsyncd__42_TTestCase_REF_MoveNext (:wasm-function[20053]:0x3b514b) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST__0 (:wasm-function[22423]:0x4d5946) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST__0 (:wasm-function[21854]:0x4b146b) fail: at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1_TTestCase_REF_RunTestCollectionsAsync_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (:wasm-function[20040]:0x3b0878) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__n__0_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (:wasm-function[20246]:0x3ded95) fail: at invoke_iiiii (dotnet.js:12167:32) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_MoveNext (:wasm-function[20258]:0x3e0181) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_Xunit_Sdk_XunitTestAssemblyRunner__RunTestCollectionsAsyncd__14_ (:wasm-function[21898]:0x4b4197) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestAssemblyRunner_RunTestCollectionsAsync_Xunit_Sdk_IMessageBus_System_Threading_CancellationTokenSource (:wasm-function[20243]:0x3de8c5) fail: at invoke_iiiii (dotnet.js:12167:32) fail: at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1__RunAsyncd__41_TTestCase_REF_MoveNext (:wasm-function[20048]:0x3b2076) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_INST_TStateMachine_INST_ (:wasm-function[22422]:0x4d54a2) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncTaskMethodBuilder_1_TResult_REF_Start_TStateMachine_INST_TStateMachine_INST_ (:wasm-function[21853]:0x4b13f4) fail: at xunit_execution_dotnet_Xunit_Sdk_TestAssemblyRunner_1_TTestCase_REF_RunAsync (:wasm-function[20039]:0x3b0634) fail: at invoke_iii (dotnet.js:12090:32) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_MoveNext (:wasm-function[20613]:0x437811) fail: at invoke_vii (dotnet.js:12079:25) fail: at xunit_execution_dotnet_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_Xunit_Sdk_XunitTestFrameworkExecutor__RunTestCasesd__8_ (:wasm-function[22063]:0x4c1409) fail: at xunit_execution_dotnet_Xunit_Sdk_XunitTestFrameworkExecutor_RunTestCases_System_Collections_Generic_IEnumerable_1_Xunit_Sdk_IXunitTestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (:wasm-function[20611]:0x4372c4) fail: at xunit_execution_dotnet_Xunit_Sdk_TestFrameworkExecutor_1_TTestCase_REF_RunTests_System_Collections_Generic_IEnumerable_1_Xunit_Abstractions_ITestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (:wasm-function[20486]:0x419c9f) fail: at xunit_runner_utility_netcoreapp10_Xunit_Xunit2_RunTests_System_Collections_Generic_IEnumerable_1_Xunit_Abstractions_ITestCase_Xunit_Abstractions_IMessageSink_Xunit_Abstractions_ITestFrameworkExecutionOptions (:wasm-function[16069]:0x23a780) fail: at invoke_viiiii (dotnet.js:12200:25) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_MoveNext (:wasm-function[93660]:0x25ed865) fail: at invoke_vii (dotnet.js:12079:25) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_ (:wasm-function[93784]:0x25fc863) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner_Run_string_bool_Xunit_XunitFilters (:wasm-function[93647]:0x25e89b0) fail: at invoke_iiiii (dotnet.js:12167:32) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_MoveNext (:wasm-function[93681]:0x25f3781) fail: at invoke_vii (dotnet.js:12079:25) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_ (:wasm-function[93846]:0x25fee7a) fail: at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint_Run (:wasm-function[93678]:0x25efee1) fail: at invoke_iii (dotnet.js:12090:32) fail: at WasmTestRunner_SimpleWasmTestRunner__Maind__0_MoveNext (:wasm-function[24567]:0x57f1dc) fail: at invoke_vii (dotnet.js:12079:25) fail: at WasmTestRunner_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_SimpleWasmTestRunner__Maind__0_SimpleWasmTestRunner__Maind__0_ (:wasm-function[24609]:0x58324f) fail: at WasmTestRunner_SimpleWasmTestRunner_Main_string__ (:wasm-function[24563]:0x57c502) fail: at corlib_aot_wrapper_gsharedvt_out_sig_pinvoke_obj_obj (:wasm-function[67822]:0x1baa40e) fail: at invoke_viii (dotnet.js:12112:25) fail: at corlib_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (:wasm-function[67587]:0x1b70bcc) fail: at mono_llvmonly_runtime_invoke (:wasm-function[5011]:0xe4577) fail: at mono_jit_runtime_invoke (:wasm-function[4983]:0xe2ce7) fail: at do_runtime_invoke (:wasm-function[2302]:0x9d5f5) fail: at mono_runtime_try_invoke (:wasm-function[2311]:0x9dbea) fail: at mono_runtime_invoke (:wasm-function[2386]:0x9fc2c) fail: at mono_wasm_invoke_method (:wasm-function[101777]:0x290fc59) fail: at Object.Module._mono_wasm_invoke_method [as invoke_method] (dotnet.js:11320:117) fail: at Object._call_method_with_converted_args (dotnet.js:9235:30) fail: at Object.call_method (dotnet.js:9195:18) fail: at dotnet.js:9454:29 fail: at Object.call_assembly_entry_point (dotnet.js:9461:66) fail: at Object.init (runtime.js:355:24) fail: at Object.config.loaded_cb (runtime.js:241:8) fail: at Object._finalize_startup (dotnet.js:7411:11) fail: at onPendingRequestComplete (dotnet.js:7448:14) fail: at processFetchResponseBuffer (dotnet.js:7463:8) info: Process v8 exited with 1 ```
Author: radical
Assignees: -
Labels: `arch-wasm`, `area-Codegen-AOT-mono`, `wasm-aot-test`
Milestone: -
vargaz commented 3 years ago

Sometimes it fails in the WaitHandle tests, a small testcase:

        WaitHandle toSignal = new Mutex();
        AutoResetEvent toWaitOn = new AutoResetEvent(false);

        toWaitOn.Set();

        try {
            WaitHandle.SignalAndWait (toSignal, toWaitOn);
        } catch (Exception ex) {
            Console.WriteLine ("EX: " + ex);
        }

        toWaitOn.WaitOne(0);

This runs with the interpreter, and hangs with AOT.

radical commented 3 years ago

Instead of a crash, or build error, we get test failures (last week or so):

[18:58:12] info: Starting:    System.Runtime.Tests.dll
[18:58:23] fail: [FAIL] System.Tests.StackTraceHiddenAttributeTests.MethodHidden_ExceptionStackTrace
[18:58:23] info: Assert.Contains() Failure
[18:58:23] info: Not found: ThrowStackTraceMethodA
[18:58:23] info: In value:     at System.Tests.StackTraceHiddenAttributeTests.MethodHidden_ExceptionStackTrace()
[18:58:23] info:    at System.Tests.StackTraceHiddenAttributeTests.MethodHidden_ExceptionStackTrace()
[18:58:38] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[18:58:38] fail: [FAIL] System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace
[18:58:38] info: Assert.Contains() Failure
[18:58:38] info: Not found: GetStackTraceMethodA
[18:58:38] info: In value:
[18:58:38] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[18:58:38] fail: [FAIL] System.Tests.StackTraceHiddenAttributeTests.ConstructorHidden_EnvironmentStackTrace
[18:58:38] info: Assert.Contains() Failure
[18:58:38] info: Not found: NotHiddenConstructor
[18:58:38] info: In value:
[18:58:38] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[18:58:38] fail: [FAIL] System.Tests.TypeTests.GetTypeByName_InvokeViaReflection_Success
[18:58:38] info: Assert.Equal() Failure
[18:58:38] info: Expected: typeof(System.Tests.TypeTests)
[18:58:38] info: Actual:   (null)
[18:58:38] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[18:59:42] fail: [FAIL] System.Tests.ExceptionTests.Exception_TargetSite_Rethrow
[18:59:42] info: Assert.Equal() Failure
[18:59:42] info:           ↓ (pos 0)
[18:59:42] info: Expected: ThrowException
[18:59:42] info: Actual:   RethrowException
[18:59:42] info:           ↑ (pos 0)
[18:59:42] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[18:59:42] fail: [FAIL] System.Tests.ExceptionTests.Exception_TargetSite_OtherMethod
[18:59:42] info: Assert.Equal() Failure
[18:59:42] info:           ↓ (pos 0)
[18:59:42] info: Expected: ThrowException
[18:59:42] info: Actual:   <Exception_TargetSite_OtherMethod>b__8_0
[18:59:42] info:           ↑ (pos 0)
[18:59:42] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
[19:00:58] fail: [FAIL] System.Runtime.ExceptionServices.Tests.ExceptionDispatchInfoTests.SetCurrentStackTrace_IncludedInExceptionStackTrace
[19:00:58] info: Assert.Contains() Failure
[19:00:58] info: Not found: ABCDEFGHIJKLMNOPQRSTUVWXYZ
[19:00:58] info: In value:
[19:00:58] info: --- End of stack trace from previous location ---
[19:00:58] info: 
[19:00:58] info:    at System.Runtime.ExceptionServices.Tests.ExceptionDispatchInfoTests.SetCurrentStackTrace_IncludedInExceptionStackTrace()
[19:00:58] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
lewing commented 3 years ago

Most of these are AOT stack trace related

radical commented 3 years ago

The stacktrace related tests have been disabled. Last remaining test:

[22:09:18] fail: [FAIL] System.Tests.TypeTests.GetTypeByName_InvokeViaReflection_Success
[22:09:18] info: Assert.Equal() Failure
[22:09:18] info: Expected: typeof(System.Tests.TypeTests)
[22:09:18] info: Actual:   (null)
[22:09:18] info:    at System.Reflection.RuntimeMethodInfo.Invoke(Object , BindingFlags , Binder , Object[] , CultureInfo )
lewing commented 3 years ago

this doesn't fail with eat?

radical commented 3 years ago

this doesn't fail with eat?

Yep

  <test name="System.Tests.TypeTests.GetTypeByName_InvokeViaReflection_Success" 
        type="System.Tests.TypeTests"
        method="GetTypeByName_InvokeViaReflection_Success"
        time="0.000297"
        result="Pass" />
vargaz commented 3 years ago

This is not going to work with aot because it calls Type.GetType ("FOO"); which uses a stack walk to obtain the calling assembly which is used to resolved FOO.

radical commented 3 years ago

Should the test be disabled with this as the ActiveIssue, or just disable it?

vargaz commented 3 years ago

Just disable it imho it's not going to get fixed.