From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 13 14:32:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 64708106564A; Sun, 13 Jul 2008 14:32:49 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2001:41c8:1:548a::2]) by mx1.freebsd.org (Postfix) with ESMTP id C39478FC18; Sun, 13 Jul 2008 14:32:48 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 59B4F30012; Sun, 13 Jul 2008 15:32:44 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on muon.cran.org.uk X-Spam-Level: X-Spam-Status: No, score=-2.3 required=8.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.3 Received: from tau (unknown [IPv6:2a01:348:10f:0:219:b9ff:fe54:f04a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTP; Sun, 13 Jul 2008 15:32:44 +0100 (BST) Date: Sun, 13 Jul 2008 15:32:35 +0100 From: Bruce Cran To: Dmitry Morozovsky Message-ID: <20080713153235.73eb34fd@tau> In-Reply-To: <20080713175927.R58331@woozle.rinet.ru> References: <20080704121833.J35668@woozle.rinet.ru> <20080713105548.GA55221@server.vk2pj.dyndns.org> <20080713175927.R58331@woozle.rinet.ru> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/PlfL1jC+oKtU.cy4Q98Dhjs"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: kan@freebsd.org, oleg@rinet.ru, freebsd-hackers@freebsd.org Subject: Re: profiling broken on RELENG_7/i386 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Jul 2008 14:32:49 -0000 --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Sun, 13 Jul 2008 18:01:12 +0400 (MSD) Dmitry Morozovsky wrote: > On Sun, 13 Jul 2008, Peter Jeremy wrote: >=20 > PJ> On 2008-Jul-04 13:01:11 +0400, Dmitry Morozovsky > PJ> wrote: > PJ> >It seems we step on a bug in gcc in RELENG_7/i386 > PJ> > > PJ> >It is triggered at least by profiling program which uses > PJ> >getopt(3): > PJ>=20 > PJ> I think it's actually in the profiling initialisation code. If > PJ> you try to run sample code under gdb, you can see that .mcount() > PJ> is not preserving %ecx, though main() assumes it does. >=20 > I see. However, I'm afraid we need knowledge of some gcc guru to > bring the fix in. >=20 This is a known bug in 7.x and has apparently been fixed in -CURRENT.=20 See http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dbin/119709 for more details. --=20 Bruce Cran --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFIehIHn4uvqcJsLfgRAkIAAKDM5Nvj+vZIaKrrzDlFKBsOCOcnYwCfThJd omxFsec1xVgm7lxxin5WAZ4= =g5/G -----END PGP SIGNATURE----- --Sig_/PlfL1jC+oKtU.cy4Q98Dhjs--