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

PNSE in System.Buffers.IndexOfAnyAsciiSearcher.IndexOfAnyVectorized on iOS/tvOS arm64 #85345

Closed
akoeplinger opened this issue Apr 25, 2023 · 1 comment · Fixed by #85401
Closed
Labels
arch-arm64 area-Codegen-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS os-tvos Apple tvOS
Milestone

Comments

@akoeplinger
Copy link
Member

akoeplinger commented Apr 25, 2023

We're seeing a bunch of test failures on arm64 iOS/tvOS with stack traces like this one:

System.PlatformNotSupportedException : Operation is not supported on this platform.

Stack trace
   at System.Buffers.IndexOfAnyAsciiSearcher.IndexOfAnyVectorized[Negate,Default](Int16& searchSpace, Int32 searchSpaceLength, Vector128`1 bitmap)
   at System.Globalization.CompareInfo.IndexOfOrdinalHelper(ReadOnlySpan`1 source, ReadOnlySpan`1 target, CompareOptions options, Int32* matchLengthPtr, Boolean fromBeginning)
   at System.Globalization.CompareInfo.IcuIndexOfCore(ReadOnlySpan`1 source, ReadOnlySpan`1 target, CompareOptions options, Int32* matchLengthPtr, Boolean fromBeginning)
   at System.Globalization.CompareInfo.IndexOf(ReadOnlySpan`1 source, ReadOnlySpan`1 value, CompareOptions options)
   at System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options)
   at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
   at System.String.IndexOf(String value, StringComparison comparisonType)
   at System.Tests.EnumTests.Parse_NonExistentValue_IncludedInErrorMessage(String value)

/cc @SamMonoRT @fanyang-mono @radekdoulik

I think it got introduced by #85303

Build Information

Build: #85303
Leg Name: Build ios-arm64 Release AllSubsets_Mono

Error Message

{ 
    "ErrorMessage": "at System.Buffers.IndexOfAnyAsciiSearcher.IndexOfAnyVectorized",
    "BuildRetry": false,
    "ErrorPattern": "",
    "ExcludeConsoleLog": false
} 

Report

Build Definition Test Pull Request
254131 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85445
254123 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_Long_Success #85443
254098 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_Long_Success #85437
254102 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String #85438
253680 dotnet/runtime System.Tests.StringTests.ContainsNoMatch_StringComparison #85310
254054 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.ConstructorHidden_EnvironmentStackTrace #85433
254082 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace
254073 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String #85431
254043 dotnet/runtime System.Xml.XmlSchemaValidatorApiTests.TCXmlSchemaValidatorMisc.XSDValidationGeneratesInvalidError_1 #84871
254002 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String
253912 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #85424
253464 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #85404
253894 dotnet/runtime System.Tests.DerivedException.Exception_OverriddenToStringOnInnerException
253831 dotnet/runtime System.Tests.DerivedException.Exception_OverriddenToStringOnInnerException #84793
253826 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85283
253841 dotnet/runtime System.Data.Tests.DataTableTest5.XmlTest14
253809 dotnet/runtime System.IO.Tests.FileLoadExceptionTests.ToStringTest #85328
253756 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #83854
253779 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String
253729 dotnet/runtime System.Tests.DerivedException.Exception_OverriddenToStringOnInnerException #85418
253760 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String
253577 dotnet/runtime System.Tests.BadImageFormatExceptionTests.ToStringTest #85410
253537 dotnet/runtime System.Tests.BadImageFormatExceptionTests.ToStringTest #85308
253522 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #85405
253493 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_InvalidSurrogatePairs #85343
253456 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String #85402
253435 dotnet/runtime System.Tests.DerivedException.Exception_OverriddenToStringOnInnerException #85254
253413 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_Long_Success #85400
252698 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85283
253374 dotnet/runtime System.Tests.StringTests.ContainsNoMatch_StringComparison #85399
253359 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace #85323
253317 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #85328
253228 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #85335
253181 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #85143
253162 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String #85393
253171 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String #85310
253139 dotnet/runtime System.Tests.UriMethodTests.GetComponents_Advanced #85313
253113 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace #85308
253059 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace #85342
252996 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #85388
252953 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85158
252972 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85313
252946 dotnet/runtime System.Data.Tests.DataTableTest5.XmlTest9 #85384
252941 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String #85384
252926 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85328
252922 dotnet/runtime System.Reflection.Tests.TypeInfoPropertyTests.TestIsEnum
252855 dotnet/runtime WasmTestOnBrowser-Microsoft.Extensions.Http.Tests.WorkItemExecution #85143
252877 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String
252815 dotnet/runtime System.Runtime.Serialization.Xml.XsdDataContractExporterTests.ExporterApiTests.Ctor_Schemas #85185
252802 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #85378
252793 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #84580
252784 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #85284
252568 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85368
252554 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_InvalidSurrogatePairs #85282
251958 dotnet/runtime System.Tests.DuplicateWaitObjectExceptionTests.Ctor_String_String #85127
252476 dotnet/runtime System.Tests.StringTests.ContainsNoMatch_StringComparison #85328
252461 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #85342
252455 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.StructHidden_EnvironmentStackTrace #85191
252149 dotnet/runtime System.Tests.BadImageFormatExceptionTests.ToStringTest
252407 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace #85335
252361 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #85310
252328 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #84132
252248 dotnet/runtime System.Tests.UriMethodTests.MakeRelative_Invalid #85360
252256 dotnet/runtime System.Xml.XmlSchemaValidatorApiTests.TCXmlSchemaValidatorMisc.XSDValidationGeneratesInvalidError_1
252200 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85308
252191 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String_String #85351
252151 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85355
252132 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #85298
252108 dotnet/runtime System.Tests.UriMethodTests.EscapeDataString_InvalidSurrogatePairs #85350
252073 dotnet/runtime System.Tests.StackTraceHiddenAttributeTests.MethodHidden_EnvironmentStackTrace #85348
252037 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #85346
251733 dotnet/runtime System.IO.Tests.FileLoadExceptionTests.ToStringTest #85334
251910 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #85282
251686 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85328
251855 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85343
251867 dotnet/runtime System.Tests.DerivedException.Exception_OverriddenToStringOnInnerException #82045
251842 dotnet/runtime System.Tests.ArgumentExceptionTests.Ctor_String_String_Exception #85342
251820 dotnet/runtime System.Tests.ArgumentOutOfRangeExceptionTests.Ctor_String_Object_String #85143
251772 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85313
251680 dotnet/runtime System.IO.Tests.FileNotFoundExceptionTests.ToStringTest #82393
251699 dotnet/runtime System.Tests.ArgumentNullExceptionTests.Ctor_String #74623
251278 dotnet/runtime System.Tests.ObjectDisposedExceptionTests.Ctor_String_String #85303

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
48 82 82
@ghost
Copy link

ghost commented Apr 25, 2023

Tagging subscribers to 'os-ios': @steveisok, @akoeplinger
See info in area-owners.md if you want to be subscribed.

Issue Details

We're seeing a bunch of test failures on arm64 iOS/tvOS with stack traces like this one:

System.PlatformNotSupportedException : Operation is not supported on this platform.

Stack trace
   at System.Buffers.IndexOfAnyAsciiSearcher.IndexOfAnyVectorized[Negate,Default](Int16& searchSpace, Int32 searchSpaceLength, Vector128`1 bitmap)
   at System.Globalization.CompareInfo.IndexOfOrdinalHelper(ReadOnlySpan`1 source, ReadOnlySpan`1 target, CompareOptions options, Int32* matchLengthPtr, Boolean fromBeginning)
   at System.Globalization.CompareInfo.IcuIndexOfCore(ReadOnlySpan`1 source, ReadOnlySpan`1 target, CompareOptions options, Int32* matchLengthPtr, Boolean fromBeginning)
   at System.Globalization.CompareInfo.IndexOf(ReadOnlySpan`1 source, ReadOnlySpan`1 value, CompareOptions options)
   at System.Globalization.CompareInfo.IndexOf(String source, String value, Int32 startIndex, Int32 count, CompareOptions options)
   at System.String.IndexOf(String value, Int32 startIndex, Int32 count, StringComparison comparisonType)
   at System.String.IndexOf(String value, StringComparison comparisonType)
   at System.Tests.EnumTests.Parse_NonExistentValue_IncludedInErrorMessage(String value)

/cc @SamMonoRT @fanyang-mono @radekdoulik

I think it got introduced by #85303

Author: akoeplinger
Assignees: -
Labels:

arch-arm64, area-Codegen-meta-mono, os-ios, os-tvos

Milestone: 8.0.0

@kotlarmilos kotlarmilos added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Apr 26, 2023
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Apr 26, 2023
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Apr 27, 2023
@ghost ghost locked as resolved and limited conversation to collaborators May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-arm64 area-Codegen-meta-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab os-ios Apple iOS os-tvos Apple tvOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants