Skip to content

Assertion failure "GlobalizationMode.UseNls" in CalendarData.GetTwoDigitYearMax #77451

Closed

Description

@jakobbotsch

We are seeing assertion failures in libraries code in most of our libraries-jitstress jobs. I don't think it is related to jitstress as it is happening even in the normal test runs without jitstress.

The code was added in #76848, cc @cdbullard @tarekgh

Example failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=62125&view=ms.vss-test-web.build-test-results-tab&runId=1271942&resultId=185125&paneView=dotnet-dnceng.dnceng-anon-build-release-tasks.helix-anon-test-information-tab
Console log: https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-e53db4ae1a13474997/Common.Tests/1/console.5494f283.log?helixlogtype=result

D:\h\w\AE2B0973\w\A34E0974\e>"D:\h\w\AE2B0973\p\dotnet.exe" exec --runtimeconfig Common.Tests.runtimeconfig.json --depsfile Common.Tests.deps.json xunit.console.dll Common.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
  Discovering: Common.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  Common.Tests (found 257 of 265 test cases)
  Starting:    Common.Tests (parallel test collections = on, max threads = 8)
Process terminated. Assertion failed.
   at System.Globalization.CalendarData.GetTwoDigitYearMax(CalendarId calendarId) in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/CalendarData.Windows.cs:line 434
   at System.Globalization.GregorianCalendar.get_TwoDigitYearMax() in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/GregorianCalendar.cs:line 417
   at System.Globalization.Calendar.ToFourDigitYear(Int32 year) in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/Calendar.cs:line 681
   at System.DateTimeParse.DoStrictParse(ReadOnlySpan`1 s, ReadOnlySpan`1 formatParam, DateTimeStyles styles, DateTimeFormatInfo dtfi, DateTimeResult& result) in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs:line 4558
   at System.DateTimeParse.TryParseExactMultiple(ReadOnlySpan`1 s, String[] formats, DateTimeFormatInfo dtfi, DateTimeStyles style, DateTimeResult& result) in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs:line 171
   at System.DateTimeParse.TryParseExactMultiple(ReadOnlySpan`1 s, String[] formats, DateTimeFormatInfo dtfi, DateTimeStyles style, DateTime& result, TimeSpan& offset) in /_/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeParse.cs:line 140
   at Tests.System.Net.Http.HttpDateParserTests.TryParse_UseOfValidDateTimeStringsInDifferentFormats_ParsedCorrectly(String input, DateTimeOffset expected) in /_/src/libraries/Common/tests/Tests/System/Net/HttpDateParserTests.cs:line 49
   at InvokeStub_HttpDateParserTests.TryParse_UseOfValidDateTimeStringsInDifferentFormats_ParsedCorrectly(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Activity

  1. ghost added
    untriagedNew issue has not been triaged by the area owner
    on Oct 25, 2022
  2. added and removed
    untriagedNew issue has not been triaged by the area owner
    on Oct 25, 2022
  3. ghost added
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 26, 2022
  4. added this to the 8.0.0 milestone on Oct 26, 2022
  5. ghost removed
    in-prThere is an active PR which will close this issue when it is merged
    on Oct 26, 2022
  6. ghost locked as resolved and limited conversation to collaborators on Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions