]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: lua: Increase debug information
authorThierry FOURNIER <thierry.fournier@ozon.io>
Thu, 7 Jun 2018 12:40:48 +0000 (14:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Jun 2018 16:18:33 +0000 (18:18 +0200)
commitfc044c98e43ca5373c535e1e5f00e47ce8e5acb4
treea98a569b9906275cbb1818ccfc53385453142a1b
parentb4dd15bd6fc264cfcbae9b84c0775f25987c0f78
MINOR: lua: Increase debug information

When an unrecoverable error raises, the user receive poor information
for the trouble shooting. For example:

   [ALERT] 157/143755 (21212) : Lua function 'hello-world': runtime error: memory allocation error: block too big.

Unfortunately, the memory allocation error can be throwed by many
function, and we have no informatio to reach the original cause.
This patch add the list of function called from the entry point to
the function in error, like this:

   [ALERT] 157/143755 (21212) : Lua function 'hello-world': runtime error: memory allocation error: block too big from [C] method 'req_get_headers', bug35.lua:2 global 'ee', bug35.lua:6 global 'ff', bug35.lua:10 C function line 9.
src/hlua.c