glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
Hi, I've compiled 1.5-dev20 on debian wheezy and now I get a double free or corruption bug. Haproxy will not start. *** glibc detected *** /usr/sbin/haproxy: double free or corruption (fasttop): 0x03c5a880 *** === Backtrace: =

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
Hi Sander, On Mon, Dec 16, 2013 at 09:43:07AM +0100, Sander Klein wrote: Hi, I've compiled 1.5-dev20 on debian wheezy and now I get a double free or corruption bug. Haproxy will not start. Interesting, I never experienced this one. Could you please run it through gdb and issue bt full ?

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
On , Willy Tarreau wrote: Hi Sander, On Mon, Dec 16, 2013 at 09:43:07AM +0100, Sander Klein wrote: Hi, I've compiled 1.5-dev20 on debian wheezy and now I get a double free or corruption bug. Haproxy will not start. Interesting, I never experienced this one. Could you please run it

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
On Mon, Dec 16, 2013 at 10:19:42AM +0100, Sander Klein wrote: On , Willy Tarreau wrote: Hi Sander, On Mon, Dec 16, 2013 at 09:43:07AM +0100, Sander Klein wrote: Hi, I've compiled 1.5-dev20 on debian wheezy and now I get a double free or corruption bug. Haproxy will not start.

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank you for your quick help Sander! Willy From 6762a3061ac0d1d8c8860a2191c602a3c526205c Mon Sep 17 00:00:00 2001 From: Willy Tarreau w...@1wt.eu Date: Mon, 16 Dec 2013 10:40:28 +0100

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank you for your quick help Sander! Something is fishy. I've compiled a new version with your patch, haproxy starts but it 'just doesn't work (tm)'. I

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
On , Sander Klein wrote: On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank you for your quick help Sander! Something is fishy. I've compiled a new version with your patch, haproxy starts but it 'just

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
On Mon, Dec 16, 2013 at 01:10:11PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank you for your quick help Sander! Something is fishy. I've compiled a new version with

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
On , Willy Tarreau wrote: On Mon, Dec 16, 2013 at 01:10:11PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank you for your quick help Sander! Something is fishy. I've

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
On Mon, Dec 16, 2013 at 02:19:28PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: On Mon, Dec 16, 2013 at 01:10:11PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading patterns from a file. Thank

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Sander Klein
On , Willy Tarreau wrote: On Mon, Dec 16, 2013 at 02:19:28PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: On Mon, Dec 16, 2013 at 01:10:11PM +0100, Sander Klein wrote: On , Willy Tarreau wrote: OK here's the fix, it was not a big deal, just a missing NULL after a free when loading

Re: glibc double free or corruption with 1.5-dev20

2013-12-16 Thread Willy Tarreau
On Mon, Dec 16, 2013 at 04:46:55PM +0100, Sander Klein wrote: H, dev20 does a slowstart when haproxy starts. Dev19 (and before) doesn't do that. It even does a slowstart when I reload the config file. That doesn't seem right to me. But you're perfectly right! I introduced this