Skip to content

[outerloop] RegexKnownPatternTests.RecreationalRegex_Rectangle either fails with Specified argument was out of the range of valid values. or times out #98962

Description

@carlossanlop

This failure was uncovered in outerloop after fixing an issue that was affecting all runs and hiding other failures: #97135

Error Blob

{
  "ErrorMessage": "",
  "BuildRetry": false,
  "ErrorPattern": "System\\.Text\\.RegularExpressions\\.Tests\\.RegexKnownPatternTests\\.RecreationalRegex_Rectangle.+\\[FAIL\\]",
  "ExcludeConsoleLog": true
}

Reproduction Steps

Details
===========================================================================================================

C:\h\w\A6E20913\w\AC9E095C\e>"C:\h\w\A6E20913\p\dotnet.exe" exec --runtimeconfig System.Text.RegularExpressions.Tests.runtimeconfig.json --depsfile System.Text.RegularExpressions.Tests.deps.json xunit.console.dll System.Text.RegularExpressions.Tests.dll -xml testResults.xml -nologo -nocolor -trait category=OuterLoop -notrait category=IgnoreForCI -notrait category=failing  
  Discovering: System.Text.RegularExpressions.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  System.Text.RegularExpressions.Tests (found 26 of 358 test cases)
  Starting:    System.Text.RegularExpressions.Tests (parallel test collections = on [2 threads], stop on fail = off)
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n1\r\n1\r\n1\r\n\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex505_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex505_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n11\r\n11\r\n\r\n2\r\n2\r\n\r\n~~~\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex506_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex506_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n11\r\n11\r\n\r\n22\r\n\r\n~~~\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex507_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex507_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n11\r\n11\r\n\r\n2222\r\n\r\n33\r\n\r\n4\r\n\r\"���, expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex508_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex508_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n11\r\n11\r\n11\r\n\r\n~~~\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex509_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex509_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n111\r\n\r\n~\r\n~\r\n~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex510_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex510_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n111\r\n\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex511_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex511_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(engine: Compiled, input: "\r\n111\r\n111\r\n\r\n~~~\r\n~~~\r\n", expectedMatch: True) [FAIL]
      System.ArgumentOutOfRangeException : Specified argument was out of the range of valid values.
      Stack Trace:
           at Regex512_TryMatchAtCurrentPosition(RegexRunner, ReadOnlySpan`1)
           at Regex512_Scan(RegexRunner, ReadOnlySpan`1)
           at System.Text.RegularExpressions.CompiledRegexRunner.Scan(ReadOnlySpan`1 text)
           at System.Text.RegularExpressions.Regex.RunSingleMatch(RegexRunnerMode mode, Int32 prevlen, String input, Int32 beginning, Int32 length, Int32 startat)
           at System.Text.RegularExpressions.Regex.IsMatch(String input)
           at System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle(RegexEngine engine, String input, Boolean expectedMatch)
        --- End of stack trace from previous location ---
    System.Text.RegularExpressions.Tests.RegexMatchTests.StressTestDeepNestingOfLoops [SKIP]
      Condition(s) not met: "Is64BitProcess"
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:03:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:05:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:07:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:09:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:11:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:13:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:15:18
   System.Text.RegularExpressions.Tests: [Long Running Test] 'System.Text.RegularExpressions.Tests.RegexKnownPatternTests.RecreationalRegex_Rectangle', Elapsed: 00:17:18

Known Issue Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
### Report #### Summary |24-Hour Hit Count|7-Day Hit Count|1-Month Count| |---|---|---| |0|0|0|

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions