blender/intern/guardedalloc
Campbell Barton 6b967287c9 MEM_guarded_alloc: restore execinfo.h back-trace on Linux/Apple
Recently [0] replaced back-traces from `execinfo.h` with ASAN's
`__asan_describe_address` since the linking options to hide symbols
cause the stack-traces only to include addresses (without functions).
Although using ASAN makes sense when enabled, in my tests the
stack-traces are sometimes empty. Using CMAKE_BUILD_TYPE=RelWithDebInfo
for e.g. wasn't showing a stack-trace for the leak fixed in [1].

A utility is now included to conveniently expand the addresses from
these stack traces (`tools/utils/addr2line_backtrace.py`).

Restore support for the execinfo stack-trace reporting, used when ASAN
is disabled.

[0]: 2e79ca320557073ccf00f021dca988be6f361acd
[1]: a9f0d19197e83ae6be7c1ccc71770361be16f742
2023-09-28 12:45:04 +10:00
..
cpp Cleanup: use braces around statements 2023-09-12 14:48:20 +10:00
intern MEM_guarded_alloc: restore execinfo.h back-trace on Linux/Apple 2023-09-28 12:45:04 +10:00
test/simpletest Cleanup: use braces around statements 2023-09-12 14:48:20 +10:00
tests License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
CMakeLists.txt License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
MEM_guardedalloc.h Cleanup: spelling & punctuation in comments 2023-09-14 13:25:24 +10:00