Home Dashboard Directory Help
Search

Long pattern string results in race condition on x64 system but not x86 system. by Tyler Jensen


Status: 

Closed
 as Fixed Help for as Fixed


3
0
Sign in
to vote
Type: Bug
ID: 96339
Opened: 6/5/2006 8:25:02 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

A long pattern string in a Regex constructor works fine on my x86 Windows XP development machine but results in a race condition that eats RAM very fast until an "out of memory" condition occurs an the process is killed on the x64 Windows Server 2003 machine. In steps below, I will cut and paste the code which resulted in the condition--the input exceeds 2000 characters so I will remove some of the lines that concatenate the pattern string but one can easily add additional lines to achieve the result that I experienced. To resolve it or work around it, I simply split the Regex into 19 Regex objects and that resolved the problem.
Details
Sign in to post a comment.
Posted by Tyler Jensen on 9/28/2006 at 4:41 PM
Nice to see it's fixed. When or where will it show up?
Sign in to post a workaround.