-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build task is crashing on ETA and VSI runs #7470
Comments
10:53:15 C:\Users\dotnet-bot.nuget\packages\Microsoft.Net.Compilers\1.2.0-beta-20151211-01\tools\Microsoft.CSharp.Core.targets(67,5): error : at Microsoft.CodeAnalysis.BuildTasks.ManagedCompiler.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [d:\j\workspace\roslyn-internal_prtest_win_dbg_unit32\Open\src\Features\Core\Portable\Features.csproj] |
We hit this again, @jaredpar can you get someone to have a look at this? |
We suspect that the toolset update introduced this: #7444. |
I am currently attempting to reproduce the issue with PDBs present. This way, hopefully we can get line-number info as well as (maybe) a call stack. |
How did we go with this? |
It hasn't failed in the two days since I've tried to repro... |
We hit this again: #7782 |
Only the middle one, http://dotnet-ci.cloudapp.net/view/roslyn/job/roslyn_prtest_win_dbg_unit64/2550/, looks related. |
I think I see the problem: https://github.com/dotnet/roslyn/blob/master/src/Compilers/Core/MSBuildTask/Shared/ManagedCompiler.cs#L389 NRE if responseTask is null. https://github.com/dotnet/roslyn/blob/master/src/Compilers/Shared/DesktopBuildClient.cs#L160 Looks like that should be |
Making a PR now. |
Damnit, nice one. We've been trying find the cause for ages. We couldn't get a consistent repro. |
Jared actually fixed a case in e0d04ad but just missed this one. |
Should we have an analyzer that detects constant |
@amcasey I could see a good reason for returning null, rather than boxing a |
@agocke What is your example scenario? I've always thought of Task as being a prime example of "this is a reference type, but seriously shouldn't ever be null". |
@TyOverby Someone with a task-returning method which is often going to be "empty" and they don't want to incur an extra allocation. In theory the Task.FromResult(..) could be cached, but I'm not willing to say that's uniformly better. |
@agocke good catch. How were you able to debug this? Or did you just find this via code inspection? |
@jaredpar Code inspection |
C:\Users\dotnet-bot.nuget\packages\Microsoft.Net.Compilers\1.2.0-beta-20151211-01\tools\Microsoft.CSharp.Core.targets(67,5): error MSB3883: Unexpected exception: [d:\j\workspace\roslyn-internal_prtest_win_dbg_unit32\Open\src\Features\Core\Portable\Features.csproj]
10:53:14 C:\Users\dotnet-bot.nuget\packages\Microsoft.Net.Compilers\1.2.0-beta-20151211-01\tools\Microsoft.CSharp.Core.targets(67,5): error : System.NullReferenceException: Object reference not set to an instance of an object. [d:\j\workspace\roslyn-internal_prtest_win_dbg_unit32\Open\src\Features\Core\Portable\Features.csproj]
http://dotnet-ci.cloudapp.net/job/roslyn-internal_prtest_win_dbg_unit32/404/consoleFull#56248540979494335-f7bd-47d0-8771-8661e00c2db2
The text was updated successfully, but these errors were encountered: