[pcre-dev] [Bug 1048] RunGrepTest 62 and 63 fails on s390x a…

Góra strony
Delete this message
Autor: Petr Pisar
Data:  
Dla: pcre-dev
Stare tematy: [pcre-dev] [Bug 1048] New: RunGrepTest 62 and 63 fails on s390x
Temat: [pcre-dev] [Bug 1048] RunGrepTest 62 and 63 fails on s390x and ppc64
------- You are receiving this mail because: -------
You are on the CC list for the bug.

http://bugs.exim.org/show_bug.cgi?id=1048

Petr Pisar <ppisar@???> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|Other                       |All





--- Comment #3 from Petr Pisar <ppisar@???> 2010-12-17 12:15:51 ---
s390x machine:

$ ./configure --disable-stack-for-recursion
$ ./pcregrep --match-limit=1000 -M 'This is a file(.|\R)*file.'
./testdata/grepinput
DEBUG: match_limit=4294967296000, match_limit_recursion=0

4294967296000 = 0x3E800000000
1000 = 0x3E8

I inserted this code:

fprintf(stderr, "DEBUG: match_limit=%lu, match_limit_recursion=%lu\n",
match_limit, match_limit_recursion);

I guess there is a problem with endianity and offset of the variable aligning
its size. Am I right match_limit is static unsigned long int? s390x is big
endian machine.

Enabled recursion provides the same output:
$ ./configure --enable-stack-for-recursion
$ ./pcregrep --match-limit=1000 -M 'This is a file(.|\R)*file.'
./testdata/grepinput
DEBUG: match_limit=4294967296000, match_limit_recursion=0
Segmentation fault


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