Skip to content

Error ingestion can throw RegexMatchTimeoutException #4937

@DavidBoike

Description

@DavidBoike

Symptoms

During error ingestion, an exception is thrown, preventing the error message from being ingested into the database:

System.Text.RegularExpressions.RegexMatchTimeoutException: The Regex engine has timed out while trying to match a pattern to an input string. This can occur for many reasons, including very large inputs or excessive backtracking caused by nested quantifiers, back-references and other factors.

Who's affected

All users of ServiceControl, if exception stack traces are long enough or complex enough to trigger the timeout.

Root cause

Exception stack traces in error messages are parsed in order to group related exceptions together by the exception message and top stack frame. If the stack trace is long enough or complex enough, the parser could time out due to repeated backtracking in the regular expression parser.

Backports

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions