[fpc-pascal] Crash with cthreads and snapshot ppca64 on macos 14.2.1

Adriaan van Os adriaan at adriaan.biz
Sun Feb 4 04:49:08 CET 2024


> I get a "Threading has been used before cthreads was initialized." crash for a simple program
> 
> program test;
> uses cthreads;
> begin
>   writeln( 'Hello')
> end.
> 
> on macos 14.2.1 with a fpc 3.3.1-14334-g5205ce30f4 snapshot, but the crash only occurs with mode 
> -Mmacpas (which I assumes implicitely uses some unit that causes the issue).

-Mmacpas adds macpas.pas, which uses math.pas and throught that sysutils.pas. But, looking at the 
RTL source code, I don't see anything that explains why the problem should be aarch64 (or 
aarch64-darwin) specific ....

Regards,

Adriaan van Os



More information about the fpc-pascal mailing list