[Bug 1361610] Re: libPCRE3 8.31 regex matching is not working

Mark Ebbers m.ebbers at i-real.nl
Tue May 24 06:53:04 UTC 2016


Arne, I compiled your code, got no warnings and got a different output!

Poco 0x01030600 on Linux 4.2.0-35-generic @ x86_64
Poco  match 1234567890 to pattern ^[0-9]{10} matches? no
Poco  match 123456789 to pattern ^[0-9]{10} matches? no
Boost match 1234567890 to pattern ^[0-9]{10} matches? yes
Boost match 123456789 to pattern ^[0-9]{10} matches? no
PCRE 8.31 2012-07-06
PCRE  match 1234567890 to pattern ^[0-9]{10} matches? yes
PRCE  match 123456789 to pattern ^[0-9]{10} matches? yes

System info
	linux-vdso.so.1 =>  (0x00007ffc9efc4000)
	libboost_regex.so.1.54.0 => /usr/lib/x86_64-linux-gnu/libboost_regex.so.1.54.0 (0x00007f87ad124000)
	libPocoFoundation.so.9 => /usr/lib/libPocoFoundation.so.9 (0x00007f87acdd8000)
	libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007f87acb99000)
	libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f87ac895000)
	libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f87ac67f000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f87ac2b9000)
	libicuuc.so.52 => /usr/lib/x86_64-linux-gnu/libicuuc.so.52 (0x00007f87abf40000)
	libicui18n.so.52 => /usr/lib/x86_64-linux-gnu/libicui18n.so.52 (0x00007f87abb39000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f87ab91a000)
	libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f87ab701000)
	libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f87ab4fd000)
	librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007f87ab2f4000)
	libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f87aafee000)
	/lib64/ld-linux-x86-64.so.2 (0x00005582e37fc000)
	libicudata.so.52 => /usr/lib/x86_64-linux-gnu/libicudata.so.52 (0x00007f87a9780000)

inux ws004 4.2.0-35-generic #40~14.04.1-Ubuntu SMP Fri Mar 18 16:37:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
gcc version 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04.3)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to pcre3 in Ubuntu.
https://bugs.launchpad.net/bugs/1361610

Title:
  libPCRE3 8.31 regex matching is not working

Status in pcre3 package in Ubuntu:
  Invalid
Status in poco package in Ubuntu:
  Confirmed

Bug description:
  It looks like that libPCRE3 8.31 included in Ubuntu 13.10 does not
  handle regex matching alright. This also affects the libPocoFoundation
  RegularExpression classes.

  I attached a proof-of-concept which tests a good and bad heystack
  string to a regex pattern with Poco, Boost and PCRE. I tested it on
  two different machines with the following output:

  Ubuntu 13.10 3.11.0-13-generic #20-Ubuntu SMP Wed Oct 23 17:26:33 UTC 2013 i686 i686 i686 GNU/Linux
  Poco 0x01030600 on Linux 3.11.0-13-generic @ i686
  Poco  match 1234567890 to pattern ^[0-9]{10} matches? no --> NOT CORRECT
  Poco  match 123456789 to pattern ^[0-9]{10} matches? no
  Boost match 1234567890 to pattern ^[0-9]{10} matches? yes
  Boost match 123456789 to pattern ^[0-9]{10} matches? no
  PCRE 8.31 2012-07-06
  PCRE  match 1234567890 to pattern ^[0-9]{10} matches? yes
  PRCE  match 123456789 to pattern ^[0-9]{10} matches? yes --> NOT CORRECT

  Ubuntu 12.04.3 LTS  3.8.0-29-generic #42~precise1-Ubuntu SMP Wed Aug 14 15:31:16 UTC 2013 i686 i686 i386 GNU/Linux
  Poco 0x01030600 on Linux 3.8.0-29-generic @ i686
  Poco  match 1234567890 to pattern ^[0-9]{10} matches? yes --> OK
  Poco  match 123456789 to pattern ^[0-9]{10} matches? no
  Boost match 1234567890 to pattern ^[0-9]{10} matches? yes
  Boost match 123456789 to pattern ^[0-9]{10} matches? no
  PCRE 8.12 2011-01-15
  PCRE  match 1234567890 to pattern ^[0-9]{10} matches? yes
  PRCE  match 123456789 to pattern ^[0-9]{10} matches? no --> OK

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pcre3/+bug/1361610/+subscriptions



More information about the foundations-bugs mailing list