Problem with GC and address/leak sanitizer

Johan j at j.nl
Sun Feb 16 20:18:18 UTC 2025


On Saturday, 15 February 2025 at 23:31:42 UTC, Luís Marques wrote:
>
> Tested with LDC 1.40.0 on x86_64 Linux:
>
>
> ```
> $ ldc2 app.d -g --frame-pointer=all && ./app # OK
> $ ldc2 app.d -fsanitize=address -g --frame-pointer=all && ./app 
> # BUG
> check=-337690816
> $
> ```

Can you run with `ASAN_OPTIONS=verbosity=1` and make sure that 
FakeStack is not enabled?  (`detect_stack_use_after_return=false`)

(And also test with a little bit older LDC, with different LLVM 
version, to see if it is a new issue or not)

-Johan


More information about the Digitalmars-d mailing list