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

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

Open
yurivict opened this issue Sep 26, 2022 · 1 comment
Assignees

Comments

@yurivict
Copy link

yurivict commented Sep 26, 2022

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

@jrohel jrohel self-assigned this Sep 26, 2022
@yurivict
Copy link
Author

yurivict commented Apr 9, 2023

0.70.0 still has the same failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants