I have a custom assert()
-like macro that calls abort()
on failure. When using AddressSanitizer, I would prefer to have the usual nice stack trace printed on assertion failures. How can this be achieved?
- Is it possible to get AddressSanitizer to print diagnostic information when
abort()
is called? - Is there an AddressSanitizer function I can call to manually print the stack trace?
- Does AddressSanitizer provide a function I could use instead of
abort()
here? - I am interested in a solution both for Clang and GCC.