firefighting – asn32 and quagga crash

debian lenny, out-of-the-box quagga_0.99.10-1lenny1_i386

symptoms of disaster in bgpd.log:

2009/05/03 14:00:47 BGP: Assertion `len < str_size' failed in file bgp_aspath.c, line 619, function aspath_make_str_count 2009/05/03 14:00:47 BGP: Backtrace for 14 stack frames: 2009/05/03 14:00:47 BGP: [bt 0] /usr/lib/ [0xb7f50a5a] 2009/05/03 14:00:47 BGP: [bt 1] /usr/lib/ [0xb7f50be7] [..]

hectic googling brings very few results including:

i've followed suggestions, downloaded patch file from
edited it and removed beginning and endso it's valid patch. you can get it as well from

then quick download of source, applying the patch and compilation

cd /usr/local/src
tar -zxvf quagga-0.99.11.tar.gz
mv quagga-0.99.11 a
patch -p0 < 20090503-quagga_asn32.txt cd a ./configure --disable-ipv6 --disable-ripngd --disable-ospfd --disable-ospf6d make make install

uf... that was quite ... unexpected intervetion. i had to kick out debian's quagga, and hack some small custom startup script. i hope proper patched version will show sooner or later in debian's repositories.

problem is actively discussed here

Leave a Reply

Your email address will not be published. Required fields are marked *

(Spamcheck Enabled)