segmentation fault when executing the binary produced by compiling with ldc2 on MacOS (M1)

Hicut2001 kylegaribay796 at hotmail.com
Tue Jul 15 04:30:34 UTC 2025


On Sunday, 18 May 2025 at 21:44:54 UTC, Kenneth Wolcott wrote:
> On Sunday, 18 May 2025 at 20:59:12 UTC, Richard (Rikki) Andrew 
> Cattermole wrote:
>> Try the beta, there is a known problem for OSX in older 
>> versions, that is supposed to be fixed.
>> 
>> https://github.com/ldc-developers/ldc/releases/tag/v1.41.0-beta1
>
> Works great for me now.
>
> Thanks!

I find the advice very useful! I usually use @nogc on the main 
function, proactively allocate buffer (or arena), and only turn 
on GC when really needed. It controls memory while maintaining 
performance. Has anyone tried this approach?


More information about the digitalmars-d-ldc mailing list