Skip to content
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

msbuild crashes with "MSB0001: Internal MSBuild Error: must be valid" #3304

Open
3 tasks
akoeplinger opened this issue Jul 8, 2024 · 6 comments
Open
3 tasks

Comments

@akoeplinger
Copy link
Member

akoeplinger commented Jul 8, 2024

Build

https://dev.azure.com/dnceng/internal/_build/results?buildId=2490361 and https://dev.azure.com/dnceng/internal/_build/results?buildId=2490308

Build leg reported

No response

Pull Request

No response

Known issue core information

Fill out the known issue JSON section by following the step by step documentation on how to create a known issue

 {
    "ErrorMessage" : "MSB0001: Internal MSBuild Error: must be valid",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
 }

@dotnet/dnceng

Release Note Category

  • Feature changes/additions
  • Bug fixes
  • Internal Infrastructure Improvements

Release Note Description

Additional information about the issue reported

    MSBUILD : error MSB4166: Child node "3" exited prematurely. Shutting down. Diagnostic information may be found in files in "/tmp/MSBuildTemproot/" and will be named MSBuild_*.failure.txt. This location can be changed by setting the MSBUILDDEBUGPATH environment variable to a different directory.
    MSBUILD : error MSB4166: /tmp/MSBuildTemproot/MSBuild_pid-14914_ef532437860e4947b63c7a07fa167972.failure.txt:
    MSBUILD : error MSB4166: UNHANDLED EXCEPTIONS FROM PROCESS 14914:
    MSBUILD : error MSB4166: =====================
    MSBUILD : error MSB4166: 07/08/2024 11:37:54
    MSBUILD : error MSB4166: Microsoft.Build.Framework.InternalErrorException: MSB0001: Internal MSBuild Error: must be valid
    MSBUILD : error MSB4166:    at Microsoft.Build.Shared.ErrorUtilities.ThrowInternalError(String message, Exception innerException, Object[] args)
    MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.Logging.LoggingContext.LogBuildEvent(BuildEventArgs buildEvent)
    MSBUILD : error MSB4166:    at Microsoft.Build.BackEnd.Components.RequestBuilder.AssemblyLoadsTracker.CurrentDomainOnAssemblyLoad(Object sender, AssemblyLoadEventArgs args)
    MSBUILD : error MSB4166: ===================
    MSBUILD : error MSB4166: 
    MSBUILD : error MSB4166: 

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng/internal/_build/results?buildId=2490308
Error message validated: [MSB0001: Internal MSBuild Error: must be valid]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/8/2024 4:25:13 PM UTC

Report

