Willy, I did what you have suggested.

 

 

# Ive used the following command to compile:
holb001:~/haproxy-1.3.22 # make TARGET=linux26


Then, I copied haproxy to /usr/sbin:
holb001:~/haproxy-1.3.22 # cp haproxy /usr/sbin/


holb001:~/haproxy-1.3.22 # haproxy -vv
HA-Proxy version 1.3.22 2009/10/14
Copyright 2000-2009 Willy Tarreau <[email protected]>

Build options :
  TARGET  = linux26
  CPU     = generic
  CC      = gcc
  CFLAGS  = -O2 -g
  OPTIONS =

Default settings :
  maxconn = 2000, maxpollevents = 200

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.


holb001:~ # uname -a
Linux holb001 2.6.16.60-0.37_f594963d-default #1 SMP Mon Mar 23 13:39:48 UTC 
2009 s390x s390x s390x GNU/Linux


# Ive started haproxy and did a test. The result is as follow:
holb001:~/haproxy-1.3.22 # haproxy -f /etc/haproxy/haproxy.cfg -db
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.
00000000:uat.accept(0005)=0007 from [192.168.0.10:4047]
00000001:uat.accept(0005)=0009 from [192.168.0.10:4048]
00000002:uat.accept(0005)=000b from [192.168.0.10:4049]
00000003:uat.accept(0005)=000d from [192.168.0.10:4050]
00000004:uat.accept(0005)=000f from [192.168.0.10:4051]
00000001:uat.srvcls[0009:000a]
00000001:uat.clicls[0009:000a]
00000001:uat.closed[0009:000a]
00000000:uat.srvcls[0007:0008]
00000000:uat.clicls[0007:0008]
00000000:uat.closed[0007:0008]
Segmentation fault



Remeber that this server is a zLinux, I mean, it runs under a mainframe.

Suggestions?

_______________________
Alexandre


 
> Date: Fri, 16 Oct 2009 22:29:18 +0200
> From: [email protected]
> To: [email protected]
> CC: [email protected]
> Subject: Re: HAPROXY in zLinux is presenting Segmentation fault
> 
> Hello Alexandre,
> 
> On Fri, Oct 16, 2009 at 01:22:03PM +0000, alexandre oliveira wrote:
> > 
> > Hello. I've downloaded, compiled and installed haproxy version 1.3.20 in 
> > one SUSE Linux Enterprise Server 10 (s390x), VERSION = 10, PATCHLEVEL = 2.
> > 
> > 
> > 
> > I start the haproxy with command line: /usr/sbin/haproxy -f 
> > /etc/haproxy/haproxy.cfg -d
> > 
> > and I make some tests with HTTP and HTTPS. At first it works fine, but few 
> > moments later I get the message: Segmentation fault
> 
> This should not happen at all !
> 
> Can you send the output of "haproxy -vv" and "uname -a" ? Also,
> could you check if it still happens when you use "-db" instead
> of "-d" ? It will disable debugging output but still stay in
> foreground. I have a feeling that this may be specific to the
> debugging output, which is rarely used.
> 
> > I dont know what to do to solve this trouble. Any tip?
> 
> Your config is so much simple that I'd bet a debugging issue
> first. I have a few minor comments about your config below.
> Also, please run a test on 1.3.22 which is the most recent
> stable release.
> 
> > Follow is the haproxy.cfg file:
> > 
> > ##########################################################
> > 
> > global
> > log 127.0.0.1 local0
> > log 127.0.0.1 local1 notice
> > maxconn 4096
> > debug
> > 
> > 
> > defaults
> > log global
> > mode tcp
> > option httplog
> > option httpclose
> 
> "option httplog" and "option httpclose" will not be used in TCP
> mode, you can remove them.
> 
> > option dontlognull
> > retries 1
> > contimeout 500
> > clitimeout 5000
> > srvtimeout 5000
> > 
> > 
> > 
> > listen uat 0.0.0.0:80,0.0.0.0:443
> > balance source
> > option ssl-hello-chk
> > option forwardfor
> 
> "option forwardfor" above will be ignored since you're in TCP, so
> you can safely remove it.
> 
> > server server_first 192.168.0.1 weight 1 maxconn 5000 check
> > server server_seco 192.168.0.2 weight 1 maxconn 5000 check
> 
> Please keep me informed !
> 
> Willy
> 
> 
                                          
_________________________________________________________________
New Windows 7: Find the right PC for you. Learn more.
http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=wl&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:102009

Reply via email to