[pcre-dev] [Bug 1435] New: --enable-bsr-anycrlf option fails…

Páxina inicial
Borrar esta mensaxe
Autor: Tony Reix
Data:  
Para: pcre-dev
Asunto: [pcre-dev] [Bug 1435] New: --enable-bsr-anycrlf option fails in some cases
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1435
           Summary: --enable-bsr-anycrlf option fails in some cases
           Product: PCRE
           Version: 8.34
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
        AssignedTo: ph10@???
        ReportedBy: tony.reix@???
                CC: pcre-dev@???



In some cases (different options used) on Linux/PPC64LE but also on
Linux/Intel, using this --enable-bsr-anycrlf option makes tests fail.
See below for details (KO = failure. OK = success).

  KO  ./configure --enable-pcre16 --enable-pcre32 --enable-utf
--enable-newline-is-any --enable-bsr-anycrlf
   OK ./configure --enable-pcre16 --enable-pcre32 --enable-utf
--enable-newline-is-any
   OK ./configure                                                              
       --enable-bsr-anycrlf
   OK ./configure                                             
--enable-newline-is-any --enable-bsr-anycrlf
   OK ./configure                                 --enable-utf
--enable-newline-is-any --enable-bsr-anycrlf
   OK ./configure                 --enable-pcre32                              
       --enable-bsr-anycrlf
  KO  ./configure                 --enable-pcre32 --enable-utf
--enable-newline-is-any --enable-bsr-anycrlf
   OK ./configure                 --enable-pcre32             
--enable-newline-is-any --enable-bsr-anycrlf
  KO  ./configure                 --enable-pcre32 --enable-utf                 
       --enable-bsr-anycrlf   
   OK ./configure                                 --enable-utf                 
       --enable-bsr-anycrlf



Following example fails both on Linux/Intel and on Linux/PPC64LE :

make clean ; ./configure --enable-pcre32 --enable-utf --enable-bsr-anycrlf ;
make ; make test

PASS: pcrecpp_unittest
PASS: pcre_scanner_unittest
PASS: pcre_stringpiece_unittest
FAIL: RunTest
PASS: RunGrepTest



pcre-8.34$ ./RunTest

PCRE C library tests using test data from ./testdata
PCRE version 8.34 2013-12-15

---- Testing 8-bit library ----

Test 1: Main functionality (Compatible with Perl >= 5.10)
OK
OK with study
Test 2: API, errors, internals, and non-Perl stuff (not UTF-8)
OK
OK with study
Cannot test locale-specific features - none of the 'fr_FR', 'fr' or
'french' locales exist, or the "locale" command is not available
to check for them.

Test 4: UTF-8 support (Compatible with Perl >= 5.10)
OK
OK with study
Test 5: API, internals, and non-Perl stuff for UTF-8 support
OK
OK with study
Test 6: Unicode property support (Compatible with Perl >= 5.10)
Skipped because Unicode property support is not available
Test 7: API, internals, and non-Perl stuff for Unicode property support
Skipped because Unicode property support is not available
Test 8: DFA matching main functionality
OK
OK with study
Test 9: DFA matching with UTF-8
OK
OK with study
Test 10: DFA matching with Unicode properties
Skipped because Unicode property support is not available
Test 11: Internal offsets and code size tests
Skipped because Unicode property support is not available
Test 12: JIT-specific features (when JIT is available)
Skipped because JIT is not available or not usable
Test 13: JIT-specific features (when JIT is not available)
OK
Test 14: Specials for the basic 8-bit library
OK
OK with study
Test 15: Specials for the 8-bit library with UTF-8 support
OK
OK with study
Test 16: Specials for the 8-bit library with Unicode propery support
Skipped because Unicode property support is not available
Test 17: Specials for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 18: Specials for the 16/32-bit library with UTF-16/32 support
Skipped when running 8-bit tests
Test 19: Specials for the 16/32-bit library with Unicode property support
Skipped when running 8-bit tests
Test 20: DFA specials for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 21: Reloads for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 22: Reloads for the 16/32-bit library with UTF-16/32 support
Skipped when running 8-bit tests
Test 23: Specials for the 16-bit library
Skipped when running 8/32-bit tests
Test 24: Specials for the 16-bit library with UTF-16 support
Skipped when running 8/32-bit tests
Test 25: Specials for the 32-bit library
Skipped when running 8/16-bit tests
Test 26: Specials for the 32-bit library with UTF-32 support
Skipped when running 8/16-bit tests

