dotent cli 的 corehost 加载 coreclr 时出现下面的错误:
Compiling 120 System.Text.UTF8Encoding::GetBytes, IL size = 1572, hsh=0xcf085649 Compiling 121 DomainNeutralILStubClass::IL_STUB_PInvoke, IL size = 59, hsh=0x2f6692f9 Assert failure(PID 21992 [0x000055e8], Thread: 21992 [0x55e8]): !"Recursion in CLRException::GetThrowable" File: /git/coreclr/src/vm/clrex.cpp Line: 149 Image: /git/about.cnblogs.com/corehost **** MessageBox invoked, title 'corehost - Assert Failure (PID 21992, Thread 21992/0x55e8)' **** !"Recursion in CLRException::GetThrowable" /git/coreclr/src/vm/clrex.cpp, Line: 149
是因为少了 System.Globalization.Native.so 文件,复制过来即可。
[/git/coreclr/bin/Product/Linux.x64.Debug# cp System.Globalization.Native.so /git/about.cnblogs.com