# Segmentation Fault on raspberry pi

**URL:** <https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850>\
**Category:** Help!\
**Created:** [May 23, 2019, 5:22am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850 "2019-05-23T05:22:37Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![jszjsmith](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jszjsmith](https://discourse.haproxy.org/u/jszjsmith)\
**Post date:** [May 23, 2019, 5:22am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/1 "2019-05-23T05:22:37Z")

</div>

Hello,

I have been running HA-Proxy version 1.7.5-2 2017/05/27 from the raspbian repo for several months without issue.

I’d like to now run a more up to date version on Centos for ARM so I’ve compiled both 1.9.0 and 2.0-dev4 on a fresh raspberry pi with CentOS 7 installed. However for both versions i get an immediate segmentation fault.

I dont really know what I’m doing with gdb but I tried running it with gdb and this is the output below; can anyone give me any insights as to what may be happening here?

TIA.  
John.

```auto
# gdb /usr/local/sbin/haproxy
GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv7hl-redhat-linux-gnueabi".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/sbin/haproxy...done.
(gdb) set pagination 0
(gdb) run -f /etc/haproxy/haproxy.cfg -d
Starting program: /usr/local/sbin/haproxy -f /etc/haproxy/haproxy.cfg -d
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
warning: Probes-based dynamic linker interface failed.
Reverting to original interface.

Cannot access memory at address 0xc2400000
Missing separate debuginfos, use: debuginfo-install bzip2-libs-1.0.6-13.el7.armv7hl elfutils-libelf-0.172-2.el7.armv7hl elfutils-libs-0.172-2.el7.armv7hl glibc-2.17-260.el7_6.5.armv7hl keyutils-libs-1.5.8-3.el7.armv7hl krb5-libs-1.15.1-37.el7_6.armv7hl libattr-2.4.46-13.el7.armv7hl libcap-2.22-9.el7.armv7hl libcom_err-1.42.9-13.el7.armv7hl libgcc-4.8.5-36.el7_6.2.armv7hl libgcrypt-1.5.3-14.el7.armv7hl libgpg-error-1.12-3.el7.armv7hl libselinux-2.5-14.1.el7.armv7hl lz4-1.7.5-2.el7.armv7hl nss-softokn-freebl-3.36.0-5.el7_5.armv7hl openssl-libs-1.0.2k-16.el7_6.1.armv7hl pcre-8.32-17.el7.armv7hl systemd-libs-219-62.el7_6.6.armv7hl xz-libs-5.2.2-1.el7.armv7hl zlib-1.2.7-18.el7.armv7hl
(gdb) bt
#0 0x76fe46f4 in dl_open_worker () from /lib/ld-linux-armhf.so.3
#1 0x76fdf970 in _dl_catch_error () from /lib/ld-linux-armhf.so.3
#2 0x76fe3c68 in _dl_open () from /lib/ld-linux-armhf.so.3
#3 0x76b6c9c8 in do_dlopen () from /lib/libc.so.6
#4 0x76fdf970 in _dl_catch_error () from /lib/ld-linux-armhf.so.3
#5 0x76b6cad4 in __libc_dlopen_mode () from /lib/libc.so.6
#6 0x76b401a4 in nss_load_library () from /lib/libc.so.6
#7 0x76b40d38 in __nss_lookup_function () from /lib/libc.so.6
#8 0x76b40e90 in __nss_lookup () from /lib/libc.so.6
#9 0x76aee4dc in getpwnam_r@@GLIBC_2.4 () from /lib/libc.so.6
#10 0x76aedc14 in getpwnam () from /lib/libc.so.6
#11 0x00146d78 in cfg_parse_global (file=0x2c7178 "/etc/haproxy/haproxy.cfg", linenum=7, args=0x7efff02c, kwm=<optimized out>) at src/cfgparse-global.c:475
#12 0x000dd7f4 in readcfgfile (file=0x2a9528 "/etc/haproxy/haproxy.cfg") at src/cfgparse.c:2147
#13 0x000d6e64 in init (argc=<optimized out>, argc@entry=4, argv=<optimized out>, argv@entry=0x76a556b0) at src/haproxy.c:1649
#14 0x0002bc90 in main (argc=4, argv=0x76a556b0) at src/haproxy.c:2683

```

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 23, 2019, 1:34pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/2 "2019-05-23T13:34:51Z")

