[Bug regex/20381] New: different results between whether fastmap is available or not

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug regex/20381] New: different results between whether fastmap is available or not

macro@linux-mips.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20381

            Bug ID: 20381
           Summary: different results between whether fastmap is available
                    or not
           Product: glibc
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: regex
          Assignee: unassigned at sourceware dot org
          Reporter: noritnk at kcn dot ne.jp
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---
             Flags: security-

--
LC_ALL=el_GR.iso88597

<U03A3>  /xd3  GREEK CAPITAL LETTER SIGMA
<U03C2>  /xf2  GREEK SMALL LETTER FINAL SIGMA
<U03C3>  /xf3  GREEK SMALL LETTER SIGMA

toupper
<U03C3>,<U03A3>
<U03C2>,<U03A3>

tolower
<U03A3>,<U03C3>

totitle
<U03C3>,<U03A3>
<U03C2>,<U03A3>
--

If fastmap is not available, any character in three characters match the
character and other characters without exception.

However if available, GREEK SMALL LETTER FINAL SIGMA does not match
neither the character nor other characters.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug regex/20381] different results between whether fastmap is available or not

macro@linux-mips.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20381

--- Comment #1 from Norihiro Tanaka <noritnk at kcn dot ne.jp> ---
Created attachment 9401
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9401&action=edit
test case for this bug

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug regex/20381] different results between whether fastmap is available or not

macro@linux-mips.org
In reply to this post by macro@linux-mips.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20381

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |adhemerval.zanella at linaro dot o
                   |                            |rg
         Resolution|---                         |OBSOLETE

--- Comment #2 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I am not seeing any issue with the provided testcase on master:

$ ./testrun.sh ./test
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 1 with fastmap, 1 without fastmap
 -> OK
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
azanella@birita:~/Projects/glibc/build/x86_64-linux-gnu-work$

I have not backtracked which commit might have fixed, but I am closing it since
it seems to not be reproducible with recent version. Please reopen the bug if
you still see the issue or provide another testcase with similar issue.

--
You are receiving this mail because:
You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|

[Bug regex/20381] different results between whether fastmap is available or not

macro@linux-mips.org
In reply to this post by macro@linux-mips.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20381

Adhemerval Zanella <adhemerval.zanella at linaro dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
   Last reconfirmed|                            |2018-06-28
         Resolution|OBSOLETE                    |---
     Ever confirmed|0                           |1

--- Comment #3 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> ---
I was fooled by the testcase provided which it does not check if 'setlocale'
was successful.  With the 'el_GR.iso88597' installed on my system now I see the
expected issues with master:

$ ./bz20381
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 1 with fastmap, 0 without fastmap
 -> FAIL
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 1 with fastmap, 0 without fastmap
 -> FAIL
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 0 with fastmap, 0 without fastmap
 -> OK
regexec returned 1 with fastmap, 0 without fastmap
 -> FAIL
regexec returned 0 with fastmap, 0 without fastmap
 -> OK

--
You are receiving this mail because:
You are on the CC list for the bug.