MINOR: debug: call backtrace() once upon startup
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Mar 2020 05:01:40 +0000 (06:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2020 15:09:20 +0000 (17:09 +0200)
commit5ea6f15e8469d83998a39f28070de47cb8a99c3a
treefc76298b0b5d46bcbaf839f016252008f95c5d21
parentaba643ac0e250d5af758ea9f27a8b90e7b3596fc
MINOR: debug: call backtrace() once upon startup

Calling backtrace() will access libgcc at runtime. We don't want to do
it after the chroot, so let's perform a first call to have it ready in
memory for later use.

(cherry picked from commit 0214b45a61cd7cfd59d729b23f497a687192cde6)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/debug.c