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/libzebra.so.0(zlog_backtrace+0x2a) [0xb7f50a5a] 2009/05/03 14:00:47 BGP: [bt 1] /usr/lib/libzebra.so.0(_zlog_assert_failed+0x77) [0xb7f50be7] [..]


hectic googling brings very few results including:
http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/8aff7837604f140e/1a81302f8a5dc83f?lnk=raot

i've followed suggestions, downloaded patch file from http://marc.info/?l=quagga-dev&m=123364779626078&q=raw
edited it and removed beginning and endso it's valid patch. you can get it as well from
here

then quick download of source, applying the patch and compilation

cd /usr/local/src
wget http://www.quagga.net/download/quagga-0.99.11.tar.gz
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.

update:
problem is actively discussed here

Leave a Reply

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

(Spamcheck Enabled)