MINOR: debug: print gdb hints when crashing
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Jun 2024 12:04:46 +0000 (14:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 6 Nov 2024 18:04:38 +0000 (19:04 +0100)
commit96847724af5c5e3e3d1f3190ac57e69ec95572cc
tree5c196092aa10f857b99757d25a63d7fd5f110152
parent2913ab11dcaac187e75e5462770ca01728d9f825
MINOR: debug: print gdb hints when crashing

To make bug reporting easier for users, when crashing, let's suggest
what to do. Typically when a BUG_ON() matches, only the current thread
is useful the vast majority of the time, while when the watchdog
triggers, all threads are interesting.

The messages are printed at the end after the dump. We may adjust these
with wiki links in the future is more detailed instructions are relevant.

(cherry picked from commit 8f204fa8aeadef3faea4471ba9cfd93d9d168960)
Signed-off-by: Willy Tarreau <w@1wt.eu>
include/haproxy/bug.h
src/debug.c