Build Definition Step Name Console log Pull Request
755409 dotnet/runtime Build Tests Log dotnet/runtime#105504
755382 dotnet/runtime Build product Log dotnet/runtime#105432
755379 dotnet/runtime Build product Log dotnet/runtime#105432
755309 dotnet/runtime Build Tests Log dotnet/runtime#105150
755306 dotnet/runtime Build product Log dotnet/runtime#105424
755296 dotnet/runtime Build product Log dotnet/runtime#104562
755275 dotnet/runtime Build managed test components Log
755215 dotnet/runtime Build product Log dotnet/runtime#105299
755181 dotnet/runtime Build product Log dotnet/runtime#103861
755151 dotnet/runtime Build product Log dotnet/runtime#105480
755133 dotnet/runtime Build Tests Log dotnet/runtime#105133
755046 dotnet/runtime Build managed test components Log dotnet/runtime#105308
755035 dotnet/runtime Build product Log dotnet/runtime#105394
754959 dotnet/runtime Build managed test components Log dotnet/runtime#105470
754971 dotnet/runtime Build product Log dotnet/runtime#105471
754966 dotnet/runtime Build product Log dotnet/runtime#105336
2502252 dotnet-runtime Build product (linux_arm64) Log
2502302 dotnet-runtime Build product (linux_musl_x64) Log
2502282 dotnet-runtime Build product Log
2502248 dotnet-dotnet Build Log
754799 dotnet/runtime Build product Log dotnet/runtime#103945
754797 dotnet/sdk Build Log dotnet/sdk#42362
754777 dotnet/runtime Build product Log
754713 dotnet/runtime Build Tests Log dotnet/runtime#104536
754678 dotnet/runtime Build coreclr/libs components needed by test build Log dotnet/runtime#105407
754648 dotnet/runtime Build Tests Log dotnet/runtime#103795
754596 dotnet/runtime Build product Log dotnet/runtime#105151
754555 dotnet/runtime Build product Log dotnet/runtime#105433
754414 dotnet/runtime Build product Log dotnet/runtime#105416
754331 dotnet/runtime Build product Log dotnet/runtime#99596
754250 dotnet/runtime Build Tests Log dotnet/runtime#105403
754191 dotnet/runtime Build managed test components Log dotnet/runtime#85344
754100 dotnet/runtime Build Tests Log dotnet/runtime#104964
754085 dotnet/runtime Build managed test components Log
754072 dotnet/runtime Build Tests Log dotnet/runtime#105372
2501824 dotnet-runtime Build managed test components Log
753978 dotnet/runtime Build product Log dotnet/runtime#105419
753973 dotnet/runtime Build product Log dotnet/runtime#105418
753970 dotnet/runtime Build product Log dotnet/runtime#85694
753958 dotnet/runtime Build product Log dotnet/runtime#105289
2501780 dotnet-runtime Build product (linux_arm64) Log
753882 dotnet/runtime Build product Log dotnet/runtime#104502
753759 dotnet/sdk Build Log dotnet/sdk#42300
753754 dotnet/sdk Build Log dotnet/sdk#42288
753740 dotnet/sdk Build Log dotnet/sdk#42347
753683 dotnet/sdk Build Log dotnet/sdk#42262
753658 dotnet/sdk Build Log dotnet/sdk#42345
2501632 dotnet-dotnet Build Log
2501619 dotnet-dotnet Build Log
753564 dotnet/sdk Build Log dotnet/sdk#27822
2501575 dotnet-dotnet Build Log
2501480 dotnet-dotnet Build Log
753182 dotnet/sdk Build Log dotnet/sdk#42330
2501394 dotnet-dotnet Build Log
753071 dotnet/sdk Build Log dotnet/sdk#42330
2501295 dotnet-dotnet Build Log
752872 dotnet/sdk Build Log dotnet/sdk#42327
2501235 dotnet-dotnet Build Log
752859 dotnet/sdk Build Log dotnet/sdk#42326
752812 dotnet/sdk Build Log dotnet/sdk#42298
752787 dotnet/sdk Build Log dotnet/sdk#42324
752628 dotnet/sdk Build Log dotnet/sdk#40800
752611 dotnet/sdk Build Log dotnet/sdk#42318
2500924 dotnet-dotnet Build Log
752266 dotnet/sdk Build Log dotnet/sdk#42301
752095 dotnet/sdk Build Log dotnet/sdk#42309
751985 dotnet/sdk Build Log dotnet/sdk#42125
751983 dotnet/sdk Build Log dotnet/sdk#42125
2500732 dotnet-dotnet Build Log
751759 dotnet/sdk Build Log dotnet/sdk#42293
751752 dotnet/sdk Build Log dotnet/sdk#42297
751560 dotnet/sdk Build Log dotnet/sdk#42251
751587 dotnet/sdk Build Log dotnet/sdk#42282
751502 dotnet/sdk Build Log dotnet/sdk#42282
2500324 dotnet-dotnet Build Log
2500472 dotnet-dotnet Build Log
2500149 dotnet-dotnet Build Log
750833 dotnet/sdk Build Log dotnet/sdk#42275
750835 dotnet/sdk Build Log dotnet/sdk#42275
750808 dotnet/sdk Build Log dotnet/sdk#42242
750778 dotnet/sdk Build Log dotnet/sdk#40645
750553 dotnet/sdk Build Log dotnet/sdk#42258
2500013 dotnet-dotnet Build Log
750516 dotnet/sdk Build Log dotnet/sdk#40645
750386 dotnet/sdk Build Log dotnet/sdk#42251
750353 dotnet/sdk Build Log dotnet/sdk#42242
750038 dotnet/sdk Build Log dotnet/sdk#42273
2499828 dotnet-dotnet Build Log
749749 dotnet/sdk Build Log dotnet/sdk#42157
749549 dotnet/sdk Build Log dotnet/sdk#42265
749566 dotnet/sdk Build Log dotnet/sdk#42267
2499363 dotnet-dotnet Build Log
2499253 dotnet-dotnet Build Log
749160 dotnet/sdk Build Log dotnet/sdk#42249
2499199 dotnet-dotnet Build Log
748945 dotnet/sdk Build Log dotnet/sdk#42257
2498896 dotnet-dotnet Build Log
748573 dotnet/sdk Build Log dotnet/sdk#42256
2498564 dotnet-dotnet Build Log
748374 dotnet/sdk Build Log dotnet/sdk#42256
Displaying 100 of 243 results

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
32 115 243
@akoeplinger
Copy link
Member Author

@rainersigwald @baronfel any ideas?

@baronfel
Copy link
Member

baronfel commented Jul 8, 2024

cc @JanKrivanek as MSBuild kitten

@rainersigwald
Copy link
Member

must be valid is such a bad error message :sigh:

Looks like it's claiming that the LoggingContext is not marked valid, so it's either not fully constructed or was already marked Finished. There shouldn't be a way to get into this situation so this is an MSBuild bug.

@akoeplinger
Copy link
Member Author

Ok, should I file another issue in dotnet/msbuild then?

@JanKrivanek
Copy link
Member

Ok, should I file another issue in dotnet/msbuild then?

Yes please - move or copy to dotnet/msbuild

@akoeplinger
Copy link
Member Author

dotnet/msbuild#10342. I'm keeping this open so the Build Analysis tracking works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants