Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread Willy Tarreau
Hi Pieter, On Fri, May 04, 2018 at 07:53:19PM +0200, PiBa-NL wrote: > Thanks for this fix, it also works for me, regarding the crash that > happened. Excellent, thanks guys, I'll merge the fix then. > As for the partial print_r() result this thread started with, (but is less > important than

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread PiBa-NL
Hi Oliver, Op 4-5-2018 om 15:54 schreef Olivier Houchard: Hi Pieter, Thanks a lot for the detailed analysis. That seems spot on. We decided to do something a bit different than your proposed fix. Does the attached patch fix your problems ? Thanks again ! Olivier Thanks for this fix, it

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-04 Thread Olivier Houchard
Hi Pieter, On Thu, May 03, 2018 at 11:48:56PM +0200, PiBa-NL wrote: > Hi Thierry, > > Op 3-5-2018 om 8:59 schreef Thierry Fournier: > > he bug. I even installed a FreeBSD:-) I add Willy in > > copy, maybe he will reproduce it. > > > > Thierry > > The 'trick' is probably sending as few

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-03 Thread PiBa-NL
Hi Thierry, Op 3-5-2018 om 8:59 schreef Thierry Fournier: he bug. I even installed a FreeBSD:-) I add Willy in copy, maybe he will reproduce it. Thierry The 'trick' is probably sending as few requests as possible through a 'high latency' vpn (17ms for a ping from client to haproxy

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-05-03 Thread Thierry Fournier
Hi, I can’t reproduce the bug. I even installed a FreeBSD :-) I add Willy in copy, maybe he will reproduce it. Thierry > On 28 Apr 2018, at 01:36, PiBa-NL wrote: > > Hi Thierry, > > Op 27-4-2018 om 1:54 schreef PiBa-NL: >> Hi Thierry, >> >> Op 26-4-2018 om 12:25

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-27 Thread PiBa-NL
Hi Thierry, Op 27-4-2018 om 1:54 schreef PiBa-NL: Hi Thierry, Op 26-4-2018 om 12:25 schreef thierry.fourn...@arpalert.org: Your trace shows a corrupted tree. Maybe it is due to the freebsd architecture and the corruption is no reproductible on Linux ? I do not have freebsd for testing.

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-26 Thread PiBa-NL
Hi Thierry, Op 26-4-2018 om 12:25 schreef thierry.fourn...@arpalert.org: Your trace shows a corrupted tree. Maybe it is due to the freebsd architecture and the corruption is no reproductible on Linux ? I do not have freebsd for testing. Regards, Thierry My 'best' reproduction scenario

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-26 Thread thierry . fournier
On Wed, 25 Apr 2018 22:13:46 +0200 PiBa-NL wrote: > Hi Thierry, > > Op 25-4-2018 om 11:19 schreef Thierry Fournier: > > I extracted the part which dumps the ‘core.get_info()’, and I can’t > > reproduce > > the segfault. I attach the extracted code. I use le lastest

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-25 Thread PiBa-NL
Hi Thierry, Op 25-4-2018 om 11:19 schreef Thierry Fournier: I extracted the part which dumps the ‘core.get_info()’, and I can’t reproduce the segfault. I attach the extracted code. I use le lastest master branch. I'm testing on master branch as well. I started over with the extracted

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-25 Thread Thierry Fournier
Hi, > On 24 Apr 2018, at 21:46, PiBa-NL wrote: > > Hi Tim, > > Op 24-4-2018 om 14:36 schreef Tim Düsterhus: >> Hi >> >> Am 23.04.2018 um 22:36 schrieb PiBa-NL: >>> Is there a bug in my script, or is it more likely that 'something' needs >>> fixing in the lua api /

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-24 Thread PiBa-NL
Hi Tim, Op 24-4-2018 om 14:36 schreef Tim Düsterhus: Hi Am 23.04.2018 um 22:36 schrieb PiBa-NL: Is there a bug in my script, or is it more likely that 'something' needs fixing in the lua api / interaction? I poked around a bit: The cause in this case is the Content-Length header. It causes

Re: 1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-24 Thread Tim Düsterhus
Hi Am 23.04.2018 um 22:36 schrieb PiBa-NL: > Is there a bug in my script, or is it more likely that 'something' needs > fixing in the lua api / interaction? I poked around a bit: The cause in this case is the Content-Length header. It causes that haproxy does not use chunked encoding for the

1.9dev LUA shows partial results from print_r(core.get_info()) after adding headers ?

2018-04-23 Thread PiBa-NL
Hi List, Thierry, The second print_r(core.get_info()) only shows 'some' of its results and the final message never shows.. Is there some memory buffer overflow bug in there.? Possibly caused by the 'add_header' calls.. as removing those seems to fix the behaviour of the CORE2 print_r call..