Re: [PATCH] Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-26 Thread Thierry FOURNIER
On Sat, 26 May 2018 19:47:54 +0200 PiBa-NL wrote: > Hi Thierry, > > Op 25-5-2018 om 15:40 schreef Thierry FOURNIER: > > On Fri, 18 May 2018 22:17:00 +0200 > > PiBa-NL wrote: > > > >> Hi Thierry, > >> > >> Op 18-5-2018 om 20:00 schreef Thierry

Re: [PATCH] Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-26 Thread Thierry Fournier
> On 26 May 2018, at 19:47, PiBa-NL wrote: > > Hi Thierry, > > Op 25-5-2018 om 15:40 schreef Thierry FOURNIER: >> On Fri, 18 May 2018 22:17:00 +0200 >> PiBa-NL wrote: >> >>> Hi Thierry, >>> >>> Op 18-5-2018 om 20:00 schreef Thierry FOURNIER:

Re: [PATCH] Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-26 Thread PiBa-NL
Hi Thierry, Op 25-5-2018 om 15:40 schreef Thierry FOURNIER: On Fri, 18 May 2018 22:17:00 +0200 PiBa-NL wrote: Hi Thierry, Op 18-5-2018 om 20:00 schreef Thierry FOURNIER: Hi Pieter, Could you test the attached patch ? It seems to fix the problem, but I have some

[PATCH] Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-25 Thread Thierry FOURNIER
On Fri, 18 May 2018 22:17:00 +0200 PiBa-NL wrote: > Hi Thierry, > > Op 18-5-2018 om 20:00 schreef Thierry FOURNIER: > > Hi Pieter, > > > > Could you test the attached patch ? It seems to fix the problem, but I > > have some doubts about the reliability of the patch. > > >

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-18 Thread PiBa-NL
Hi Thierry, Op 18-5-2018 om 20:00 schreef Thierry FOURNIER: Hi Pieter, Could you test the attached patch ? It seems to fix the problem, but I have some doubts about the reliability of the patch. Thierry The crash seems 'fixed' indeed.. but the lua scipt below now takes 5seconds instead of

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-18 Thread Thierry FOURNIER
Hi Pieter, Could you test the attached patch ? It seems to fix the problem, but I have some doubts about the reliability of the patch. Thierry On Fri, 11 May 2018 20:13:25 +0200 PiBa-NL wrote: > Hi Thierry, > > Okay found a simple reproduction with tcploop with a 6

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-11 Thread PiBa-NL
Hi Thierry, Okay found a simple reproduction with tcploop with a 6 second delay in there and a short sleep before calling kqueue. ./tcploop 81 L W N20 A R S:"response1\r\n" R P6000 S:"response2\r\n" R [ F K ] gettimeofday(_poll, NULL); +    usleep(100); status =

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-09 Thread PiBa-NL
Hi Thierry, Op 9-5-2018 om 18:30 schreef Thierry Fournier: It seems a dead lock, but you observe a loop. Effectively it is a deadlock, it keeps looping over these few lines of code below from xref.h

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-09 Thread Thierry Fournier
> On 9 May 2018, at 18:30, Thierry Fournier > wrote: > > > >> On 8 May 2018, at 00:33, PiBa-NL wrote: >> >> Hi List, Thierry, >> >> Actually this is not limited to restarts, and also happens with 1.9dev. It >> now happens while

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-09 Thread Thierry Fournier
> On 8 May 2018, at 00:33, PiBa-NL wrote: > > Hi List, Thierry, > > Actually this is not limited to restarts, and also happens with 1.9dev. It > now happens while haproxy was running for a while and no restart was > attempted while running/debugging in my NetBeans

Re: 1.8.8 & 1.9dev, lua, xref_get_peer_and_lock hang / 100% cpu usage after restarting haproxy a few times

2018-05-07 Thread PiBa-NL
Hi List, Thierry, Actually this is not limited to restarts, and also happens with 1.9dev. It now happens while haproxy was running for a while and no restart was attempted while running/debugging in my NetBeans IDE.. Root cause imo is that hlua_socket_receive_yield and hlua_socket_release