{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/10847","repository_url":"https://api.github.com/repos/dotnet/coreclr","labels_url":"https://api.github.com/repos/dotnet/coreclr/issues/10847/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/coreclr/issues/10847/comments","events_url":"https://api.github.com/repos/dotnet/coreclr/issues/10847/events","html_url":"https://github.com/dotnet/coreclr/issues/10847","id":220600429,"number":10847,"title":"[AMD64 Unix ELT] CoreCLR script 'runtest' gets 'System.TypeInitializationException' with COMPlus_JitELTHookEnabled=1","user":{"login":"sergign60","id":172260,"avatar_url":"https://avatars2.githubusercontent.com/u/172260?v=3","gravatar_id":"","url":"https://api.github.com/users/sergign60","html_url":"https://github.com/sergign60","followers_url":"https://api.github.com/users/sergign60/followers","following_url":"https://api.github.com/users/sergign60/following{/other_user}","gists_url":"https://api.github.com/users/sergign60/gists{/gist_id}","starred_url":"https://api.github.com/users/sergign60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergign60/subscriptions","organizations_url":"https://api.github.com/users/sergign60/orgs","repos_url":"https://api.github.com/users/sergign60/repos","events_url":"https://api.github.com/users/sergign60/events{/privacy}","received_events_url":"https://api.github.com/users/sergign60/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-04-10T10:23:48Z","updated_at":"2017-04-10T10:25:15Z","closed_at":null,"body":"[CoreCLR script 'runtest' gets 'System.TypeInitializationException'  on Ubuntu x64 with the environment variable  ```COMPlus_JitELTHookEnabled=1```\r\n\r\nThe message is \r\n```\r\nRunning init-tools.sh\r\nTools are already initialized\r\n\r\nUnhandled Exception: System.TypeInitializationException: The type initializer for 'Microsoft.DotNet.InternalAbstractions.RuntimeEnvironment' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.DotNet.InternalAbstractions.Native.PlatformApis' threw an exception. ---> System.InvalidProgramException: Common Language Runtime detected an invalid program.\r\n   at System.Lazy`1..ctor(Func`1 valueFactory)\r\n   at Microsoft.DotNet.InternalAbstractions.Native.PlatformApis..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.DotNet.InternalAbstractions.RuntimeEnvironment..cctor()\r\n   --- End of inner exception stack trace ---\r\n   at Microsoft.DotNet.InternalAbstractions.RuntimeEnvironment.GetRuntimeIdentifier()\r\n   at Microsoft.DotNet.Cli.MulticoreJitProfilePathCalculator.CalculateProfileRootPath()\r\n   at Microsoft.DotNet.Cli.MulticoreJitActivator.StartCliProfileOptimization()\r\n   at Microsoft.DotNet.Cli.MulticoreJitActivator.TryActivateMulticoreJit()\r\n   at Microsoft.DotNet.Cli.Program.Main(String[] args)\r\nFailed to query runtime Id\r\n```\r\nboth on Debug and Checked builds.\r\n\r\nThe used command line is\r\n```\r\n$ coreclr/tests/runtest.sh --testRootDir=~/coreclr/Tests --testNativeBinDir=\"./coreclr/bin/obj/Linux.x64.Checked/tests\" --coreClrBinDir=\"./coreclr/bin/Product/Linux.x64.Checked\" --coreFxBinDir=\"~/corefx/bin/runtime/netcoreapp-Linux-Debug-x64\"\r\n```\r\nThe used versions are\r\nof coreclr 25169926291fcdcad25506c558690a0f63e61a93 Move files to shared CoreLib partition (#10837)\r\nof corefx 39ca7d8683aa369f2b9ce8e95be50fda2d1011d9 Update ProjectNTfs, ProjectNTfsTestILC to beta-25210-00, beta-25210-00, respectively (#18131)\r\ntest binaries - Artifacts of debug_windows_nt 1416\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dotnet/coreclr/issues/comments/292910240","html_url":"https://github.com/dotnet/coreclr/issues/10847#issuecomment-292910240","issue_url":"https://api.github.com/repos/dotnet/coreclr/issues/10847","id":292910240,"user":{"login":"sergign60","id":172260,"avatar_url":"https://avatars2.githubusercontent.com/u/172260?v=3","gravatar_id":"","url":"https://api.github.com/users/sergign60","html_url":"https://github.com/sergign60","followers_url":"https://api.github.com/users/sergign60/followers","following_url":"https://api.github.com/users/sergign60/following{/other_user}","gists_url":"https://api.github.com/users/sergign60/gists{/gist_id}","starred_url":"https://api.github.com/users/sergign60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergign60/subscriptions","organizations_url":"https://api.github.com/users/sergign60/orgs","repos_url":"https://api.github.com/users/sergign60/repos","events_url":"https://api.github.com/users/sergign60/events{/privacy}","received_events_url":"https://api.github.com/users/sergign60/received_events","type":"User","site_admin":false},"created_at":"2017-04-10T10:25:15Z","updated_at":"2017-04-10T10:25:15Z","body":"#7719"}}
{"actor":{"display_login":"sergign60"}}