public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/874] New: regcomp regression
@ 2005-04-26  9:49 jan at jgc dot homeip dot net
  2005-04-26 10:41 ` [Bug regex/874] " jakub at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: jan at jgc dot homeip dot net @ 2005-04-26  9:49 UTC (permalink / raw)
  To: glibc-bugs-regex

The regcomp function in current CVS and Fedora rawhide no longer accepts
dual-bracket regular expressions.

This piece of code works on GNU libc <= 2.3.5, FreeBSD and OpenBSD without
problems, but with the additional regcomp change that has been done to CVS this
piece of code returns 7, which means a problem with brackets (missing ] while
opened with [ for example). This issue also affects tools like grep.

#include <sys/types.h>
#include <regex.h>
#include <stdlib.h>
#include <stdio.h>

int
main (int argc, char **argv)
{
  int err;
  regex_t r;
  err = regcomp (&r, "[[:space:]]", REG_EXTENDED);
  if (err != 0) {
    printf("%d\n", err);
  }
  return 0;
}

-- 
           Summary: regcomp regression
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: critical
          Priority: P2
         Component: regex
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: jan at jgc dot homeip dot net
                CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
                    bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/874] regcomp regression
  2005-04-26  9:49 [Bug regex/874] New: regcomp regression jan at jgc dot homeip dot net
@ 2005-04-26 10:41 ` jakub at redhat dot com
  2005-04-26 10:47 ` jan at jgc dot homeip dot net
  2005-04-26 13:19 ` jan at jgc dot homeip dot net
  2 siblings, 0 replies; 4+ messages in thread
From: jakub at redhat dot com @ 2005-04-26 10:41 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From jakub at redhat dot com  2005-04-26 10:31 -------
Does that testcase really file for you?
I can't reproduce this on Fedora glibc-2.3.5-1 on i686 nor with CVS glibc
on x86-64.  regcomp in all cases returns 0.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sources.redhat.com/bugzilla/show_bug.cgi?id=874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/874] regcomp regression
  2005-04-26  9:49 [Bug regex/874] New: regcomp regression jan at jgc dot homeip dot net
  2005-04-26 10:41 ` [Bug regex/874] " jakub at redhat dot com
@ 2005-04-26 10:47 ` jan at jgc dot homeip dot net
  2005-04-26 13:19 ` jan at jgc dot homeip dot net
  2 siblings, 0 replies; 4+ messages in thread
From: jan at jgc dot homeip dot net @ 2005-04-26 10:47 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From jan at jgc dot homeip dot net  2005-04-26 10:46 -------
I get this behaviour with glibc-20050415T0909 as found in Fedora rawhide CVS.
Currently recompiling with other options to make sure it isn't a compile f*ckup
instead of a real bug.

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug regex/874] regcomp regression
  2005-04-26  9:49 [Bug regex/874] New: regcomp regression jan at jgc dot homeip dot net
  2005-04-26 10:41 ` [Bug regex/874] " jakub at redhat dot com
  2005-04-26 10:47 ` jan at jgc dot homeip dot net
@ 2005-04-26 13:19 ` jan at jgc dot homeip dot net
  2 siblings, 0 replies; 4+ messages in thread
From: jan at jgc dot homeip dot net @ 2005-04-26 13:19 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From jan at jgc dot homeip dot net  2005-04-26 13:15 -------
Seems this bug is caused by specific options in ./configure our glibc package
maintainer didn't check.

I changed the build parameters for ./configure to use exactly the same lines as
the specfile in fedora CVS says and now it works fine.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


http://sources.redhat.com/bugzilla/show_bug.cgi?id=874

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-04-26 13:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-26  9:49 [Bug regex/874] New: regcomp regression jan at jgc dot homeip dot net
2005-04-26 10:41 ` [Bug regex/874] " jakub at redhat dot com
2005-04-26 10:47 ` jan at jgc dot homeip dot net
2005-04-26 13:19 ` jan at jgc dot homeip dot net

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).