Re: [pcre-dev] [Bug 733] pcre_fullinfo() returns wrong PCRE_…

Pàgina inicial
Delete this message
Autor: A.Steenveld
Data:  
A: pcre-dev
Assumpte: Re: [pcre-dev] [Bug 733] pcre_fullinfo() returns wrong PCRE_INFO_NAMECOUNT on some patterns
> Date: Tue, 15 Jul 2008 22:19:15 +0900
> From: Issaana@???
> Subject: Re: [pcre-dev] [Bug 733] pcre_fullinfo() returns wrong
>     PCRE_INFO_NAMECOUNT on some patterns
> To: pcre-dev@???
> Message-ID: <8EC8E67D610DB3Issaana@???>
> Content-Type: text/plain; charset=us-ascii

>
> On 2008-07-14 18:41, Philip Hazel wrote:
> > Are there any Windows users on the pcre-dev list (to which this
> message
> > goes) who are able to help debug this?
>
> I could reproduce this problem with the following environment.
>


Here are my results testing on XP pro (Dutch), looks not so different to me.

source: PCRE 7.7 (downloaded 7-7-2008)
Compiled on Vista Home edition (Dutch) using gcc v3.4.2 (mingw-special)
Compiler options for static library and/or executable:
* -Wl,--stack,8388608
* Stack size increased to 8 Mb.
* No optionalisation (gcc options *not* used are: -Wall -O2, I should do it!)
* -DHAVE_CONFIG_H -DSUPPORT_UTF8 -DSUPPORT_UCP -DPCRE_STATIC
* 'naked' config.h (Might be room for improvement here, I should work on it!)
#define HAVE_STRTOQ 0
#define HAVE_SYS_STAT_H 0
#define HAVE_SYS_TYPES_H 0
#define HAVE_UNISTD_H 1
#define HAVE_UNSIGNED_LONG_LONG 1
#define HAVE_WINDOWS_H 1
#define HAVE_ZLIB_H 0
#define LINK_SIZE 2
#define MATCH_LIMIT 10000000
#define MATCH_LIMIT_RECURSION MATCH_LIMIT
#define MAX_NAME_COUNT 10000
#define MAX_NAME_SIZE 32
#define NEWLINE -1
#define PACKAGE "pcre"
#define PACKAGE_NAME "PCRE"
#define PACKAGE_STRING "PCRE 7.7"
#define PACKAGE_TARNAME "pcre"
#define PACKAGE_VERSION "7.7"
#define PCRE_STATIC 1
#define POSIX_MALLOC_THRESHOLD 10
#define STDC_HEADERS 1
#define VERSION "7.7"

Using pcretest on Vista:
All tests on test data set were successful. (after resizing stack size)

Using pcretest on XP pro (Dutch)
All tests on test data set were successful.

Running pcretest as suggested in the message.
===8<=== screen output ======
...\pcre\7.7\pcre-7.7>pcretest
PCRE version 7.7 2008-05-07

re> /(?x)1|2 #(?<N>3)/I

Capturing subpattern count = 0
Named capturing subpatterns:
      0
Options: extended
No first char
No need char
data>
===8<=== screen output ======


What else can I do to test?

Kind regards,

Andre Steenveld.


Het UMC St Radboud staat geregistreerd bij de Kamer van Koophandel in het handelsregister onder nummer 41055629.
The Radboud University Nijmegen Medical Centre is listed in the Commercial Register of the Chamber of Commerce under file number 41055629.