---- Testing 32-bit library ----

Test 1: Main functionality (Compatible with Perl >= 5.10)
OK
OK with study
Test 2: API, errors, internals, and non-Perl stuff (not UTF-32)
OK
OK with study
Cannot test locale-specific features - none of the 'fr_FR', 'fr' or
'french' locales exist, or the "locale" command is not available
to check for them.

Test 4: UTF-32 support (Compatible with Perl >= 5.10)
  OK
  OK with study
Test 5: API, internals, and non-Perl stuff for UTF-32 support
  OK
  OK with study
Test 6: Unicode property support (Compatible with Perl >= 5.10)
  Skipped because Unicode property support is not available
Test 7: API, internals, and non-Perl stuff for Unicode property support
  Skipped because Unicode property support is not available
Test 8: DFA matching main functionality
  OK
  OK with study
Test 9: DFA matching with UTF-32
  OK
  OK with study
Test 10: DFA matching with Unicode properties
  Skipped because Unicode property support is not available
Test 11: Internal offsets and code size tests
  Skipped because Unicode property support is not available
Test 12: JIT-specific features (when JIT is available)
  Skipped because JIT is not available or not usable
Test 13: JIT-specific features (when JIT is not available)
  OK
Test 14: Specials for the basic 8-bit library
  Skipped when running 16/32-bit tests
Test 15: Specials for the 8-bit library with UTF-8 support
  Skipped when running 16/32-bit tests
Test 16: Specials for the 8-bit library with Unicode propery support
  Skipped when running 16/32-bit tests
Test 17: Specials for the basic 16/32-bit library
  OK
  OK with study
Test 18: Specials for the 16/32-bit library with UTF-16/32 support
--- ./testdata/testoutput18-32  2013-11-05 15:53:02.000000000 +0100
+++ testtry     2014-01-17 14:54:27.451201005 +0100
@@ -725,7 +725,7 @@
     CDBABC
  0: A
     \x{2028}A  
- 0: \x{2028}A
+ 0: A


/\v+A/SI8
Capturing subpattern count = 0



As an example, here is a succeeding compilation/test WITHOUT
--enable-bsr-anycrlf :

make clean ; ./configure --enable-pcre32 --enable-utf ; make ; make test

PASS: pcrecpp_unittest
PASS: pcre_scanner_unittest
PASS: pcre_stringpiece_unittest
PASS: RunTest
PASS: RunGrepTest

$ ./RunTest

PCRE C library tests using test data from ./testdata
PCRE version 8.34 2013-12-15

---- Testing 8-bit library ----

Test 1: Main functionality (Compatible with Perl >= 5.10)
OK
OK with study
Test 2: API, errors, internals, and non-Perl stuff (not UTF-8)
OK
OK with study
Cannot test locale-specific features - none of the 'fr_FR', 'fr' or
'french' locales exist, or the "locale" command is not available
to check for them.