</div>

Can you provide the output of `haproxy -vv` (unless that crashes also)?

---

<div class="post-metadata">

**Author:** ![jszjsmith](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jszjsmith](https://discourse.haproxy.org/u/jszjsmith)\
**Post date:** [May 23, 2019, 1:38pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/3 "2019-05-23T13:38:52Z")

</div>

here you go:

```auto
# /usr/local/sbin/haproxy -vv
HA-Proxy version 2.0-dev4 2019/05/22 - https://haproxy.org/
Build options :
  TARGET = linux2628
  CPU = generic
  CC = gcc
  CFLAGS = -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-old-style-declaration -Wno-ignored-qualifiers -Wno-clobbered -Wno-missing-field-initializers -Wtype-limits
  OPTIONS = USE_PCRE=1 USE_OPENSSL=1 USE_LUA=1 USE_ZLIB=1 USE_TFO=1 USE_NS=1 USE_SYSTEMD=1

Feature list : +EPOLL -KQUEUE -MY_EPOLL -MY_SPLICE +NETFILTER +PCRE -PCRE_JIT -PCRE2 -PCRE2_JIT +POLL -PRIVATE_CACHE +THREAD -PTHREAD_PSHARED -REGPARM -STATIC_PCRE -STATIC_PCRE2 +TPROXY +LINUX_TPROXY +LINUX_SPLICE +LIBCRYPT +CRYPT_H -VSYSCALL -GETADDRINFO +OPENSSL +LUA +FUTEX +ACCEPT4 -MY_ACCEPT4 +ZLIB -SLZ +CPU_AFFINITY +TFO +NS +DL +RT -DEVICEATLAS -51DEGREES -WURFL +SYSTEMD -OBSOLETE_LINKER +PRCTL +THREAD_DUMP -EVPORTS

Default settings :
  bufsize = 16384, maxrewrite = 1024, maxpollevents = 200

Built with multi-threading support (MAX_THREADS=32, default=4).
Built with OpenSSL version : OpenSSL 1.0.2k-fips 26 Jan 2017
Running on OpenSSL version : OpenSSL 1.0.2k-fips 26 Jan 2017
OpenSSL library supports TLS extensions : yes
OpenSSL library supports SNI : yes
OpenSSL library supports : SSLv3 TLSv1.0 TLSv1.1 TLSv1.2
Built with Lua version : Lua 5.3.4
Built with network namespace support.
Built with transparent proxy support using: IP_TRANSPARENT IPV6_TRANSPARENT IP_FREEBIND
Built with zlib version : 1.2.7
Running on zlib version : 1.2.7
Compression algorithms supported : identity("identity"), deflate("deflate"), raw-deflate("deflate"), gzip("gzip")
Built with PCRE version : 8.32 2012-11-30
Running on PCRE version : 8.32 2012-11-30
PCRE library supports JIT : no (USE_PCRE_JIT not set)
Encrypted password support via crypt(3): yes

Available polling systems :
      epoll : pref=300, test result OK
       poll : pref=200, test result OK
     select : pref=150, test result OK
Total: 3 (3 usable), will use epoll.

Available multiplexer protocols :
(protocols marked as <default> cannot be specified using 'proto' keyword)
              h2 : mode=HTX side=FE|BE mux=H2
              h2 : mode=HTTP side=FE mux=H2
       <default> : mode=HTX side=FE|BE mux=H1
       <default> : mode=TCP|HTTP side=FE|BE mux=PASS

Available services : none

Available filters :
	[SPOE] spoe
	[COMP] compression
	[CACHE] cache
	[TRACE] trace

```

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 23, 2019, 1:49pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/4 "2019-05-23T13:49:37Z")

</div>

Can you try without the `user` and `group` directives in the configuration (keep using root)?

---

<div class="post-metadata">

