[fpc-pascal] Segmentation fault with cthreads on FreeBSD
Marco van de Voort
fpc at pascalprogramming.org
Mon Jun 8 11:29:59 CEST 2020
Op 2020-06-08 om 10:14 schreef Zamrony P. Juhara via fpc-pascal:
> Following program
>
> program test;
> {$IFDEF UNIX}
> uses cthreads;
> {$ENDIF}
> begin
> writeln('test');
> end.
>
> Compile with FPC 3.0.4 on FreeBSD 12. When run test program, it causes
> segmentation fault.
>
> What is wrong? Without cthreads unit, it run fine.
>
Possibly a linker issue. See if you can change the linker to ld.bfd
More information about the fpc-pascal
mailing list