]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: debug: Don't dump the lua stack if it is not initialized
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jul 2020 17:08:05 +0000 (19:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Jul 2020 07:37:18 +0000 (09:37 +0200)
commit471425f51d71d1214abeee40439a51a2a3217102
tree4dd9ea7a4df12e97bbc02ad48a2506e28f96b68b
parent749f74c6223e5c968b39ad8b0723966a080cd15b
BUG/MINOR: debug: Don't dump the lua stack if it is not initialized

When the watchdog is fired because of the lua, the stack of the corresponding
lua context is dumped. But we must be sure the lua context is fully initialized
to do so. If we are blocked on the global lua lock, during the lua context
initialization, the lua stask may be NULL.

This patch should fix the issue #776. It must be backported as far as 2.0.
src/debug.c