]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream/debug: make a stream dump and crash function
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Apr 2019 17:08:48 +0000 (19:08 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Apr 2019 11:15:56 +0000 (13:15 +0200)
commit71c07ac65a7cf43cb4e63094512651d15940aef6
tree7f47cd746e04fbd5a5f1d1d124ff38856d6cb298
parent5e6a5b3a6e65bb49ee3220070f1754e9b743c600
MINOR: stream/debug: make a stream dump and crash function

During 1.9 development (and even a bit after) we've started to face a
significant number of situations where streams were abusively spinning
due to an uncaught error flag or complex conditions that couldn't be
correctly identified. Sometimes streams wake appctx up and conversely
as well. More importantly when this happens the only fix is to restart.

This patch adds a new function to report a serious error, some relevant
info and to crash the process using abort() so that a core dump is
available. The purpose will be for this function to be called in various
situations where the process is unfixable. It will help detect these
issues much earlier during development and may even help fixing test
platforms which are able to automatically restart when such a condition
happens, though this is not the primary purpose.

This patch only provides the function and doesn't use it yet.
include/proto/stream.h
src/stream.c