On Thu, Mar 28, 2019 at 11:06:08AM +0100, William Lallemand wrote: > On Wed, Mar 27, 2019 at 10:23:44PM +0300, ?????? ????????? wrote: > > Hi! Thank you very much, I'll test your patch and will write back tomorrow. > > > > Willy made me realize that my patch was wrong, so here another one. > > I still cannot reproduce your problem at all, do you reproduce easily? > > The only case we can imagine, is something forking from the master which is > not > a worker, maybe a fork in a lua script, or in a openssl engine.
FWIW I managed to reproduce it by LD_PRELOADing a "fork(sleep(10))" and I confirm that your patch fixes it. I've backported it to 1.9. I suspect such a fork() or clone() might possibly happen in a library linked with haproxy. It could for example be an openssl engine made to collect entropy on the system by running commands. This is just an example of course but now we're safe against this. Thanks, Willy

