From owner-freebsd-questions@FreeBSD.ORG Sun May 3 18:45:51 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCEA31065670 for ; Sun, 3 May 2009 18:45:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 581B38FC0A for ; Sun, 3 May 2009 18:45:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id n43Ijkcv012328; Sun, 3 May 2009 20:45:46 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 8DAE9B850; Sun, 3 May 2009 20:45:46 +0200 (CEST) Date: Sun, 3 May 2009 20:45:46 +0200 From: Roland Smith To: "Bc. Radek Krejca" Message-ID: <20090503184546.GA4380@slackbox.xs4all.nl> References: <1438340987.20090503192725@starnet.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <1438340987.20090503192725@starnet.cz> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.19 (2009-01-05) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Quagga problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 May 2009 18:45:52 -0000 --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--