{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Performance/issues/101","repository_url":"https://api.github.com/repos/aspnet/Performance","labels_url":"https://api.github.com/repos/aspnet/Performance/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Performance/issues/101/comments","events_url":"https://api.github.com/repos/aspnet/Performance/issues/101/events","html_url":"https://github.com/aspnet/Performance/issues/101","id":142487953,"number":101,"title":"Build gets stuck","user":{"login":"DavidObando","id":950290,"avatar_url":"https://avatars.githubusercontent.com/u/950290?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidObando","html_url":"https://github.com/DavidObando","followers_url":"https://api.github.com/users/DavidObando/followers","following_url":"https://api.github.com/users/DavidObando/following{/other_user}","gists_url":"https://api.github.com/users/DavidObando/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidObando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidObando/subscriptions","organizations_url":"https://api.github.com/users/DavidObando/orgs","repos_url":"https://api.github.com/users/DavidObando/repos","events_url":"https://api.github.com/users/DavidObando/events{/privacy}","received_events_url":"https://api.github.com/users/DavidObando/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aspnet/Performance/labels/2%20-%20Working","name":"2 - Working","color":"cccccc"}],"state":"open","locked":false,"assignee":{"login":"DavidObando","id":950290,"avatar_url":"https://avatars.githubusercontent.com/u/950290?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidObando","html_url":"https://github.com/DavidObando","followers_url":"https://api.github.com/users/DavidObando/followers","following_url":"https://api.github.com/users/DavidObando/following{/other_user}","gists_url":"https://api.github.com/users/DavidObando/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidObando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidObando/subscriptions","organizations_url":"https://api.github.com/users/DavidObando/orgs","repos_url":"https://api.github.com/users/DavidObando/repos","events_url":"https://api.github.com/users/DavidObando/events{/privacy}","received_events_url":"https://api.github.com/users/DavidObando/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-03-21T22:20:58Z","updated_at":"2016-03-25T07:10:41Z","closed_at":null,"body":"The build process appears to run tests successfully but then dotnet.exe keeps running and fails to exit, making builds in Appveyor fail due to timeout. The last thing printed in the build log is:\r\n```\r\n[00:07:15] \r\n[00:07:15] === TEST EXECUTION SUMMARY ===\r\n[00:07:15] \r\n[00:07:15]    Microsoft.AspNetCore.Tests.Performance  Total: 107, Errors: 0, Failed: 87, Skipped: 1, Time: 63.994s\r\n[00:07:15] \r\n```\r\n\r\nIn my local dev machine dotnet.exe is staying in memory, so the issue is reproducible. I created a minidump and here's what I saw:\r\n```\r\n0:000> !mk\r\nThread 0:\r\n*** WARNING: Unable to verify checksum for hostpolicy.dll\r\n*** ERROR: Symbol file could not be found.  Defaulted to export symbols for hostpolicy.dll - \r\n           SP               IP\r\n00:U 000000595c37e138 00007ffd1a1e5c24 ntdll!ZwWaitForMultipleObjects+0x14 [d:\\th.obj.amd64fre\\minkernel\\ntdll\\daytona\\objfre\\amd64\\usrstubs.asm @ 907]\r\n01:U 000000595c37e140 00007ffd17393b4f KERNELBASE!WaitForMultipleObjectsEx+0xef [d:\\th\\minkernel\\kernelbase\\synch.c @ 1555]\r\n02:U 000000595c37e440 00007ffcdd233c0b coreclr!GetCLRRuntimeHost+0x1ed97\r\n03:U 000000595c37e4f0 00007ffcdd2339bd coreclr!GetCLRRuntimeHost+0x1eb49\r\n04:U 000000595c37e570 00007ffcdd230654 coreclr!GetCLRRuntimeHost+0x1b7e0\r\n05:U 000000595c37e5c0 00007ffcdd3155d5 coreclr!GetCLRRuntimeHost+0x100761\r\n06:U 000000595c37e650 00007ffcdd31482f coreclr!GetCLRRuntimeHost+0xff9bb\r\n07:M 000000595c37e7d0 00007ffc7da79a83 Microsoft.DotNet.Cli.Utils.Command.Execute()(+0xc0 IL,+0x263 Native) [E:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs @ 138,13]\r\n08:U 000000595c37e7d8 000001ca00961d08 CLRStub@000001ca00961d08\r\n09:U 000000595c37e7e0 000001ca0096fd68 CLRStub@000001ca0096fd68\r\n0a:U 000000595c37e7e8 000001ca00983a68 CLRStub@000001ca00983a68\r\n0b:U 000000595c37e7f0 000001ca00961c28 CLRStub@000001ca00961c28\r\n0c:U 000000595c37e7f8 000001ca00983988 CLRStub@000001ca00983988\r\n0d:M 000000595c37e8a0 00007ffc7da6d2bb Microsoft.DotNet.Tools.Test.TestCommand.RunConsole(Microsoft.DotNet.ProjectModel.ProjectContext, Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication, System.String, System.String, System.String)(+0x35 IL,+0x23b Native) [E:\\Agent\\_work\\4\\s\\src\\dotnet\\commands\\dotnet-test\\Program.cs @ 113,13]\r\n0e:M 000000595c37e990 00007ffc7d8d80d7 Microsoft.DotNet.Tools.Test.TestCommand+<>c__DisplayClass0_0.<Run>b__0()(+0xd1 IL,+0x2b7 Native) [E:\\Agent\\_work\\4\\s\\src\\dotnet\\commands\\dotnet-test\\Program.cs @ 76,25]\r\n0f:M 000000595c37ea80 00007ffc7d8d6478 Microsoft.Dnx.Runtime.Common.CommandLine.CommandLineApplication.Execute(System.String[])(+0x718 Native) [C:\\Users\\BuildServiceAccount\\.nuget\\packages\\Microsoft.Extensions.CommandLineUtils.Sources\\1.0.0-rc2-16453\\shared\\CommandLineApplication.cs @ 263,13]\r\n10:M 000000595c37ebe0 00007ffc7d8d2ee0 Microsoft.DotNet.Cli.Program.ProcessArgs(System.String[])(+0x24f IL,+0x7c0 Native) [E:\\Agent\\_work\\4\\s\\src\\dotnet\\Program.cs @ 123,17]\r\n11:M 000000595c37ecb0 00007ffc7d8d0af4 Microsoft.DotNet.Cli.Program.Main(System.String[])(+0x0 IL,+0x14 Native) [E:\\Agent\\_work\\4\\s\\src\\dotnet\\Program.cs @ 37,17]\r\n12:U 000000595c37ecf0 00007ffcdd5dc723 coreclr!GetCLRRuntimeHost+0x3c78af\r\n13:U 000000595c37ed30 00007ffcdd27bb87 coreclr!GetCLRRuntimeHost+0x66d13\r\n14:U 000000595c37ee40 00007ffcdd281eee coreclr!GetCLRRuntimeHost+0x6d07a\r\n15:U 000000595c37f0b0 00007ffcdd2821d5 coreclr!GetCLRRuntimeHost+0x6d361\r\n16:U 000000595c37f380 00007ffcdd21366c coreclr!coreclr_execute_assembly+0x8ac\r\n17:U 000000595c37f480 00007ffcdd212ee3 coreclr!coreclr_execute_assembly+0x123\r\n18:U 000000595c37f510 00007ffcf9c96564 hostpolicy+0x6564\r\n19:U 000000595c37f950 00007ffcf9c96837 hostpolicy!corehost_main+0x57\r\n1a:U 000000595c37fac0 00007ff7605918a1 dotnet+0x18a1\r\n1b:U 000000595c37fb60 00007ff7605bbb08 dotnet+0x2bb08\r\n1c:U 000000595c37fba0 00007ffd183a8102 kernel32!BaseThreadInitThunk+0x22 [d:\\th\\base\\win32\\client\\thread.c @ 64]\r\n1d:U 000000595c37fbd0 00007ffd1a19c5b4 ntdll!RtlUserThreadStart+0x34 [d:\\th\\minkernel\\ntdll\\rtlstrt.c @ 994]\r\n```\r\n\r\nAs you can see Microsoft.DotNet.Cli.Utils.Command.Execute()(+0xc0 IL,+0x263 Native) [E:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs @ 138,13] is making a call to coreclr!GetCLRRuntimeHost. Here's the managed unassembly function, pay attention to line 138:\r\n\r\n```\r\n0:000> !muf 00007ffc7da79a83\r\nMicrosoft.DotNet.Cli.Utils.Command.Execute(): Microsoft.DotNet.Cli.Utils.CommandResult\r\n    threadOut:System.Threading.Thread\r\n    exitCode:int\r\n\r\n        00007ffc`7da79820 4156            push    r14\r\n        00007ffc`7da79822 57              push    rdi\r\n        00007ffc`7da79823 56              push    rsi\r\n        00007ffc`7da79824 55              push    rbp\r\n        00007ffc`7da79825 53              push    rbx\r\n        00007ffc`7da79826 4881eca0000000  sub     rsp,0A0h\r\n        00007ffc`7da7982d 488bf1          mov     rsi,rcx\r\n        00007ffc`7da79830 488d7c2420      lea     rdi,[rsp+20h]\r\n        00007ffc`7da79835 b920000000      mov     ecx,20h\r\n        00007ffc`7da7983a 33c0            xor     eax,eax\r\n        00007ffc`7da7983c f3ab            rep stos dword ptr [rdi]\r\n        00007ffc`7da7983e 488bce          mov     rcx,rsi\r\n        00007ffc`7da79841 488bf1          mov     rsi,rcx\r\n        00007ffc`7da79844 488bfa          mov     rdi,rdx\r\n        00007ffc`7da79847 48b9285c0010ca010000 mov rcx,1CA10005C28h\r\n        00007ffc`7da79851 488b19          mov     rbx,qword ptr [rcx]\r\n        00007ffc`7da79854 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da79858 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da7985a e8a1fbffff      call    00007ffc`7da79400\r\n        00007ffc`7da7985f 488b4808        mov     rcx,qword ptr [rax+8]\r\n        00007ffc`7da79863 4885c9          test    rcx,rcx\r\n        00007ffc`7da79866 7510            jne     00007ffc`7da79878\r\n        00007ffc`7da79868 48b960300010ca010000 mov rcx,1CA10003060h\r\n        00007ffc`7da79872 488b29          mov     rbp,qword ptr [rcx]\r\n        00007ffc`7da79875 488bcd          mov     rcx,rbp\r\n        00007ffc`7da79878 488be9          mov     rbp,rcx\r\n        00007ffc`7da7987b 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da7987f 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79881 e87afbffff      call    00007ffc`7da79400\r\n        00007ffc`7da79886 4883781000      cmp     qword ptr [rax+10h],0\r\n        00007ffc`7da7988b 750f            jne     00007ffc`7da7989c\r\n        00007ffc`7da7988d 48b860300010ca010000 mov rax,1CA10003060h\r\n        00007ffc`7da79897 4c8b00          mov     r8,qword ptr [rax]\r\n        00007ffc`7da7989a eb04            jmp     00007ffc`7da798a0\r\n        00007ffc`7da7989c 4c8b4010        mov     r8,qword ptr [rax+10h]\r\n        00007ffc`7da798a0 33d2            xor     edx,edx\r\n        00007ffc`7da798a2 488d4c2460      lea     rcx,[rsp+60h]\r\n        00007ffc`7da798a7 c4e17957c0      vxorpd  xmm0,xmm0,xmm0\r\n        00007ffc`7da798ac c4e17a7f01      vmovdqu xmmword ptr [rcx],xmm0\r\n        00007ffc`7da798b1 c4e17a7f4110    vmovdqu xmmword ptr [rcx+10h],xmm0\r\n        00007ffc`7da798b7 48896c2460      mov     qword ptr [rsp+60h],rbp\r\n        00007ffc`7da798bc 4c89442468      mov     qword ptr [rsp+68h],r8\r\n        00007ffc`7da798c1 4533c0          xor     r8d,r8d\r\n        00007ffc`7da798c4 4c89442470      mov     qword ptr [rsp+70h],r8\r\n        00007ffc`7da798c9 49b848120010ca010000 mov r8,1CA10001248h\r\n        00007ffc`7da798d3 4d8b00          mov     r8,qword ptr [r8]\r\n        00007ffc`7da798d6 4c89442478      mov     qword ptr [rsp+78h],r8\r\n        00007ffc`7da798db 49b8189c0010ca010000 mov r8,1CA10009C18h\r\n        00007ffc`7da798e5 498b10          mov     rdx,qword ptr [r8]\r\n        00007ffc`7da798e8 c4e17a6f442460  vmovdqu xmm0,xmmword ptr [rsp+60h]\r\n        00007ffc`7da798ef c4e17a7f442420  vmovdqu xmmword ptr [rsp+20h],xmm0\r\n        00007ffc`7da798f6 c4e17a6f442470  vmovdqu xmm0,xmmword ptr [rsp+70h]\r\n        00007ffc`7da798fd c4e17a7f442430  vmovdqu xmmword ptr [rsp+30h],xmm0\r\n        00007ffc`7da79904 4c8d442420      lea     r8,[rsp+20h]\r\n        00007ffc`7da79909 33c9            xor     ecx,ecx\r\n        00007ffc`7da7990b e8d0db9b5b      call    mscorlib_ni+0x5274e0 (00007ffc`d94374e0)  [System.String.FormatHelper(System.IFormatProvider, System.String, System.ParamsArray), MD=00007ffcd9061e48]\r\n        00007ffc`7da79910 488bd0          mov     rdx,rax\r\n        00007ffc`7da79913 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79916 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79918 e89b6ae5ff      call    00007ffc`7d8d03b8\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 118\r\nInvalid offset (fffffffe) passed to ILDecoder.\r\n        00007ffc`7da79820 4156            push    r14\r\n        00007ffc`7da79822 57              push    rdi\r\n        00007ffc`7da79823 56              push    rsi\r\n        00007ffc`7da79824 55              push    rbp\r\n        00007ffc`7da79825 53              push    rbx\r\n        00007ffc`7da79826 4881eca0000000  sub     rsp,0A0h\r\n        00007ffc`7da7982d 488bf1          mov     rsi,rcx\r\n        00007ffc`7da79830 488d7c2420      lea     rdi,[rsp+20h]\r\n        00007ffc`7da79835 b920000000      mov     ecx,20h\r\n        00007ffc`7da7983a 33c0            xor     eax,eax\r\n        00007ffc`7da7983c f3ab            rep stos dword ptr [rdi]\r\n        00007ffc`7da7983e 488bce          mov     rcx,rsi\r\n        00007ffc`7da79841 488bf1          mov     rsi,rcx\r\n        00007ffc`7da79844 488bfa          mov     rdi,rdx\r\n        00007ffc`7da79847 48b9285c0010ca010000 mov rcx,1CA10005C28h\r\n        00007ffc`7da79851 488b19          mov     rbx,qword ptr [rcx]\r\n        00007ffc`7da79854 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da79858 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da7985a e8a1fbffff      call    00007ffc`7da79400\r\n        00007ffc`7da7985f 488b4808        mov     rcx,qword ptr [rax+8]\r\n        00007ffc`7da79863 4885c9          test    rcx,rcx\r\n        00007ffc`7da79866 7510            jne     00007ffc`7da79878\r\n\r\n        00007ffc`7da79868 48b960300010ca010000 mov rcx,1CA10003060h\r\n        00007ffc`7da79872 488b29          mov     rbp,qword ptr [rcx]\r\n        00007ffc`7da79875 488bcd          mov     rcx,rbp\r\n        00007ffc`7da79878 488be9          mov     rbp,rcx\r\n        00007ffc`7da7987b 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da7987f 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79881 e87afbffff      call    00007ffc`7da79400\r\n        00007ffc`7da79886 4883781000      cmp     qword ptr [rax+10h],0\r\n        00007ffc`7da7988b 750f            jne     00007ffc`7da7989c\r\n        00007ffc`7da7988d 48b860300010ca010000 mov rax,1CA10003060h\r\n        00007ffc`7da79897 4c8b00          mov     r8,qword ptr [rax]\r\n        00007ffc`7da7989a eb04            jmp     00007ffc`7da798a0\r\n        00007ffc`7da7989c 4c8b4010        mov     r8,qword ptr [rax+10h]\r\n        00007ffc`7da798a0 33d2            xor     edx,edx\r\n        00007ffc`7da798a2 488d4c2460      lea     rcx,[rsp+60h]\r\n        00007ffc`7da798a7 c4e17957c0      vxorpd  xmm0,xmm0,xmm0\r\n        00007ffc`7da798ac c4e17a7f01      vmovdqu xmmword ptr [rcx],xmm0\r\n        00007ffc`7da798b1 c4e17a7f4110    vmovdqu xmmword ptr [rcx+10h],xmm0\r\n        00007ffc`7da798b7 48896c2460      mov     qword ptr [rsp+60h],rbp\r\n        00007ffc`7da798bc 4c89442468      mov     qword ptr [rsp+68h],r8\r\n        00007ffc`7da798c1 4533c0          xor     r8d,r8d\r\n        00007ffc`7da798c4 4c89442470      mov     qword ptr [rsp+70h],r8\r\n        00007ffc`7da798c9 49b848120010ca010000 mov r8,1CA10001248h\r\n        00007ffc`7da798d3 4d8b00          mov     r8,qword ptr [r8]\r\n        00007ffc`7da798d6 4c89442478      mov     qword ptr [rsp+78h],r8\r\n        00007ffc`7da798db 49b8189c0010ca010000 mov r8,1CA10009C18h\r\n        00007ffc`7da798e5 498b10          mov     rdx,qword ptr [r8]\r\n        00007ffc`7da798e8 c4e17a6f442460  vmovdqu xmm0,xmmword ptr [rsp+60h]\r\n        00007ffc`7da798ef c4e17a7f442420  vmovdqu xmmword ptr [rsp+20h],xmm0\r\n        00007ffc`7da798f6 c4e17a6f442470  vmovdqu xmm0,xmmword ptr [rsp+70h]\r\n        00007ffc`7da798fd c4e17a7f442430  vmovdqu xmmword ptr [rsp+30h],xmm0\r\n        00007ffc`7da79904 4c8d442420      lea     r8,[rsp+20h]\r\n        00007ffc`7da79909 33c9            xor     ecx,ecx\r\n        00007ffc`7da7990b e8d0db9b5b      call    mscorlib_ni+0x5274e0 (00007ffc`d94374e0)  [System.String.FormatHelper(System.IFormatProvider, System.String, System.ParamsArray), MD=00007ffcd9061e48]\r\n        00007ffc`7da79910 488bd0          mov     rdx,rax\r\n        00007ffc`7da79913 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79916 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79918 e89b6ae5ff      call    00007ffc`7d8d03b8\r\n\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 120\r\n    IL_0034: ldarg.0 \r\n    IL_0035: ldstr \"Execute\"\r\n    IL_003a: call Microsoft.DotNet.Cli.Utils.Command::ThrowIfRunning(string)\r\n        00007ffc`7da7991d 48ba209c0010ca010000 mov rdx,1CA10009C20h\r\n        00007ffc`7da79927 488b12          mov     rdx,qword ptr [rdx]\r\n        00007ffc`7da7992a 488bce          mov     rcx,rsi\r\n        00007ffc`7da7992d e8bec9ffff      call    00007ffc`7da762f0\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 121\r\n    IL_003f: ldarg.0 \r\n    IL_0040: ldc.i4.1 \r\n    IL_0041: stfld Microsoft.DotNet.Cli.Utils.Command::_running\r\n        00007ffc`7da79932 c6462401        mov     byte ptr [rsi+24h],1\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 123\r\n    IL_0046: ldarg.0 \r\n    IL_0047: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_004c: ldc.i4.1 \r\n    IL_004d: callvirt System.Diagnostics.Process::set_EnableRaisingEvents\r\n        00007ffc`7da79936 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da7993a ba01000000      mov     edx,1\r\n        00007ffc`7da7993f 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79941 e8f2bbffff      call    00007ffc`7da75538\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 129\r\n    IL_0052: ldarg.0 \r\n    IL_0053: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_0058: callvirt System.Diagnostics.Process::Start\r\n    IL_005d: pop \r\n    IL_005e: call Microsoft.DotNet.Cli.Utils.Reporter::get_Verbose()\r\n    IL_0063: ldstr \"Process ID: {0}\"\r\n    IL_0068: ldarg.0 \r\n    IL_0069: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_006e: callvirt System.Diagnostics.Process::get_Id\r\n    IL_0073: box System.Int32\r\n    IL_0078: call System.String::Format\r\n    IL_007d: callvirt Microsoft.DotNet.Cli.Utils.Reporter::WriteLine(string)\r\n        00007ffc`7da79946 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da7994a 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da7994c e8bfbcffff      call    00007ffc`7da75610\r\n        00007ffc`7da79951 48b9285c0010ca010000 mov rcx,1CA10005C28h\r\n        00007ffc`7da7995b 488b19          mov     rbx,qword ptr [rcx]\r\n        00007ffc`7da7995e 488b6e08        mov     rbp,qword ptr [rsi+8]\r\n        00007ffc`7da79962 8b4d00          mov     ecx,dword ptr [rbp]\r\n        00007ffc`7da79965 488bcd          mov     rcx,rbp\r\n        00007ffc`7da79968 ba01000000      mov     edx,1\r\n        00007ffc`7da7996d e81ebcffff      call    00007ffc`7da75590\r\n        00007ffc`7da79972 48b9400986d9fc7f0000 mov rcx,offset mscorlib_ni+0x950940 (00007ffc`d9860940)\r\n        00007ffc`7da7997c e8ef38b65f      call    coreclr!GetCLRRuntimeHost+0x3c83fc (00007ffc`dd5dd270)  [CORINFO_HELP_NEWSFAST]\r\n        00007ffc`7da79981 448b85a0000000  mov     r8d,dword ptr [rbp+0A0h]\r\n        00007ffc`7da79988 44894008        mov     dword ptr [rax+8],r8d\r\n        00007ffc`7da7998c 4533c0          xor     r8d,r8d\r\n        00007ffc`7da7998f 488d542440      lea     rdx,[rsp+40h]\r\n        00007ffc`7da79994 c4e17957c0      vxorpd  xmm0,xmm0,xmm0\r\n        00007ffc`7da79999 c4e17a7f02      vmovdqu xmmword ptr [rdx],xmm0\r\n        00007ffc`7da7999e c4e17a7f4210    vmovdqu xmmword ptr [rdx+10h],xmm0\r\n        00007ffc`7da799a4 4889442440      mov     qword ptr [rsp+40h],rax\r\n        00007ffc`7da799a9 4533c0          xor     r8d,r8d\r\n        00007ffc`7da799ac 4c89442448      mov     qword ptr [rsp+48h],r8\r\n        00007ffc`7da799b1 4c89442450      mov     qword ptr [rsp+50h],r8\r\n        00007ffc`7da799b6 49b840120010ca010000 mov r8,1CA10001240h\r\n        00007ffc`7da799c0 4d8b00          mov     r8,qword ptr [r8]\r\n        00007ffc`7da799c3 4c89442458      mov     qword ptr [rsp+58h],r8\r\n        00007ffc`7da799c8 49b8289c0010ca010000 mov r8,1CA10009C28h\r\n        00007ffc`7da799d2 498b10          mov     rdx,qword ptr [r8]\r\n        00007ffc`7da799d5 c4e17a6f442440  vmovdqu xmm0,xmmword ptr [rsp+40h]\r\n        00007ffc`7da799dc c4e17a7f442420  vmovdqu xmmword ptr [rsp+20h],xmm0\r\n        00007ffc`7da799e3 c4e17a6f442450  vmovdqu xmm0,xmmword ptr [rsp+50h]\r\n        00007ffc`7da799ea c4e17a7f442430  vmovdqu xmmword ptr [rsp+30h],xmm0\r\n        00007ffc`7da799f1 4c8d442420      lea     r8,[rsp+20h]\r\n        00007ffc`7da799f6 33c9            xor     ecx,ecx\r\n        00007ffc`7da799f8 e8e3da9b5b      call    mscorlib_ni+0x5274e0 (00007ffc`d94374e0)  [System.String.FormatHelper(System.IFormatProvider, System.String, System.ParamsArray), MD=00007ffcd9061e48]\r\n        00007ffc`7da799fd 488bd0          mov     rdx,rax\r\n        00007ffc`7da79a00 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79a03 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79a05 e8ae69e5ff      call    00007ffc`7d8d03b8\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 131\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 133\r\n    IL_0082: ldarg.0 \r\n    IL_0083: ldfld Microsoft.DotNet.Cli.Utils.Command::_stdOut\r\n    IL_0088: ldarg.0 \r\n    IL_0089: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_008e: callvirt System.Diagnostics.Process::get_StandardOutput\r\n    IL_0093: callvirt Microsoft.DotNet.Cli.Utils.StreamForwarder::BeginRead(System.IO.TextReader)\r\n    IL_0098: stloc.0  (threadOut)\r\n        00007ffc`7da79a0a 488b5e10        mov     rbx,qword ptr [rsi+10h]\r\n        00007ffc`7da79a0e 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da79a12 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79a14 e82fbbffff      call    00007ffc`7da75548\r\n        00007ffc`7da79a19 488bd0          mov     rdx,rax\r\n        00007ffc`7da79a1c 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79a1f 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79a21 e83aa8ffff      call    00007ffc`7da74260\r\n        00007ffc`7da79a26 488bd8          mov     rbx,rax\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 134\r\n    IL_0099: ldarg.0 \r\n    IL_009a: ldfld Microsoft.DotNet.Cli.Utils.Command::_stdErr\r\n    IL_009f: ldarg.0 \r\n    IL_00a0: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_00a5: callvirt System.Diagnostics.Process::get_StandardError\r\n    IL_00aa: callvirt Microsoft.DotNet.Cli.Utils.StreamForwarder::BeginRead(System.IO.TextReader)\r\n    IL_00af: ldarg.0 \r\n    IL_00b0: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_00b5: callvirt System.Diagnostics.Process::WaitForExit\r\n        00007ffc`7da79a29 488b6e18        mov     rbp,qword ptr [rsi+18h]\r\n        00007ffc`7da79a2d 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da79a31 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79a33 e818bbffff      call    00007ffc`7da75550\r\n        00007ffc`7da79a38 488bd0          mov     rdx,rax\r\n        00007ffc`7da79a3b 488bcd          mov     rcx,rbp\r\n        00007ffc`7da79a3e 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79a40 e81ba8ffff      call    00007ffc`7da74260\r\n        00007ffc`7da79a45 488be8          mov     rbp,rax\r\n        00007ffc`7da79a48 4c8b7608        mov     r14,qword ptr [rsi+8]\r\n        00007ffc`7da79a4c 418b0e          mov     ecx,dword ptr [r14]\r\n        00007ffc`7da79a4f 498bce          mov     rcx,r14\r\n        00007ffc`7da79a52 baffffffff      mov     edx,0FFFFFFFFh\r\n        00007ffc`7da79a57 e85cbcffff      call    00007ffc`7da756b8\r\n        00007ffc`7da79a5c 85c0            test    eax,eax\r\n        00007ffc`7da79a5e 7414            je      00007ffc`7da79a74\r\n\r\n        00007ffc`7da79a60 410fb68eba000000 movzx   ecx,byte ptr [r14+0BAh]\r\n        00007ffc`7da79a68 85c9            test    ecx,ecx\r\n        00007ffc`7da79a6a 7408            je      00007ffc`7da79a74\r\n        00007ffc`7da79a6c 498bce          mov     rcx,r14\r\n        00007ffc`7da79a6f e874bbffff      call    00007ffc`7da755e8\r\n\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 136\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 137\r\n    IL_00ba: ldloc.0  (threadOut)\r\n    IL_00bb: callvirt System.Threading.Thread::Join\r\n        00007ffc`7da79a74 8b0b            mov     ecx,dword ptr [rbx]\r\n        00007ffc`7da79a76 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79a79 baffffffff      mov     edx,0FFFFFFFFh\r\n        00007ffc`7da79a7e e8d9ac895f      call    coreclr!GetCLRRuntimeHost+0xff8e8 (00007ffc`dd31475c)\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 138\r\n    IL_00c0: callvirt System.Threading.Thread::Join\r\n        00007ffc`7da79a83 8b4d00          mov     ecx,dword ptr [rbp]\r\n        00007ffc`7da79a86 488bcd          mov     rcx,rbp\r\n        00007ffc`7da79a89 baffffffff      mov     edx,0FFFFFFFFh\r\n        00007ffc`7da79a8e e8c9ac895f      call    coreclr!GetCLRRuntimeHost+0xff8e8 (00007ffc`dd31475c)\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 140\r\n    IL_00c5: ldarg.0 \r\n    IL_00c6: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_00cb: callvirt System.Diagnostics.Process::get_ExitCode\r\n    IL_00d0: stloc.1  (exitCode)\r\n    IL_00d1: ldarg.0 \r\n    IL_00d2: ldfld Microsoft.DotNet.Cli.Utils.Command::_process\r\n    IL_00d7: callvirt System.Diagnostics.Process::get_StartInfo\r\n    IL_00dc: ldloc.1  (exitCode)\r\n    IL_00dd: ldarg.0 \r\n    IL_00de: ldfld Microsoft.DotNet.Cli.Utils.Command::_stdOut\r\n    IL_00e3: callvirt Microsoft.DotNet.Cli.Utils.StreamForwarder::get_CapturedOutput()\r\n    IL_00e8: ldarg.0 \r\n    IL_00e9: ldfld Microsoft.DotNet.Cli.Utils.Command::_stdErr\r\n    IL_00ee: callvirt Microsoft.DotNet.Cli.Utils.StreamForwarder::get_CapturedOutput()\r\n    IL_00f3: newobj Microsoft.DotNet.Cli.Utils.CommandResult::.ctor(System.Diagnostics.ProcessStartInfo, int, string, string)\r\n        00007ffc`7da79a93 488b5e08        mov     rbx,qword ptr [rsi+8]\r\n        00007ffc`7da79a97 8b0b            mov     ecx,dword ptr [rbx]\r\n        00007ffc`7da79a99 488bcb          mov     rcx,rbx\r\n        00007ffc`7da79a9c ba10000000      mov     edx,10h\r\n        00007ffc`7da79aa1 e8eabaffff      call    00007ffc`7da75590\r\n        00007ffc`7da79aa6 8b9ba8000000    mov     ebx,dword ptr [rbx+0A8h]\r\n        00007ffc`7da79aac 488b4e08        mov     rcx,qword ptr [rsi+8]\r\n        00007ffc`7da79ab0 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79ab2 e849f9ffff      call    00007ffc`7da79400\r\n        00007ffc`7da79ab7 488be8          mov     rbp,rax\r\n        00007ffc`7da79aba 488b4e10        mov     rcx,qword ptr [rsi+10h]\r\n        00007ffc`7da79abe 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79ac0 e883a7ffff      call    00007ffc`7da74248\r\n        00007ffc`7da79ac5 4c8bf0          mov     r14,rax\r\n        00007ffc`7da79ac8 33c9            xor     ecx,ecx\r\n        00007ffc`7da79aca 488d842480000000 lea     rax,[rsp+80h]\r\n        00007ffc`7da79ad2 c4e17957c0      vxorpd  xmm0,xmm0,xmm0\r\n        00007ffc`7da79ad7 c4e17a7f00      vmovdqu xmmword ptr [rax],xmm0\r\n        00007ffc`7da79adc c4e17a7f4010    vmovdqu xmmword ptr [rax+10h],xmm0\r\n        00007ffc`7da79ae2 488b4e18        mov     rcx,qword ptr [rsi+18h]\r\n        00007ffc`7da79ae6 3909            cmp     dword ptr [rcx],ecx\r\n        00007ffc`7da79ae8 e85ba7ffff      call    00007ffc`7da74248\r\n        00007ffc`7da79aed 4889ac2480000000 mov     qword ptr [rsp+80h],rbp\r\n        00007ffc`7da79af5 899c2498000000  mov     dword ptr [rsp+98h],ebx\r\n        00007ffc`7da79afc 4c89b42488000000 mov     qword ptr [rsp+88h],r14\r\n        00007ffc`7da79b04 4889842490000000 mov     qword ptr [rsp+90h],rax\r\nE:\\Agent\\_work\\4\\s\\src\\Microsoft.DotNet.Cli.Utils\\Command.cs,line 154-158\r\n    IL_00f8: ret \r\n        00007ffc`7da79b0c 488db42480000000 lea     rsi,[rsp+80h]\r\n        00007ffc`7da79b14 e87719b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b19 e87219b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b1e e86d19b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b23 48a5            movs    qword ptr [rdi],qword ptr [rsi]\r\n        00007ffc`7da79b0c 488db42480000000 lea     rsi,[rsp+80h]\r\n        00007ffc`7da79b14 e87719b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b19 e87219b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b1e e86d19b65f      call    coreclr!GetCLRRuntimeHost+0x3c661c (00007ffc`dd5db490)  [CORINFO_HELP_ASSIGN_BYREF]\r\n        00007ffc`7da79b23 48a5            movs    qword ptr [rdi],qword ptr [rsi]\r\n```\r\n\r\n(I agree that checking [the code directly](https://github.com/dotnet/cli/blob/rel/1.0.0/src/Microsoft.DotNet.Cli.Utils/Command.cs#L138) is a more convenient option). Essentially, we're stuck at `threadErr.Join()`:\r\n```C#\r\n            var threadOut = _stdOut.BeginRead(_process.StandardOutput);\r\n            var threadErr = _stdErr.BeginRead(_process.StandardError);\r\n\r\n            _process.WaitForExit();\r\n            threadOut.Join();\r\n            threadErr.Join();\r\n\r\n            var exitCode = _process.ExitCode;\r\n```\r\nI'm not sure if this is because we're doing something wrong or if it's a legitimate issue in the cli or coreclr."},"comment":{"url":"https://api.github.com/repos/aspnet/Performance/issues/comments/201177497","html_url":"https://github.com/aspnet/Performance/issues/101#issuecomment-201177497","issue_url":"https://api.github.com/repos/aspnet/Performance/issues/101","id":201177497,"user":{"login":"DavidObando","id":950290,"avatar_url":"https://avatars.githubusercontent.com/u/950290?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidObando","html_url":"https://github.com/DavidObando","followers_url":"https://api.github.com/users/DavidObando/followers","following_url":"https://api.github.com/users/DavidObando/following{/other_user}","gists_url":"https://api.github.com/users/DavidObando/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidObando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidObando/subscriptions","organizations_url":"https://api.github.com/users/DavidObando/orgs","repos_url":"https://api.github.com/users/DavidObando/repos","events_url":"https://api.github.com/users/DavidObando/events{/privacy}","received_events_url":"https://api.github.com/users/DavidObando/received_events","type":"User","site_admin":false},"created_at":"2016-03-25T07:10:41Z","updated_at":"2016-03-25T07:10:41Z","body":"Hey @pranavkm, is this issue related to dotnet/cli#1805? (please read the fine print in the comment right above this one)."}}