[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 06:11:00 PDT 2012


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


Dmitry Olshansky <dmitry.olsh at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dmitry.olsh at gmail.com


--- Comment #5 from Dmitry Olshansky <dmitry.olsh at gmail.com> 2012-06-06 06:13:01 PDT ---
(In reply to comment #4)
> Dmitry Olshansky recommended I submit this as a bug.
> 

Yup, case I'm the only one to fix it, at least in near future ;)

> 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

Thanks, I'm on it. We'd better get fixed it in 2.060.

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