]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: stream: Fix crash in stream dump if the current rule has no keyword
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Mar 2026 07:31:31 +0000 (08:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Mar 2026 07:39:49 +0000 (08:39 +0100)
commit8dae4f7c0bb8245de1676d121d0ce8f115ffa88a
treeaf466f64370930c5a2a432132735f8bf1a59e0cc
parentef2a2925855a48cecc9632371bec6e105235b73c
BUG/MINOR: stream: Fix crash in stream dump if the current rule has no keyword

The commit 9f1e9ee0e ("DEBUG: stream: Display the currently running rule in
stream dump") revealed a bug. When a stream is dumped, if it is blocked on a
rule, we must take care the rule has a keyword to display its name.

Indeed, some action parsings are inlined with the rule parser. In that case,
there is no keyword attached to the rule.

Because of this bug, crashes can be experienced when a stream is
dumped. Now, when there is no keyword, "?" is display instead.

This patch must be backported as far as 2.6.
src/stream.c