runtime icon indicating copy to clipboard operation
runtime copied to clipboard

300+ test failures with TypeLoadException: Could not load type 'System.Runtime.InteropServices.GCHandle' from assembly 'System.Runtime'

Open joshfree opened this issue 10 years ago • 4 comments

  • OS X http://dotnet-ci.cloudapp.net/job/dotnet_coreclr/job/master/job/checked_osx_tst_prtest/1821/testReport/
  • Ubuntu http://dotnet-ci.cloudapp.net/job/dotnet_coreclr/job/master/job/checked_ubuntu_tst_prtest/1954/testReport/

Stacktrace

MESSAGE: BEGIN EXECUTION /Users/dotnet-bot/j/workspace/dotnet_coreclr/master/checked_osx_tst_prtest/bin/tests/Windows_NT.x64.Checked/Tests/coreoverlay/corerun Pinned.exe Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.GCHandle' from assembly 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. ./Pinned.sh: line 106: 61574 Abort trap: 6 $_DebuggerFullPath "$CORE_ROOT/corerun" Pinned.exe $CLRTestExecutionArguments Expected: 100 Actual: 134 END EXECUTION - FAILED +++++++++++++++++++ STACK TRACE:

joshfree avatar May 21 '16 23:05 joshfree

Should get fixed by https://github.com/dotnet/coreclr/pull/5154

jkotas avatar May 22 '16 03:05 jkotas

Thanks Jan!

My removal of System.Runtime.InteropServices.Pinvoke also removed type forwards of GCHandle from System.Runtime to the PInvoke contract. GCHandle had originally been moved from InteropServices to System.Runtime, and then to the PInvoke contract.

If dotnet/runtime#16006 does not fix the problem, we should add the GCHandle type forwards back into System.Runtime.

botaberg avatar May 22 '16 17:05 botaberg

We're still seeing fallout from this change https://github.com/dotnet/corefx/pull/8782/commits/66ce05e41958456b0f401d0a490dbc87df96695e#diff-1cf61071aa9a8e298dd7972458ec9dcdR8

joshfree avatar May 23 '16 23:05 joshfree

Closing this issue now that the typeforwarder workaround is in place in both branches

joshfree avatar May 25 '16 00:05 joshfree