Hi Matt, On Wed, Apr 14, 2010 at 01:31:37PM +0100, Matt wrote: > Running Centos 5, built from 1.4.4.tar.gz download > > I've got a rewrite rule which is causing a PH-- 502 code. So to debug I > tried it in our staging environment with debug set in global. > > [r...@localhost ]# /etc/init.d/haproxy restart > Shutting down haproxy: [FAILED] > Starting haproxy: [WARNING] 103/123417 (12110) : config : log format ignored > for proxy 'stats' since it has no log address. > [WARNING] 103/123417 (12110) : <debug> mode incompatible with <quiet> and > <daemon>. Keeping <debug> only. > Available polling systems : > sepoll : pref=400, test result OK > epoll : pref=300, test result OK > poll : pref=200, test result OK > select : pref=150, test result OK > Total: 4 (4 usable), will use sepoll. > Using sepoll() as the polling mechanism. > > Both daemon and quiet were hashed out in the config > > [r...@localhost ]# ps -ef|grep haproxy > ps -ef|grep haproxy > root 12096 2194 0 12:34 pts/2 00:00:00 /bin/sh /etc/init.d/haproxy > restart > root 12109 12096 0 12:34 pts/2 00:00:00 /bin/bash -c ulimit -S -c 0 > >/dev/null 2>&1 ; /usr/sbin/haproxy -D -f /etc/haproxy/haproxy.cfg -p > /var/run/haproxy.pid > haproxy 12110 12109 0 12:34 pts/2 00:00:00 /usr/sbin/haproxy -D -f > /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid > root 12169 25085 0 12:34 pts/0 00:00:00 grep hap > > Now when I issue the request for the rewrite : > > 00000006:xxxxxxxxxxxxx.accept(0007)=0008 from [...........:38299] > 00000006:xxxxxxxxxxxxx.clireq[0008:ffff]: POST ............ HTTP/1.1 > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: User-Agent: curl/7.19.5 > (i486-pc-linux-gnu) libcurl/7.19.5 OpenSSL/0.9.8g zlib/1.2.3.3 libidn/1.15 > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: Host: xxxxxxxxxx > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: ACCEPT: application/results+xml > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: Content-Length: 1180 > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: Content-Type: > application/x-www-form-urlencoded > 00000006:xxxxxxxxxxxxx.clihdr[0008:ffff]: Expect: 100-continue > 00000006:www.mydomain.com.srvrep[0008:0009]: > /bin/bash: line 1: 12110 Segmentation fault /usr/sbin/haproxy -D -f > /etc/haproxy/haproxy.cfg -p /var/run/haproxy.pid > [FAILED]
Hmm interesting. Could you please send me your config with the faulty rule ? I'd like to verify that it's only a debug issue and not that debug just reveals a deeper issue. Thanks! Willy

