Home Dashboard Directory Help

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


 as Fixed Help for as Fixed

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


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.
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.