Problem with GC and address/leak sanitizer
Luís Marques
luis at luismarques.eu
Sun Feb 16 21:48:31 UTC 2025
On Sunday, 16 February 2025 at 20:18:18 UTC, Johan wrote:
> Can you run with `ASAN_OPTIONS=verbosity=1` and make sure that
> FakeStack is not enabled?
> (`detect_stack_use_after_return=false`)
The fake stack allocator is enabled. If I disable it via
`ASAN_OPTIONS=detect_stack_use_after_return=1` the problem no
longer reproduces.
According to [1], integrating Fake Stack with GC requires special
consideration. What's the status of ASan / fake stack support in
LDC? (was it supposed to work, to be disabled by default, etc.
...?)
Thanks!
[1]
https://github.com/google/sanitizers/wiki/AddressSanitizerUseAfterReturn#garbage-collection
More information about the Digitalmars-d
mailing list