On Sat, Apr 20, 2013 at 11:48:12AM -0700, Bryan Talbot wrote:
> ok, so the globals were position dependent.  I did have bind-process in the
> stats listen section but started stripping entries from the configuration
> to make the segfault reproduce with a minimal config.
> 
> So, without the patch
> 
> global
>   nbproc 2
>   stats  socket /var/lib/haproxy/stats user haproxy group haproxy mode 0660
> level admin
>   stats  bind-process 1
> 
> listen stats
>   bind-process 1
>   mode  http
>   bind  :8000
>   stats enable
>   stats admin if TRUE
>   stats uri       /
> 
> works but if the order of the global "stats socket" and "stats
> bind-process" are switched, it segfaults
> 
> global
>   nbproc 2
>   stats  bind-process 1
>   stats  socket /var/lib/haproxy/stats user haproxy group haproxy mode 0660
> level admin
> 
> listen stats
>   bind-process 1
>   mode  http
>   bind  :8000
>   stats enable
>   stats admin if TRUE
>   stats uri       /
> 
> 
> The patch fixes the segfault for me.

That was exactly the problem, because "stats bind-process 1" used to
dereference the "global" stats frontend which was not created yet when
the line was parsed.

Thanks for confirming anyway :-)

Best regards,
Willy


Reply via email to