------- 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 #14 from David Fang <fang@???> 2012-04-16 01:55:43 ---
With my -g -O1 (buggy) build and your debug patch, I get:
% ./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
workspace[0]=0
workspace[0]=1
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)
workspace[0]=1
workspace[0]=0
Next character: rest of subject = "bc"
Active states: 6/0
Processing state 6 c='b'
ADD_NEW(8,0)
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "c"
Active states: 8/0
Processing state 8 c='c'
ADD_NEW(10,0)
workspace[0]=1
workspace[0]=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
Restarting: workspace[0,1]=0,1
active=10 new=8
End state = 16
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "def"
Active states: 10/0
Processing state 10 c='d'
ADD_NEW(12,0)
workspace[0]=1
workspace[0]=0
Next character: rest of subject = "ef"
Active states: 12/0
Processing state 12 c='e'
ADD_NEW(14,0)
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "f"
Active states: 14/0
Processing state 14 c='f'
ADD_NEW(16,0)
workspace[0]=1
workspace[0]=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
% ./pcretest -dfa -s 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
workspace[0]=0
workspace[0]=1
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)
workspace[0]=1
workspace[0]=0
Next character: rest of subject = "bc"
Active states: 6/0
Processing state 6 c='b'
ADD_NEW(8,0)
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "c"
Active states: 8/0
Processing state 8 c='c'
ADD_NEW(10,0)
workspace[0]=1
workspace[0]=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
Restarting: workspace[0,1]=0,1
active=10 new=8
End state = 16
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "def"
Active states: 10/0
Processing state 10 c='d'
ADD_NEW(12,0)
workspace[0]=1
workspace[0]=0
Next character: rest of subject = "ef"
Active states: 12/0
Processing state 12 c='e'
ADD_NEW(14,0)
workspace[0]=0
workspace[0]=1
Next character: rest of subject = "f"
Active states: 14/0
Processing state 14 c='f'
ADD_NEW(16,0)
workspace[0]=1
workspace[0]=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
--
Configure bugmail:
http://bugs.exim.org/userprefs.cgi?tab=email