From owner-freebsd-amd64@FreeBSD.ORG Tue Dec 14 18:34:08 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1519216A4CE; Tue, 14 Dec 2004 18:34:08 +0000 (GMT) Received: from imf25aec.mail.bellsouth.net (imf25aec.mail.bellsouth.net [205.152.59.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DE7343D53; Tue, 14 Dec 2004 18:34:05 +0000 (GMT) (envelope-from ahze@ahze.net) Received: from [192.168.1.5] ([68.209.163.3]) by imf25aec.mail.bellsouth.netESMTP <20041214183404.SVEF2130.imf25aec.mail.bellsouth.net@[192.168.1.5]>; Tue, 14 Dec 2004 13:34:04 -0500 In-Reply-To: References: <200412081205.39354.mi+mx@aldan.algebra.com> <20041208171947.GA46271@xor.obsecurity.org> <20041214062738.GA78138@xor.obsecurity.org> <1103027998.41bedf1e46fa1@netchild.homeip.net> <1103030693.40763.10.camel@renaissance.homeip.net> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="Apple-Mail-1-187981737" Message-Id: Content-Transfer-Encoding: 7bit From: Michael Johnson Date: Tue, 14 Dec 2004 13:33:53 -0500 To: "Jeremy Messenger" X-Pgp-Agent: GPGMail 1.0.2 X-Mailer: Apple Mail (2.619) cc: freebsd-amd64@freebsd.org cc: Mikhail Teterin cc: Anthony Ginepro cc: freebsd-current@freebsd.org cc: ade@freebsd.org cc: Kris Kennaway cc: Alexander Leidinger Subject: Re: -O2 compiler bug on amd64? (Re: new TCL vs. current-6) X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 18:34:08 -0000 --Apple-Mail-1-187981737 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed On Dec 14, 2004, at 1:25 PM, Jeremy Messenger wrote: > On Tue, 14 Dec 2004 14:24:53 +0100, Anthony Ginepro=20 > wrote: > >> Le Mardi 14 d=E9cembre 2004 =E0 13:39 +0100, Alexander Leidinger a = =E9crit : >>> Zitat von Kris Kennaway : >>> >>> > > Peter speculated a problem when the world is built with -O2=20 >>> (with or >>> > > without -fno-strict-aliasing). I haven't been able to confirm=20= >>> this by >>> > > testing with a world built with -O, because I only have one=20 >>> working >>> > > amd64 package builder. >>> > >>> > Looks like building the port against an -O world has fixed the >>> > problems. This suggests a compiler bug with -O2 on amd64. >>> >>> I "hope" this is the case, not only on amd64. Background: I see=20 >>> coredumps >>> of gst-register on my system (x86). I've recompiled all ports, with=20= >>> and >>> without -Os, with and without -fno-strict-aliasing, but it still >>> segfaults. I also recompiled world with "-Os -fno-strict-aliasing"=20= >>> instead >>> of my usual "-Os". I haven't tested plain "-O" for the world yet,=20 >>> but I >>> think the problem is somewhere in the system libs... >>> >>> Bye, >>> Alexander. >> >> Some more information : >> gst-register coredumps if gstreamer-plugins is compiled with=20 >> CPUTYPE=3Dp4. >> eclipse also coredumps if gtk2 is compiled with CPUTYPE=3Dp4. >> Both ports don't depend on optimization level (-O2 or -O). > > gstreamer-plugins is weird. > > Crash: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > CPUTYPE?=3Dathlon-xp > CFLAGS=3D -O -pipe > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > No crash: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > #CPUTYPE?=3Dathlon-xp > CFLAGS=3D -O -pipe > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > No crash: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > CPUTYPE?=3Dathlon-xp > CFLAGS=3D -O2 -pipe > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > No crash: > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > Add '-fgcse' in gstreamer-plugins and it will fix everything for=20 > athlon-xp, but not p4. The '-fgcse' is automatic add in when you use=20= > -O2, so it's why it doesn't crash with -O2. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > I personal have no idea if it's bug in FreeBSD or gstreamer-plugins,=20= > but there is no issue if it's in Linux. > > On another note, there has different thread in freebsd-threads about=20= > 'SSE vs. stack alignment vs. pthread'. It included a libc patch that=20= > fix for an app for SSE and 16-byte aligned stuff on p4. > > Cheers, > Mezz The crash is also only from one plugin from gstreamer-plugins, modplug.=20= And modplug isn't *really* needed. Why don't we just get rid of modplug=20= and and a optional knob for it? This will solve everyone's problem with it. Michael > >> Anthony. > > > --=20 > mezz7@cox.net - mezz@FreeBSD.org > FreeBSD GNOME Team > http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org > _______________________________________________ > freebsd-amd64@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-amd64 > To unsubscribe, send any mail to=20 > "freebsd-amd64-unsubscribe@freebsd.org" --Apple-Mail-1-187981737 content-type: application/pgp-signature; x-mac-type=70674453; name=PGP.sig content-description: This is a digitally signed message part content-disposition: inline; filename=PGP.sig content-transfer-encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iD8DBQFBvzIRn4uqfTwEb9YRAtevAKCSbCLkSQetgVj6p66dKHGzQFB8DgCdFP48 reLVfbjXB71rE5e74E7tMww= =MrEM -----END PGP SIGNATURE----- --Apple-Mail-1-187981737--