Hi all,

On Mon, Sep 22, 2014 at 10:04:35PM +0200, Cyril Bonté wrote:
> Hi all,
> 
> Le 22/09/2014 19:43, Lukas Tribus a écrit :
> >Hi Seri,
> >
> >
> >>This configuration works well in 1.5.4 release version and b53934e.
> >>but, in 5436afc commit, haproxy crashes frequently.
> >
> >Thanks for this, this will help pinpointing the issues, however, I am still
> >unable to reproduce the crash.
> >
> >Can you send a more complete configuration to reproduce the crash,
> >including default and global sections?
> 
> I could reproduce segfaults with the latest 1.5 snapshot.
> It only happens with a dynamic "use_backend".
>
> The issue happens because during the configuration parsing, a dynamic 
> use_backend can't resolve the backend and leaves the union structure as 
> a string (which is also freed), not a pointer to a proxy.
> 
> Before the commits pointed by Seri, bind_proc were not updated when a 
> dynamic rule is recognized.
> Maybe a quick workaround could be the patch attached, but it means that 
> we still can't propagate processes for proxies used by dynamic rules.

Sorry, I missed this thread. I got a similar report privately yesterday
and fixed it slightly differently : we don't run propagate_processes()
if any error was encountered, since there is no way to know whether *all*
backends are properly resolved in this case. For example, in the use case
that was reported to me, the problem happened with default_backend, not
with use_backend.

Regards,
Willy


Reply via email to