[pcre-dev] [Bug 1222] Test failures on powerpc-darwin8

Top Page
Delete this message
Author: David Fang
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 1222] Test failures on powerpc-darwin8
------- You are receiving this mail because: -------
You are on the CC list for the bug.

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




--- Comment #6 from David Fang <fang@???> 2012-04-01 21:19:20 ---
Hi,

I've built pcre with -O1, the lowest optimization setting that exhibits
the test failure, and found:

% ./pcretest -dfa testfile
PCRE version 8.30 2012-02-04

/^abcdef/
abc\P

---------------------
Call to internal_dfa_exec f=1
ADD_NEW(3,0)
End state = 16
Next character: rest of subject = "abc"
Active states: 3/0
Processing state 3 c='a'
ADD_ACTIVE(4,0)
Processing state 4 c='a'
ADD_NEW(6,0)
Next character: rest of subject = "bc"
Active states: 6/0
Processing state 6 c='b'
ADD_NEW(8,0)
Next character: rest of subject = "c"
Active states: 8/0
Processing state 8 c='c'
ADD_NEW(10,0)
Next character: rest of subject = ""
Active states: 10/0
Processing state 10 c=EOL
End of internal_dfa_exec 1: returning -12
---------------------

Partial match: abc
def\R

---------------------
Call to internal_dfa_exec f=1
End state = 16
Next character: rest of subject = "def"
Active states: 10/0
Processing state 10 c='d'
ADD_NEW(12,0)
Next character: rest of subject = "ef"
Active states: 12/0
Processing state 12 c='e'
ADD_NEW(14,0)
Next character: rest of subject = "f"
Active states: 14/0
Processing state 14 c='f'
ADD_NEW(16,0)
Next character: rest of subject = ""
Active states: 16/0
Processing state 16 c=EOL
Set matched string = "def"
End of internal_dfa_exec 1: returning 1
---------------------

0: def

What can you make of this?

Fang

> ------- You are receiving this mail because: -------
> You reported the bug.
>
> http://bugs.exim.org/show_bug.cgi?id=1222
>
>
>
>
> --- Comment #5 from Philip Hazel <ph10@???> 2012-03-31 12:51:31 ---
> I am running gcc 4.5.3 on an x86 box, and needless to say, the tests all pass
> with all values of -O. I've been eyeballing the code in pcre_dfa_exec.c, and I
> can't see anything that might be dodgy. However, there are some debugging
> statements in there. Please could you do the following:
>
> 1. Add #define PCRE_DEBUG somewhere near the top of pcre_dfa_exec.c and then
> recompile with options that will cause test failure.
>
> 2. Run the command ./pcretest -dfa testfile where testfile (use any file
> name you like) contains just these lines:
>
> /^abcdef/
> abc\P
> def\R
>
> You should see debugging output on stderr. Please send it to me direct, or post
> it here - I don't think it will be very large. Don't try to run the full tests
> because there will be mountains of output. Thanks.
>
>
>



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