Hi Cyril,
2016-05-26 19:12 GMT+02:00 Cyril Bonté <cyril.bo...@free.fr>: > Hi again, > > Le 26/05/2016 11:45, Cyril Bonté a écrit : > >> Hi Olivier, >> >> De: "Olivier Doucet" <webmas...@ajeux.com> >>> À: "HAProxy" <haproxy@formilux.org> >>> Envoyé: Jeudi 26 Mai 2016 11:25:31 >>> Objet: "show servers state" wrong since HAProxy 1.6.5 >>> >>> >>> Hello, >>> Starting with HAProxy 1.6.5, I have troubles with "show servers >>> state" that returns me wrong data (backend servers are mixed up). >>> >>> I have nbproc > 1 and I bind one socket to each core. >>> >>> I narrowed it to a very simple config file to reproduce the issue : >>> https://gist.github.com/odoucet/f59a23c29c8fb21fe58d2ec9dd53a685 >>> >>> As you can see, backends are mixed up when interrogating socket #3. >>> >>> I tested the exact same config with version 1.6.3 and output is OK, >>> so this is definitely a bug introduced in latest version. >>> >> >> Thanks for the report. >> Unfortunately, it's possible I introduced a regression with this commit : >> >> http://www.haproxy.org/git?p=haproxy.git;a=commit;h=76a99784f4ced2529e35469ccaa8e803ca397e86 >> >> Without looking at the code, I think I know where. >> I'll work on this tonight, after work. >> > > As I thought after looking at the code, there was an initialization code > left before the "bind_proc" check. > > Can you try this small patch to confirm it will work with all the > configurations you may think of ? > > I'm not fond of the code structure, so it's possible I won't provide the > patch as is for the merge request. Do not know about the style of your patch, but it works :) Tested two different config involving nbproc > 1 and all seems OK. Olivier