Description of problem: This test case, taken from one in the grep test suite, causes regexec incorrectly not to return. Version-Release number of selected component (if applicable): 2.3.2-50 How reproducible: 100% #include <regex.h> #include <stdio.h> int main () { regex_t rbuf; const char *p; int err; p = "^(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?)(.?).?" "\\9\\8\\7\\6\\5\\4\\3\\2\\1$"; if ((err = regcomp (&rbuf, p, REG_NOSUB | REG_EXTENDED))) { char errstr[300]; regerror (err, &rbuf, errstr, sizeof (errstr)); puts (errstr); return err; } return regexec (&rbuf, "civic", 0, NULL, 0); }
Forwarded to Isamu.
Still problem with current glibc. Tracked upstream: http://sources.redhat.com/bugzilla/show_bug.cgi?id=429