[Issue 8203] Use of std.regex.match() generates "not enough preallocated memory" error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jun 6 05:41:35 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8203



--- Comment #4 from phshaffer at gmail.com 2012-06-06 05:43:36 PDT ---
Dmitry Olshansky recommended I submit this as a bug.

The program is executed as : icomp2 fold.txt fnew.txt

It should search fold.txt for certain text patterns and then see if all "found"
text also appears in fnew.txt.  Fold.txt and Fnew.txt are identical so all
"found" text should appeart in Fnew.txt as well.

I added some diagnostic loops counters for troubleshooting:
writeln(cntOld,"  ",cntNew,"  ",matchOld.hit,"  ",matchNew.hit);

As the screenshot shows after several iterations, it crashes with -> 
core.exception.AssertError at C:\D\dmd2\windows\bin\..\..\src\phobos\std\regex.d(60
50): not enough preallocated memory

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list