dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.42k stars 199 forks source link

NativeAOT-LLVM: Merge to 1 Jun 23 #2326

Closed yowl closed 1 year ago

yowl commented 1 year ago

A small step forward to try to isolate what is causing the test failures

yowl commented 1 year ago

Removed some tests for MD Arrays in DynamicGenerics because they start failing from

         RuntimeError: unreachable
              at __trap (wasm://wasm/0b0ccf12:wasm-function[37647]:0x1ac3a1d)
              at Module.___trap (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\D
  ynamicGenerics\DynamicGenerics\native\DynamicGenerics.js:6052:66)
              at abort (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\DynamicGen
  erics\DynamicGenerics\native\DynamicGenerics.js:954:3)
              at _abort (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\DynamicGe
  nerics\DynamicGenerics\native\DynamicGenerics.js:4952:7)
              at Assert(char const*, char const*, unsigned int, char const*) (wasm://wasm/0b0ccf12:wasm-function[49]:0x
  1b768)
              at WKS::CObjectHeader::SetMarked() (wasm://wasm/0b0ccf12:wasm-function[1254]:0x9bb78)
              at WKS::gc_heap::mark_object_simple(unsigned char**) (wasm://wasm/0b0ccf12:wasm-function[1351]:0xca6b5)
              at WKS::GCHeap::Promote(Object**, ScanContext*, unsigned int) (wasm://wasm/0b0ccf12:wasm-function[1348]:0
  xc7dbb)
              at GcEnumObjectsConservatively(Object**, Object**, void (*)(Object**, ScanContext*, unsigned int), ScanCo
  ntext*) (wasm://wasm/0b0ccf12:wasm-function[868]:0x5b341)
              at RedhawkGCInterface::EnumGcRefsInRegionConservatively(RtuObjectRef*, RtuObjectRef*, void*, void*) (wasm
  ://wasm/0b0ccf12:wasm-function[1904]:0x124876)
              at GcScanWasmShadowStack(void*, void*) (wasm://wasm/0b0ccf12:wasm-function[260]:0x2b40f)
              at Thread::GcScanRoots(void*, void*) (wasm://wasm/0b0ccf12:wasm-function[261]:0x2b47f)
              at GCToEEInterface::GcScanRoots(void (*)(Object**, ScanContext*, unsigned int), int, int, ScanContext*) (
  wasm://wasm/0b0ccf12:wasm-function[863]:0x5acc2)
              at GCScan::GcScanRoots(void (*)(Object**, ScanContext*, unsigned int), int, int, ScanContext*) (wasm://wa
  sm/0b0ccf12:wasm-function[879]:0x5b919)
              at WKS::gc_heap::mark_phase(int, int) (wasm://wasm/0b0ccf12:wasm-function[1303]:0xaef12)
              at WKS::gc_heap::gc1() (wasm://wasm/0b0ccf12:wasm-function[1297]:0xa71bc)
              at WKS::gc_heap::garbage_collect(int) (wasm://wasm/0b0ccf12:wasm-function[1227]:0x92bc1)
              at WKS::GCHeap::GarbageCollectGeneration(unsigned int, gc_reason) (wasm://wasm/0b0ccf12:wasm-function[122
  4]:0x916de)
              at WKS::GCHeap::GarbageCollectTry(int, int, int) (wasm://wasm/0b0ccf12:wasm-function[1625]:0x116ffb)
              at WKS::GCHeap::GarbageCollect(int, bool, int) (wasm://wasm/0b0ccf12:wasm-function[1624]:0x116ccf)
              at RhpCollect (wasm://wasm/0b0ccf12:wasm-function[1869]:0x122b2f)
              at S_P_CoreLib_System_Runtime_InternalCalls__RhpCollect (wasm://wasm/0b0ccf12:wasm-function[2311]:0x15acd
  9)
              at S_P_CoreLib_System_Runtime_InternalCalls__RhCollect (wasm://wasm/0b0ccf12:wasm-function[23449]:0x16d89
  de)
              at RhCollect (wasm://wasm/0b0ccf12:wasm-function[30823]:0x1991d84)
              at S_P_CoreLib_System_GC__Collect_0 (wasm://wasm/0b0ccf12:wasm-function[14455]:0xd6ea35)
              at DynamicGenerics_B282745_GenericType_1<System___Canon>__test (wasm://wasm/0b0ccf12:wasm-function[11809]
  :0xa9e85a)
              at Internal_CompilerGenerated__Module___<DynamicInvoke>Static<S_P_CoreLib_System_Void> (wasm://wasm/0b0cc
  f12:wasm-function[2140]:0x139396)
              at S_P_CoreLib_System_Runtime_RawCalliHelper__Call_7 (wasm://wasm/0b0ccf12:wasm-function[24218]:0x1777b9a
  )
              at S_P_CoreLib_System_Reflection_DynamicInvokeInfo__Invoke (wasm://wasm/0b0ccf12:wasm-function[2810]:0x1d
  e921)
              at S_P_Reflection_Execution_Internal_Reflection_Execution_MethodInvokers_StaticMethodInvoker__Invoke (was
  m://wasm/0b0ccf12:wasm-function[13452]:0xc432ca)
              at __VirtualCall_S_P_CoreLib_Internal_Reflection_Core_Execution_MethodInvoker__Invoke_0 (wasm://wasm/0b0c
  cf12:wasm-function[27227]:0x196b707)
              at S_P_CoreLib_Internal_Reflection_Core_Execution_MethodInvoker__Invoke (wasm://wasm/0b0ccf12:wasm-functi
  on[24644]:0x17d8692)
              at S_P_CoreLib_System_Reflection_Runtime_MethodInfos_RuntimeMethodInfo__Invoke (wasm://wasm/0b0ccf12:wasm
  -function[3150]:0x22f6d3)
              at __VirtualCall_S_P_CoreLib_System_Reflection_MethodBase__Invoke_0 (wasm://wasm/0b0ccf12:wasm-function[2
  7076]:0x1969913)
              at S_P_CoreLib_System_Reflection_MethodBase__Invoke (wasm://wasm/0b0ccf12:wasm-function[14435]:0xd6ab77)
              at DynamicGenerics_B282745__testMDArrayWithPointerLikeValuesOfUnknownStructReferenceType (wasm://wasm/0b0
  ccf12:wasm-function[14514]:0xd8f1f8)
              at DynamicGenerics_EntryPointMain___c___Main_b__0_67 (wasm://wasm/0b0ccf12:wasm-function[14513]:0xd8ebb4)
              at DynamicGenerics_CoreFXTestLibrary_Internal_Runner__RunTestMethod (wasm://wasm/0b0ccf12:wasm-function[1
  4509]:0xd8c3c2)
              at DynamicGenerics_CoreFXTestLibrary_Internal_Runner__RunTest (wasm://wasm/0b0ccf12:wasm-function[14497]:
  0xd85b61)
              at DynamicGenerics_CoreFXTestLibrary_Internal_Runner__RunTests (wasm://wasm/0b0ccf12:wasm-function[14494]
  :0xd814c7)
              at DynamicGenerics_EntryPointMain__Main (wasm://wasm/0b0ccf12:wasm-function[17268]:0x10ddf28)
              at DynamicGenerics__Module___MainMethodWrapper (wasm://wasm/0b0ccf12:wasm-function[2238]:0x14f224)
              at DynamicGenerics__Module___StartupCodeMain (wasm://wasm/0b0ccf12:wasm-function[23489]:0x16deb39)
              at main (wasm://wasm/0b0ccf12:wasm-function[37645]:0x1ac3914)
              at C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\DynamicGenerics\D
  ynamicGenerics\native\DynamicGenerics.js:993:22
              at callMain (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\Dynamic
  Generics\DynamicGenerics\native\DynamicGenerics.js:6498:15)
              at doRun (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\DynamicGen
  erics\DynamicGenerics\native\DynamicGenerics.js:6552:23)
              at run (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\DynamicGener
  ics\DynamicGenerics\native\DynamicGenerics.js:6567:5)
              at runCaller (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\Dynami
  cGenerics\DynamicGenerics\native\DynamicGenerics.js:6475:19)
              at removeRunDependency (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTe
  sts\DynamicGenerics\DynamicGenerics\native\DynamicGenerics.js:919:7)
              at receiveInstance (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\SmokeTests\
  DynamicGenerics\DynamicGenerics\native\DynamicGenerics.js:1081:5)
              at receiveInstantiationResult (C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\nativeaot\
  SmokeTests\DynamicGenerics\DynamicGenerics\native\DynamicGenerics.js:1099:5)

          Node.js v18.16.1

          Return code:      1
          Raw output file:      C:\github\runtimelab\artifacts\tests\coreclr\browser.wasm.Debug\Reports\nativeaot.Smoke
  Tests\DynamicGenerics\DynamicGenerics\DynamicGenerics.output.txt