**Author:** ![jszjsmith](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jszjsmith](https://discourse.haproxy.org/u/jszjsmith)\
**Post date:** [May 23, 2019, 3:13pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/5 "2019-05-23T15:13:58Z")

</div>

Running as root and no user/group in the cofig I still get a Segmentation Fault but there’s a diffferent output from gdb:

```auto
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x75e5bbf0 (LWP 1001)]
fd_rm_from_fd_list (list=0x2997d8 <update_list>, fd=fd@entry=8, off=off@entry=24) at src/fd.c:275
275 unlikely(!_HA_ATOMIC_DWCAS(((void **)(void *)&_GET_NEXT(fd, off)), ((void**)(void *)&cur_list), (*(void **)(void *)&next_list))))

```

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 23, 2019, 9:22pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/6 "2019-05-23T21:22:57Z")

</div>

I’m investigating, it’s about threading.

Workaround for now is to disable threading by adding `nbthread 1` to your global section.

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 23, 2019, 10:21pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/7 "2019-05-23T22:21:01Z")

</div>

> [@jszjsmith](#):
>
> both 1.9.0 and 2.0-dev4

You probably meant 1.9.8 because the bug was only introduced in that release (1.9.7 and older work fine).

I’ve filed a bug:

> <https://github.com/haproxy/haproxy/issues/105>
>
> John Smith reported on discourse that haproxy 1.9 and dev crashes on Raspberry P…i's (CentOs 7):
> 
> https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850
> 
> \<!--
> 
> Welcome! - We kindly ask that you:
> 
> 1. Fill out the issue template below - not doing so needs a good reason.
> 2. Use the forum or the mailing list if you have a question rather than a bug or feature request.
> 
> The forum is at: https://discourse.haproxy.org/
> 
> The mailing list (no need to subscribe) is: haproxy@formilux.org
> Subscribe to the list: haproxy+subscribe@formilux.org
> Unsubscribe from the list: haproxy+unsubscribe@formilux.org
> 
> Forum and mailing list are correct places for questions about HAProxy or general suggestions
> and topics, e.g. usage or documentation questions! This issue tracker is for tracking bugs and
> feature requests directly relating to the development of the software itself.
> 
> Thanks for understanding, and for contributing to the project!
> 
> \--\>
> 
> \## kernel, gcc, haproxy version and \`/proc/cpuinfo\`
> 
> 
> 
> \`\`\`
> \[root@osmc haproxy\]# uname -a
> Linux osmc 4.14.82-v7.1.el7 #1 SMP Sun Nov 25 22:42:27 UTC 2018 armv7l armv7l armv7l GNU/Linux
> \[root@osmc haproxy\]# gcc --version
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
> Copyright (C) 2015 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> \[root@osmc haproxy\]# cat /proc/cpuinfo
> processor : 0
> model name : ARMv7 Processor rev 4 (v7l)
> BogoMIPS : 38.40
> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part : 0xd03
> CPU revision : 4
> 
> processor : 1
> model name : ARMv7 Processor rev 4 (v7l)
> BogoMIPS : 38.40
> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part : 0xd03
> CPU revision : 4
> 
> processor : 2
> model name : ARMv7 Processor rev 4 (v7l)
> BogoMIPS : 38.40
> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part : 0xd03
> CPU revision : 4
> 
> processor : 3
> model name : ARMv7 Processor rev 4 (v7l)
> BogoMIPS : 38.40
> Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
> CPU implementer : 0x41
> CPU architecture: 7
> CPU variant : 0x0
> CPU part : 0xd03
> CPU revision : 4
> 
> Hardware : BCM2835
> Revision : a02082
> Serial : 00000000xxxxxxxx
> \[root@osmc haproxy\]# ./haproxy -vv
> HA-Proxy version 2.0-dev4-1713c0-5 2019/05/23 - https://haproxy.org/
> Build options :
> TARGET = linux2628
> CPU = generic
> CC = gcc
> CFLAGS = -O0 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-old-style-declaration -Wno-ignored-qualifiers -Wno-clobbered -Wno-missing-field-initializers -Wtype-limits
> OPTIONS = USE\_THREAD\_DUMP=1
> 
> Feature list : +EPOLL -KQUEUE -MY\_EPOLL -MY\_SPLICE +NETFILTER -PCRE -PCRE\_JIT -PCRE2 -PCRE2\_JIT +POLL -PRIVATE\_CACHE +THREAD -PTHREAD\_PSHARED -REGPARM -STATIC\_PCRE -STATIC\_PCRE2 +TPROXY +LINUX\_TPROXY +LINUX\_SPLICE +LIBCRYPT +CRYPT\_H -VSYSCALL -GETADDRINFO -OPENSSL -LUA +FUTEX +ACCEPT4 -MY\_ACCEPT4 -ZLIB -SLZ +CPU\_AFFINITY -TFO -NS +DL +RT -DEVICEATLAS -51DEGREES -WURFL -SYSTEMD -OBSOLETE\_LINKER +PRCTL +THREAD\_DUMP -EVPORTS
> 
> Default settings :
> bufsize = 16384, maxrewrite = 1024, maxpollevents = 200
> 
> Built with multi-threading support (MAX\_THREADS=32, default=4).
> Built with transparent proxy support using: IP\_TRANSPARENT IPV6\_TRANSPARENT IP\_FREEBIND
> Built without compression support (neither USE\_ZLIB nor USE\_SLZ are set).
> Compression algorithms supported : identity("identity")
> Built without PCRE or PCRE2 support (using libc's regex instead)
> Encrypted password support via crypt(3): yes
> 
> Available polling systems :
> epoll : pref=300, test result OK
> poll : pref=200, test result OK
> select : pref=150, test result OK
> Total: 3 (3 usable), will use epoll.
> 
> Available multiplexer protocols :
> (protocols marked as \<default\> cannot be specified using 'proto' keyword)
> h2 : mode=HTTP side=FE mux=H2
> h2 : mode=HTX side=FE|BE mux=H2
> \<default\> : mode=HTX side=FE|BE mux=H1
> \<default\> : mode=TCP|HTTP side=FE|BE mux=PASS
> 
> Available services : none
> 
> Available filters :
> \[SPOE\] spoe
> \[COMP\] compression
> \[CACHE\] cache
> \[TRACE\] trace
> 
> \[root@osmc haproxy\]#
> 
> \`\`\`
> 
> 
> \## GDB backtrace
> 
> 
> \`\`\`
> \[root@osmc haproxy\]# gdb haproxy core
> GNU gdb (GDB) Red Hat Enterprise Linux 7.6.1-114.el7
> Copyright (C) 2013 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later \<http://gnu.org/licenses/gpl.html\>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law. Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "armv7hl-redhat-linux-gnueabi".
> For bug reporting instructions, please see:
> \<http://www.gnu.org/software/gdb/bugs/\>...
> Reading symbols from /root/haproxy/haproxy...done.
> \[New LWP 2350\]
> \[New LWP 2349\]
> \[New LWP 2351\]
> \[New LWP 2348\]
> \[Thread debugging using libthread\_db enabled\]
> Using host libthread\_db library "/lib/libthread\_db.so.1".
> Core was generated by \`./haproxy -f ../haproxy.cfg -d'.
> Program terminated with signal 11, Segmentation fault.
> \#0 0x001a3730 in \_\_ha\_cas\_dw (target=0x101d208, compare=0x76439d08, set=0xfffffffe) at include/common/hathreads.h:1080
> 1080 : "r" (\*(uint64\_t \*)compare), "r" (\*(uint64\_t \*)set), "r" (target)
> (gdb) bt
> \#0 0x001a3730 in \_\_ha\_cas\_dw (target=0x101d208, compare=0x76439d08, set=0xfffffffe) at include/common/hathreads.h:1080
> \#1 0x001a4af0 in fd\_rm\_from\_fd\_list (list=0x2ce870 \<update\_list\>, fd=4, off=24) at src/fd.c:275
> \#2 0x0001635c in done\_update\_polling (fd=4) at include/proto/fd.h:152
> \#3 0x0001742c in \_do\_poll (p=0x2ce844 \<cur\_poller\>, exp=0) at src/ev\_epoll.c:139
> \#4 0x000c7ab8 in run\_poll\_loop () at src/haproxy.c:2546
> \#5 0x000c7ccc in run\_thread\_poll\_loop (data=0x2) at src/haproxy.c:2603
> \#6 0x76ea0c64 in start\_thread (arg=0x7643a3a0) at pthread\_create.c:309
> \#7 0x76ddabb8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:96 from /lib/libc.so.6
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb) bt full
> \#0 0x001a3730 in \_\_ha\_cas\_dw (target=0x101d208, compare=0x76439d08, set=0xfffffffe) at include/common/hathreads.h:1080
> previous = 8571581165952040960
> tmp = 1
> \#1 0x001a4af0 in fd\_rm\_from\_fd\_list (list=0x2ce870 \<update\_list\>, fd=4, off=24) at src/fd.c:275
> cur\_list = {next = -1, prev = -1}
> next\_list = {next = -2, prev = -2}
> old = 0
> new = -2
> prev = 1
> next = 8
> last = 1984144392
> \#2 0x0001635c in done\_update\_polling (fd=4) at include/proto/fd.h:152
> update\_mask = 0
> \#3 0x0001742c in \_do\_poll (p=0x2ce844 \<cur\_poller\>, exp=0) at src/ev\_epoll.c:139
> status = 1984142708
> fd = 4
> count = 0
> updt\_idx = 1
> wait\_time = 1984144392
> old\_fd = 4
> \#4 0x000c7ab8 in run\_poll\_loop () at src/haproxy.c:2546
> next = 0
> exp = 0
> \#5 0x000c7ccc in run\_thread\_poll\_loop (data=0x2) at src/haproxy.c:2603
> ptaf = 0x2432b0 \<per\_thread\_alloc\_list\>
> ptif = 0x2432b8 \<per\_thread\_init\_list\>
> ptdf = 0x0
> ptff = 0x0
> \#6 0x76ea0c64 in start\_thread (arg=0x7643a3a0) at pthread\_create.c:309
> pd = 0x7643a3a0
> unwind\_buf = {cancel\_jmp\_buf = {{jmp\_buf = {1984144392, 0, 1995178472, 338, 0, 0, 1995726760, 1984143068, 1984142760, 1995050032, 0 \<repeats 54 times\>}, mask\_was\_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
> not\_first\_call = \<optimized out\>
> pagesize\_m1 = \<optimized out\>
> sp = \<optimized out\>
> freesize = \<optimized out\>
> \#7 0x76ddabb8 in ?? () at ../sysdeps/unix/sysv/linux/arm/clone.S:96 from /lib/libc.so.6
> No locals.
> Backtrace stopped: previous frame identical to this frame (corrupt stack?)
> (gdb) quit
> \[root@osmc haproxy\]#
> \`\`\`
> 
> \## What's the configuration?
> 
> \`\`\`
> global
> maxconn 100
> nbthread 4
> 
> defaults
> mode http
> timeout connect 10s
> timeout client 60s
> timeout server 60s
> 
> listen www
> mode tcp
> bind :80
> server s1 www.example.org:80
> \`\`\`
> 
> \## Steps to reproduce the behavior
> 
> Start haproxy with threading enabled on a Raspberry Pi, it crashes either immediately or after a few seconds.
> 
> \## Workaround
> 
> Disable threading with \`nbthread 1\`.
> 
> \## Do you have any idea what may have caused this?
> 
> This is a regression caused by commit 6a38b3297c (\`BUILD: threads: fix again the \_\_ha\_cas\_dw() definition\`) and also affects \`1.9.8\` @wtarreau 
> 
> Note there is also a different threading issue reported on the ML in 1.9.8 (though probably unrelated):
> https://www.mail-archive.com/haproxy@formilux.org/msg33854.html

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [May 27, 2019, 4:17pm UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/8 "2019-05-27T16:17:20Z")

</div>

A fix has been committed to -dev and queued up for 1.9 (will be in the 1.9.9 release):

> <https://github.com/haproxy/haproxy/commit/c3b595825583386bbc28fcd0c77c5ff926fcf345>

---

<div class="post-metadata">

**Author:** ![jszjsmith](https://avatars.discourse-cdn.com/v4/letter/j/a9a28c/32.png) [@jszjsmith](https://discourse.haproxy.org/u/jszjsmith)\
**Post date:** [May 31, 2019, 6:02am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/9 "2019-05-31T06:02:25Z")

</div>

Thanks guys, built this version and its no longer crashing:

```auto
HA-Proxy version 2.0-dev4-c3b595-33 2019/05/27 - https://haproxy.org/

```

---

<div class="post-metadata">

**Author:** ![mkasap](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mkasap](https://discourse.haproxy.org/u/mkasap)\
**Post date:** [June 11, 2019, 4:37am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/10 "2019-06-11T04:37:13Z")

</div>

May you share your build steps for armv7 ?

I am trying to use the min version 1.9 too on Raspberry Pi

is it just:  
make TARGET=custom

---

<div class="post-metadata">

**Author:** ![mkasap](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@mkasap](https://discourse.haproxy.org/u/mkasap)\
**Post date:** [June 11, 2019, 5:29am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/11 "2019-06-11T05:29:54Z")

</div>

this worked:  
make TARGET=custom  
sudo make install

pi@RPi01:~/haproxy-2.0-dev6 $ haproxy -vv  
HA-Proxy version 2.0-dev6 2019/06/07 - [https://haproxy.org/](https://haproxy.org/)  
Build options :  
TARGET = custom  
CPU = generic  
CC = gcc  
CFLAGS = -O2 -g -fno-strict-aliasing -Wdeclaration-after-statement -fwrapv -Wno-unused-label -Wno-sign-compare -Wno-unused-parameter -Wno-old-style-declaration -Wno-ignored-qualifiers -Wno-clobbered -Wno-missing-field-initializers -Wtype-limits -Wshift-negative-value -Wshift-overflow=2 -Wduplicated-cond -Wnull-dereference  
OPTIONS =

Feature list : -EPOLL -KQUEUE -MY\_EPOLL -MY\_SPLICE -NETFILTER -PCRE -PCRE\_JIT -PCRE2 -PCRE2\_JIT +POLL -PRIVATE\_CACHE -THREAD -PTHREAD\_PSHARED -REGPARM -STATIC\_PCRE -STATIC\_PCRE2 -TPROXY -LINUX\_TPROXY -LINUX\_SPLICE -LIBCRYPT -CRYPT\_H -VSYSCALL -GETADDRINFO -OPENSSL -LUA -FUTEX -ACCEPT4 -MY\_ACCEPT4 -ZLIB -SLZ -CPU\_AFFINITY -TFO -NS -DL -RT -DEVICEATLAS -51DEGREES -WURFL -SYSTEMD -OBSOLETE\_LINKER -PRCTL -THREAD\_DUMP -EVPORTS

Default settings :  
bufsize = 16384, maxrewrite = 1024, maxpollevents = 200

Built with transparent proxy support using: IP\_TRANSPARENT IP\_FREEBIND  
Built without compression support (neither USE\_ZLIB nor USE\_SLZ are set).  
Compression algorithms supported : identity(“identity”)  
Built without PCRE or PCRE2 support (using libc’s regex instead)  
Encrypted password support via crypt(3): yes  
Built without multi-threading support (USE\_THREAD not set).

Available polling systems :  
poll : pref=200, test result OK  
select : pref=150, test result OK  
Total: 2 (2 usable), will use poll.

Available multiplexer protocols :  
(protocols marked as cannot be specified using ‘proto’ keyword)  
h2 : mode=HTX side=FE|BE mux=H2  
h2 : mode=HTTP side=FE mux=H2  
 : mode=HTX side=FE|BE mux=H1  
 : mode=TCP|HTTP side=FE|BE mux=PASS

Available services : none

Available filters :  
[SPOE] spoe  
[COMP] compression  
[CACHE] cache  
[TRACE] trace

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [June 11, 2019, 6:40am UTC](https://discourse.haproxy.org/t/segmentation-fault-on-raspberry-pi/3850/12 "2019-06-11T06:40:56Z")

</div>

Please don’t use `make TARGET=custom` unless you _really_ know what you are doing.

Use `make TARGET=linux2628` if you are an Linux (which I assume you are).

`CPU=generic` is fine.
