Skip to content

Tests fail: LibraryException is thrown because of failing regular expression #1581

@yurivict

Description

@yurivict

The exceptions are thrown from here:

25│ Regex::Regex(const char * regex, int flags)
26│ {
27│     auto errCode = regcomp(&exp, regex, flags);
28│     if (errCode != 0) {
29│         auto size = regerror(errCode, &exp, nullptr, 0);
30│         if (size) {
31│             std::string msg(size, '\0');
32│             regerror(errCode, &exp, &msg.front(), size);
33├───────────> throw LibraryException(errCode, msg);
34│         }
35│         throw LibraryException(errCode, "");
36│     }
37│ }

The failing regex:

(gdb) p regex
$1 = 0x80046aace "^(\\S*)\\s*(<=|>=|<|>|=|==)?\\s*(\\S*)$"
(gdb) p errCode
$2 = 5

Version: 0.69.0
OS: FreeBSD 13.1 STABLE

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions