Hi Christopher,
Op 14-1-2019 om 11:17 schreef Christopher Faulet:
Le 12/01/2019 à 23:23, PiBa-NL a écrit :
Hi List,
I've configured haproxy with htx and when i try to filter the stats
webpage.
Sending this request: "GET /?;csv;scope=b1" to '2.0-dev0-762475e
2019/01/10' it will crash with the trace below.
1.9.0 and 1.9.1 are also affected.
Can someone take a look? Thanks in advance.
A regtest is attached that reproduces the behavior, and which i think
could be included into the haproxy repository.
Pieter,
Here is the patch that should fix this issue. This was "just" an
oversight when the stats applet has been adapted to support the HTX.
If it's ok for you, I'll also merge your regtest.
Thanks
It seems the patch did not change/fix the crash.? Below looks pretty
much the same as previously. Did i fail to apply the patch properly.? It
seems to have 'applied' properly checking a few lines of the touched
code manually. As for the regtest, yes please merge that if its okay
as-is, perhaps after the fix is also ready :).
Regards,
PiBa-NL (Pieter)
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000005658e7 in strnistr (str1=0x802631048 "fe1", len_str1=3,
str2=0x271dfcc <error: Cannot access memory at address 0x271dfcc>,
len_str2=3) at src/standard.c:3657
3657 while (toupper(*start) != toupper(*str2)) {
(gdb) bt full
#0 0x00000000005658e7 in strnistr (str1=0x802631048 "fe1", len_str1=3,
str2=0x271dfcc <error: Cannot access memory at address 0x271dfcc>,
len_str2=3) at src/standard.c:3657
pptr = 0x271dfcc <error: Cannot access memory at address 0x271dfcc>
sptr = 0x6995d3 "text/plain"
start = 0x802631048 "fe1"
slen = 3
plen = 3
tmp1 = 0
tmp2 = 4294958728
#1 0x00000000004d09ff in stats_dump_proxy_to_buffer (si=0x8026416d8,
htx=0x8027c8e40, px=0x8026b3c00, uri=0x802638000) at src/stats.c:2087
scope_ptr = 0x271dfcc <error: Cannot access memory at address
0x271dfcc>
appctx = 0x802678380
s = 0x802641400
rep = 0x802641470
sv = 0x8027c8e40
svs = 0x343ffffe1e0
l = 0x4d3a8f <htx_used_space+31>
flags = 0
#2 0x00000000004d49e9 in stats_dump_stat_to_buffer (si=0x8026416d8,
htx=0x8027c8e40, uri=0x802638000) at src/stats.c:2664