Hi Dmitry, On Fri, Mar 15, 2013 at 03:25:10PM +0400, Dmitry Sivachenko wrote: > Hello! > > I am using haproxy-1.5-dev17. I use hostnames in my config file rather than > IPs. > If DNS is not working, haproxy will dump core on start or config check. > > How to repeat: > Put some fake stuff in /etc/resolv.conf so resolver does not work. > > Run haproxy -c -f </path/to/haproxy.conf>: > > /tmp# ./haproxy -c -f ./haproxy.conf > Segmentation fault (core dumped)
This is a known issue with GETADDRINFO which was fixed in a recent snapshot : commit 58ea039115f3faaf29529e0df97f4562436fdd09 Author: Sean Carey <[email protected]> Date: Fri Feb 15 23:39:18 2013 +0100 BUG/MEDIUM: config: fix parser crash with bad bind or server address If an address is improperly formated on a bind or server address and haproxy is built for using getaddrinfo, then a crash may occur upon the call to freeaddrinfo(). Thanks to Jon Meredith for helping me patch this for SmartOS, I am not a C/GDB wizard. I think you'd better update to latest snapshot until we emit dev18. Best regards, Willy

