FastMM 4.991 crashes on OS X
Brought to you by:
pierre_le_riche
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.
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
Hi Pierre,
Thanks! Sorry to waste your time on this.
Erik