Re: Error in `haproxy': munmap_chunk(): invalid pointer:
Andrew, Am 09.11.2017 um 02:00 schrieb Andrew Smalley: > The above is a guess, can you supply the build commands and clarify > this line in the config " bind :::80 v4v6" ? Dont you want to "bind > *:80" and use IPv4 only While Willy already replied that the bug is fixed (and no matter how wrong configuration is: haproxy should not crash like that) I am curious: Why would I want to run IPv4 only in 2017 when my machine has a fully working dual stack IPv6 connection? Best regards Tim Düsterhus
Re: Error in `haproxy': munmap_chunk(): invalid pointer:
Willy, Am 09.11.2017 um 05:33 schrieb Willy Tarreau: > It is harmless (despite annoying for your tests) since it dies when freeing > everything on exit. If you want to get rid of it, it's fixed in the latest > daily snapshot. > I ran across it while creating an early pull request to add support for haproxy 1.8-rc to the official Docker images (https://github.com/docker-library/haproxy), because of the major changes (removal of systemd-wrapper). They certainly don't want to provide snapshots on Docker Hub, so I'll guess I wait for v1.8-rc3 to finish up my tests :-) I'm going to delete the tarball from my server then. Thanks! Tim Düsterhus
Re: Error in `haproxy': munmap_chunk(): invalid pointer:
Hi Tim, On Thu, Nov 09, 2017 at 01:00:22AM +0100, Tim Düsterhus wrote: > Hi > > I get the following crash when running: > > [timwolla@/t/h/haproxy-1.8-rc2]./haproxy -V > HA-Proxy version 1.8-rc2-a8d8d6e 2017/11/03 > Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org> > > with the configuration at the bottom of this email as follows: > > root@node42:/tmp/haproxy/haproxy-1.8-rc2# ./haproxy -W -f > /tmp/haproxy/haproxy-1.8-rc2/haproxy.cfg > [WARNING] 312/004845 (31835) : Can't open server state file > '/etc/haproxy/state/global': No such file or directory > [WARNING] 312/004845 (31835) : Can't open server state file > '/etc/haproxy/state/global': No such file or directory > > and then killing the master process using a SIGHUP: > > > *** Error in `./haproxy': munmap_chunk(): invalid pointer: > > 0x00515028 *** > > === Backtrace: = > > /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fda72bbc7e5] > > /lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7fda72bc9698] > > ./haproxy[0x4a28d0] > > ./haproxy[0x4a2c4e] > > ./haproxy[0x4a2f57] > > ./haproxy[0x40b16f] > > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fda72b65830] > > ./haproxy[0x40c149] > > === Memory map: > > 0040-00532000 r-xp 08:03 2765518 > > /tmp/haproxy/haproxy-1.8-rc2/haproxy > > 00731000-00732000 r--p 00131000 08:03 2765518 > > /tmp/haproxy/haproxy-1.8-rc2/haproxy > > 00732000-00749000 rw-p 00132000 08:03 2765518 > > /tmp/haproxy/haproxy-1.8-rc2/haproxy > > 00749000-0074e000 rw-p 00:00 0 > > 01d7f000-01de3000 rw-p 00:00 0 > > [heap] > > 7fda7272b000-7fda72741000 r-xp 08:03 528903 > > /lib/x86_64-linux-gnu/libgcc_s.so.1 > > 7fda72741000-7fda7294 ---p 00016000 08:03 528903 > > /lib/x86_64-linux-gnu/libgcc_s.so.1 > > 7fda7294-7fda72941000 rw-p 00015000 08:03 528903 > > /lib/x86_64-linux-gnu/libgcc_s.so.1 > > 7fda72941000-7fda72944000 r-xp 08:03 533578 > > /lib/x86_64-linux-gnu/libdl-2.23.so > > 7fda72944000-7fda72b43000 ---p 3000 08:03 533578 > > /lib/x86_64-linux-gnu/libdl-2.23.so > > 7fda72b43000-7fda72b44000 r--p 2000 08:03 533578 > > /lib/x86_64-linux-gnu/libdl-2.23.so > > 7fda72b44000-7fda72b45000 rw-p 3000 08:03 533578 > > /lib/x86_64-linux-gnu/libdl-2.23.so > > 7fda72b45000-7fda72d05000 r-xp 08:03 533590 > > /lib/x86_64-linux-gnu/libc-2.23.so > > 7fda72d05000-7fda72f05000 ---p 001c 08:03 533590 > > /lib/x86_64-linux-gnu/libc-2.23.so > > 7fda72f05000-7fda72f09000 r--p 001c 08:03 533590 > > /lib/x86_64-linux-gnu/libc-2.23.so > > 7fda72f09000-7fda72f0b000 rw-p 001c4000 08:03 533590 > > /lib/x86_64-linux-gnu/libc-2.23.so > > 7fda72f0b000-7fda72f0f000 rw-p 00:00 0 > > 7fda72f0f000-7fda72f7d000 r-xp 08:03 541796 > > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > > 7fda72f7d000-7fda7317d000 ---p 0006e000 08:03 541796 > > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > > 7fda7317d000-7fda7317e000 r--p 0006e000 08:03 541796 > > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > > 7fda7317e000-7fda7317f000 rw-p 0006f000 08:03 541796 > > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > > 7fda7317f000-7fda73399000 r-xp 08:03 529753 > > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > > 7fda73399000-7fda73598000 ---p 0021a000 08:03 529753 > > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > > 7fda73598000-7fda735b4000 r--p 00219000 08:03 529753 > > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > > 7fda735b4000-7fda735c rw-p 00235000 08:03 529753 > > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > > 7fda735c-7fda735c3000 rw-p 00:00 0 > > 7fda735c3000-7fda73621000 r-xp 08:03 524697 > > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > > 7fda73621000-7fda73821000 ---p 0005e000 08:03 524697 > > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > > 7fda73821000-7fda73825000 r--p 0005e000 08:03 524697 > > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > > 7fda73825000-7fda7382c000 rw-p 00062000 08:03 524697
Re: Error in `haproxy': munmap_chunk(): invalid pointer:
Hi Tim Can you try a make install first please or mkdir -p '/etc/haproxy/state/ so the state directory exists and then re-test. The above is a guess, can you supply the build commands and clarify this line in the config " bind :::80 v4v6" ? Dont you want to "bind *:80" and use IPv4 only Andruw Smalley Loadbalancer.org Ltd. www.loadbalancer.org +1 888 867 9504 / +44 (0)330 380 1064 asmal...@loadbalancer.org Leave a Review | Deployment Guides | Blog On 9 November 2017 at 00:00, Tim Düsterhus <t...@bastelstu.be> wrote: > Hi > > I get the following crash when running: > > [timwolla@/t/h/haproxy-1.8-rc2]./haproxy -V > HA-Proxy version 1.8-rc2-a8d8d6e 2017/11/03 > Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org> > > with the configuration at the bottom of this email as follows: > > root@node42:/tmp/haproxy/haproxy-1.8-rc2# ./haproxy -W -f > /tmp/haproxy/haproxy-1.8-rc2/haproxy.cfg > [WARNING] 312/004845 (31835) : Can't open server state file > '/etc/haproxy/state/global': No such file or directory > [WARNING] 312/004845 (31835) : Can't open server state file > '/etc/haproxy/state/global': No such file or directory > > and then killing the master process using a SIGHUP: > >> *** Error in `./haproxy': munmap_chunk(): invalid pointer: >> 0x00515028 *** >> === Backtrace: = >> /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fda72bbc7e5] >> /lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7fda72bc9698] >> ./haproxy[0x4a28d0] >> ./haproxy[0x4a2c4e] >> ./haproxy[0x4a2f57] >> ./haproxy[0x40b16f] >> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fda72b65830] >> ./haproxy[0x40c149] >> === Memory map: >> 0040-00532000 r-xp 08:03 2765518 >> /tmp/haproxy/haproxy-1.8-rc2/haproxy >> 00731000-00732000 r--p 00131000 08:03 2765518 >> /tmp/haproxy/haproxy-1.8-rc2/haproxy >> 00732000-00749000 rw-p 00132000 08:03 2765518 >> /tmp/haproxy/haproxy-1.8-rc2/haproxy >> 00749000-0074e000 rw-p 00:00 0 >> 01d7f000-01de3000 rw-p 00:00 0 >> [heap] >> 7fda7272b000-7fda72741000 r-xp 08:03 528903 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fda72741000-7fda7294 ---p 00016000 08:03 528903 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fda7294-7fda72941000 rw-p 00015000 08:03 528903 >> /lib/x86_64-linux-gnu/libgcc_s.so.1 >> 7fda72941000-7fda72944000 r-xp 08:03 533578 >> /lib/x86_64-linux-gnu/libdl-2.23.so >> 7fda72944000-7fda72b43000 ---p 3000 08:03 533578 >> /lib/x86_64-linux-gnu/libdl-2.23.so >> 7fda72b43000-7fda72b44000 r--p 2000 08:03 533578 >> /lib/x86_64-linux-gnu/libdl-2.23.so >> 7fda72b44000-7fda72b45000 rw-p 3000 08:03 533578 >> /lib/x86_64-linux-gnu/libdl-2.23.so >> 7fda72b45000-7fda72d05000 r-xp 08:03 533590 >> /lib/x86_64-linux-gnu/libc-2.23.so >> 7fda72d05000-7fda72f05000 ---p 001c 08:03 533590 >> /lib/x86_64-linux-gnu/libc-2.23.so >> 7fda72f05000-7fda72f09000 r--p 001c 08:03 533590 >> /lib/x86_64-linux-gnu/libc-2.23.so >> 7fda72f09000-7fda72f0b000 rw-p 001c4000 08:03 533590 >> /lib/x86_64-linux-gnu/libc-2.23.so >> 7fda72f0b000-7fda72f0f000 rw-p 00:00 0 >> 7fda72f0f000-7fda72f7d000 r-xp 08:03 541796 >> /lib/x86_64-linux-gnu/libpcre.so.3.13.2 >> 7fda72f7d000-7fda7317d000 ---p 0006e000 08:03 541796 >> /lib/x86_64-linux-gnu/libpcre.so.3.13.2 >> 7fda7317d000-7fda7317e000 r--p 0006e000 08:03 541796 >> /lib/x86_64-linux-gnu/libpcre.so.3.13.2 >> 7fda7317e000-7fda7317f000 rw-p 0006f000 08:03 541796 >> /lib/x86_64-linux-gnu/libpcre.so.3.13.2 >> 7fda7317f000-7fda73399000 r-xp 08:03 529753 >> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 >> 7fda73399000-7fda73598000 ---p 0021a000 08:03 529753 >> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 >> 7fda73598000-7fda735b4000 r--p 00219000 08:03 529753 >> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 >> 7fda735b4000-7fda735c rw-p 00235000 08:03 529753 >> /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 >> 7fda735c-7fda735c3000 rw-p 00:00 0 >> 7fda735c3000-7fda73621000 r-xp 08:03 5246
Error in `haproxy': munmap_chunk(): invalid pointer:
Hi I get the following crash when running: [timwolla@/t/h/haproxy-1.8-rc2]./haproxy -V HA-Proxy version 1.8-rc2-a8d8d6e 2017/11/03 Copyright 2000-2017 Willy Tarreau <wi...@haproxy.org> with the configuration at the bottom of this email as follows: root@node42:/tmp/haproxy/haproxy-1.8-rc2# ./haproxy -W -f /tmp/haproxy/haproxy-1.8-rc2/haproxy.cfg [WARNING] 312/004845 (31835) : Can't open server state file '/etc/haproxy/state/global': No such file or directory [WARNING] 312/004845 (31835) : Can't open server state file '/etc/haproxy/state/global': No such file or directory and then killing the master process using a SIGHUP: > *** Error in `./haproxy': munmap_chunk(): invalid pointer: 0x00515028 > *** > === Backtrace: = > /lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7fda72bbc7e5] > /lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7fda72bc9698] > ./haproxy[0x4a28d0] > ./haproxy[0x4a2c4e] > ./haproxy[0x4a2f57] > ./haproxy[0x40b16f] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fda72b65830] > ./haproxy[0x40c149] > === Memory map: > 0040-00532000 r-xp 08:03 2765518 > /tmp/haproxy/haproxy-1.8-rc2/haproxy > 00731000-00732000 r--p 00131000 08:03 2765518 > /tmp/haproxy/haproxy-1.8-rc2/haproxy > 00732000-00749000 rw-p 00132000 08:03 2765518 > /tmp/haproxy/haproxy-1.8-rc2/haproxy > 00749000-0074e000 rw-p 00:00 0 > 01d7f000-01de3000 rw-p 00:00 0 > [heap] > 7fda7272b000-7fda72741000 r-xp 08:03 528903 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7fda72741000-7fda7294 ---p 00016000 08:03 528903 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7fda7294-7fda72941000 rw-p 00015000 08:03 528903 > /lib/x86_64-linux-gnu/libgcc_s.so.1 > 7fda72941000-7fda72944000 r-xp 08:03 533578 > /lib/x86_64-linux-gnu/libdl-2.23.so > 7fda72944000-7fda72b43000 ---p 3000 08:03 533578 > /lib/x86_64-linux-gnu/libdl-2.23.so > 7fda72b43000-7fda72b44000 r--p 2000 08:03 533578 > /lib/x86_64-linux-gnu/libdl-2.23.so > 7fda72b44000-7fda72b45000 rw-p 3000 08:03 533578 > /lib/x86_64-linux-gnu/libdl-2.23.so > 7fda72b45000-7fda72d05000 r-xp 08:03 533590 > /lib/x86_64-linux-gnu/libc-2.23.so > 7fda72d05000-7fda72f05000 ---p 001c 08:03 533590 > /lib/x86_64-linux-gnu/libc-2.23.so > 7fda72f05000-7fda72f09000 r--p 001c 08:03 533590 > /lib/x86_64-linux-gnu/libc-2.23.so > 7fda72f09000-7fda72f0b000 rw-p 001c4000 08:03 533590 > /lib/x86_64-linux-gnu/libc-2.23.so > 7fda72f0b000-7fda72f0f000 rw-p 00:00 0 > 7fda72f0f000-7fda72f7d000 r-xp 08:03 541796 > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > 7fda72f7d000-7fda7317d000 ---p 0006e000 08:03 541796 > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > 7fda7317d000-7fda7317e000 r--p 0006e000 08:03 541796 > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > 7fda7317e000-7fda7317f000 rw-p 0006f000 08:03 541796 > /lib/x86_64-linux-gnu/libpcre.so.3.13.2 > 7fda7317f000-7fda73399000 r-xp 08:03 529753 > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > 7fda73399000-7fda73598000 ---p 0021a000 08:03 529753 > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > 7fda73598000-7fda735b4000 r--p 00219000 08:03 529753 > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > 7fda735b4000-7fda735c rw-p 00235000 08:03 529753 > /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 > 7fda735c-7fda735c3000 rw-p 00:00 0 > 7fda735c3000-7fda73621000 r-xp 08:03 524697 > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > 7fda73621000-7fda73821000 ---p 0005e000 08:03 524697 > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > 7fda73821000-7fda73825000 r--p 0005e000 08:03 524697 > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > 7fda73825000-7fda7382c000 rw-p 00062000 08:03 524697 > /lib/x86_64-linux-gnu/libssl.so.1.0.0 > 7fda7382c000-7fda73844000 r-xp 08:03 530442 > /lib/x86_64-linux-gnu/libpthread-2.23.so > 7fda73844000-7fda73a43000 ---p 00018000 08:03 530442 > /lib/x86_64-linux-gnu/libpthread-2.23.so > 7fda73a43000-7fda73a44000 r--p 00017000 08:03 530442 > /lib/x86_64-linux-gnu/libpthread-2.23.so > 7fda73a44000-7fda73a45000 rw-p 00018000 08:03 530442 &