Test 4: UTF-8 support (Compatible with Perl >= 5.10)
OK
OK with study
Test 5: API, internals, and non-Perl stuff for UTF-8 support
OK
OK with study
Test 6: Unicode property support (Compatible with Perl >= 5.10)
Skipped because Unicode property support is not available
Test 7: API, internals, and non-Perl stuff for Unicode property support
Skipped because Unicode property support is not available
Test 8: DFA matching main functionality
OK
OK with study
Test 9: DFA matching with UTF-8
OK
OK with study
Test 10: DFA matching with Unicode properties
Skipped because Unicode property support is not available
Test 11: Internal offsets and code size tests
Skipped because Unicode property support is not available
Test 12: JIT-specific features (when JIT is available)
Skipped because JIT is not available or not usable
Test 13: JIT-specific features (when JIT is not available)
OK
Test 14: Specials for the basic 8-bit library
OK
OK with study
Test 15: Specials for the 8-bit library with UTF-8 support
OK
OK with study
Test 16: Specials for the 8-bit library with Unicode propery support
Skipped because Unicode property support is not available
Test 17: Specials for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 18: Specials for the 16/32-bit library with UTF-16/32 support
Skipped when running 8-bit tests
Test 19: Specials for the 16/32-bit library with Unicode property support
Skipped when running 8-bit tests
Test 20: DFA specials for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 21: Reloads for the basic 16/32-bit library
Skipped when running 8-bit tests
Test 22: Reloads for the 16/32-bit library with UTF-16/32 support
Skipped when running 8-bit tests
Test 23: Specials for the 16-bit library
Skipped when running 8/32-bit tests
Test 24: Specials for the 16-bit library with UTF-16 support
Skipped when running 8/32-bit tests
Test 25: Specials for the 32-bit library
Skipped when running 8/16-bit tests
Test 26: Specials for the 32-bit library with UTF-32 support
Skipped when running 8/16-bit tests

---- Testing 32-bit library ----

Test 1: Main functionality (Compatible with Perl >= 5.10)
OK
OK with study
Test 2: API, errors, internals, and non-Perl stuff (not UTF-32)
OK
OK with study
Cannot test locale-specific features - none of the 'fr_FR', 'fr' or
'french' locales exist, or the "locale" command is not available
to check for them.

Test 4: UTF-32 support (Compatible with Perl >= 5.10)
OK
OK with study
Test 5: API, internals, and non-Perl stuff for UTF-32 support
OK
OK with study
Test 6: Unicode property support (Compatible with Perl >= 5.10)
Skipped because Unicode property support is not available
Test 7: API, internals, and non-Perl stuff for Unicode property support
Skipped because Unicode property support is not available
Test 8: DFA matching main functionality
OK
OK with study
Test 9: DFA matching with UTF-32
OK
OK with study
Test 10: DFA matching with Unicode properties
Skipped because Unicode property support is not available
Test 11: Internal offsets and code size tests
Skipped because Unicode property support is not available
Test 12: JIT-specific features (when JIT is available)
Skipped because JIT is not available or not usable
Test 13: JIT-specific features (when JIT is not available)
OK
Test 14: Specials for the basic 8-bit library
Skipped when running 16/32-bit tests
Test 15: Specials for the 8-bit library with UTF-8 support
Skipped when running 16/32-bit tests
Test 16: Specials for the 8-bit library with Unicode propery support
Skipped when running 16/32-bit tests
Test 17: Specials for the basic 16/32-bit library
OK
OK with study
Test 18: Specials for the 16/32-bit library with UTF-16/32 support
OK
OK with study
Test 19: Specials for the 16/32-bit library with Unicode property support
Skipped because Unicode property support is not available
Test 20: DFA specials for the basic 16/32-bit library
OK
OK with study
Test 21: Reloads for the basic 16/32-bit library
OK
Test 22: Reloads for the 16/32-bit library with UTF-16/32 support
OK
Test 23: Specials for the 16-bit library
Skipped when running 8/32-bit tests
Test 24: Specials for the 16-bit library with UTF-16 support
Skipped when running 8/32-bit tests
Test 25: Specials for the 32-bit library
OK
Test 26: Specials for the 32-bit library with UTF-32 support
OK


--
Configure bugmail: http://bugs.exim.org/userprefs.cgi?tab=email