Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2009 20:45:46 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        "Bc. Radek Krejca" <radek@ceskedomeny.cz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Quagga problem
Message-ID:  <20090503184546.GA4380@slackbox.xs4all.nl>
In-Reply-To: <1438340987.20090503192725@starnet.cz>
References:  <1438340987.20090503192725@starnet.cz>

next in thread | previous in thread | raw e-mail | index | archive | help

--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 03, 2009 at 07:27:25PM +0200, Bc. Radek Krejca wrote:
> Hello,
>=20
>   starting this day I have problem with quagga, I get this messages
>   in my log:
>=20
> May  3 19:15:36 gw bgpd[7225]: Assertion `len < str_size' failed in file =
bgp_aspath.c, line 619, function aspath_make_str_count
> May  3 19:15:36 gw kernel: pid 7225 (bgpd), uid 101: exited on signal 6
> May  3 19:15:36 gw bgpd[7225]: No backtrace available on this platform.
>=20
>    I have latest verison of port quagga, I looks as bug in quagga,
>    but I dont know. Do you have any idea for solution?

It is a bug in quagga, or rather a condition that triggers a built-in
verification macro called assert(3). Normal behavior for this macro is
to terminate the program if the asserted condition fails, as it does here.

It looks if a function that calculates the length of a string gets a
larger value than it can cope with. It is possible that an internal
buffer for a string isn't large enough. In this day and age I would
respectfully call that bad coding.

You should report it to the author(s), sinze they put in this check.
It is possible to disable this bahaviour at compile time, see
assert(3). But this is unwise unless you know what you're doing.

Without diving into the source code, it is impossible to be certain that
this is not a FreeBSD bug. But it looks more like ungracefull handling
of an error condition.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--liOOAslEiF7prFVr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (FreeBSD)

iEYEARECAAYFAkn95loACgkQEnfvsMMhpyWGCgCfQia1PONYYzGUoh9ZPcqrsVaW
xhQAnRNzbX+TO2voHB/Wddum0QoLeGxJ
=TJgL
-----END PGP SIGNATURE-----

--liOOAslEiF7prFVr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090503184546.GA4380>