haproxy/include
Willy Tarreau 0950778b3a MINOR: debug: add a function to dump a stuck thread
There's currently no way to just emit a warning informing that a thread
is stuck without crashing. This is a problem because sometimes users
would benefit from this info to clean up their configuration (e.g. abuse
of map_regm, lua-load etc).

This commit adds a new function ha_stuck_warning() that will emit a
warning indicating that the designated thread has been stuck for XX
milliseconds, with a number of streams blocked, and will make that
thread dump its own state. The warning will then be sent to stderr,
along with some reminders about the impacts of such situations to
encourage users to fix their configuration.

In order not to disrupt operations, a local 4kB buffer is allocated
in the stack. This should be quite sufficient.

For now the function is not used.
2024-11-06 18:35:42 +01:00
..
haproxy MINOR: debug: add a function to dump a stuck thread 2024-11-06 18:35:42 +01:00
import BUILD: import/mt_list: support building with TCC 2024-11-05 15:43:17 +01:00
make BUILD: makefile: support USE_xxx=0 as well 2024-04-11 11:06:19 +02:00