Menu

#60 FastMM 4.991 crashes on OS X

open
nobody
None
5
2012-09-10
2012-09-10
No

FastMM 4.991 crashes on OS X when using the System.RegularExpressions unit that ships with Delphi XE 2.
To reproduce build the attached sample project and run it on OS X. It is basically this routine:

procedure Run;
var
A: TArray<String>;
S: String;
begin
WriteLn('Begin test...');
A := TRegEx.Split('a|b', '|');
for S in A do
WriteLn(S);
WriteLn('End test.');
end;

It runs fine with FastMM 4.98 (on OS X), but with version 4.991 it crashes in the TRegEx.Split method. It seems it crashes on the __pcre_free call in the pcre_dispose routine in the System.RegularExpressionsAPI unit.

Discussion

  • Erik van Bilsen

    Erik van Bilsen - 2012-09-10
     
  • Pierre le Riche

    Pierre le Riche - 2012-09-11

    Hi Erik,

    This is a known bug:

    Report No: 106838 Status: Closed
    [OSX] RegularExpressions crashes when using FastMM4
    http://qc.embarcadero.com/wc/qcmain.aspx?d=106838

    It was fixed in XE3.

    Best regards,
    Pierre

     
  • Erik van Bilsen

    Erik van Bilsen - 2012-09-11

    Hi Pierre,

    Thanks! Sorry to waste your time on this.

    Erik

     

Log in to post a comment.

MongoDB Logo MongoDB