Hi, On Tue, May 30, 2017 at 06:14:48PM -0700, Shelley Shostak wrote: > BUG: > > Extra spaces inserted into the haproxy.cfg file cause haproxy reload with > saved state to seg fault haproxy. > > WORKAROUND: > > Remove the existing state file OR remove save state from config. > > REPRODUCE: > > - Enable save state across reloads > - Reload and save state file > - Insert extra space before "weight". > - Attempt to reload or validate the new config and haproxy will segv.
There's certainly something else but I have no idea what. The config is tokenized around spaces so the parser doesn't even know that there are spaces. This makes me think that the issue could in fact be related to the position of certain words on the "server" lines, possibly while comparing with the state file, but even then it looks very strange. Could you provide a minimal configuration which exhibits the issue for you ? I've run some tests here but failed to provoke it, so very likely some other parts of your configuration have an impact to trigger this. Thanks, Willy

