From owner-freebsd-current@FreeBSD.ORG Tue Dec 14 18:24:32 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C0D916A4CE; Tue, 14 Dec 2004 18:24:32 +0000 (GMT) Received: from lakermmtao07.cox.net (lakermmtao07.cox.net [68.230.240.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4C61643D2D; Tue, 14 Dec 2004 18:24:31 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao07.cox.net (InterMail vM.6.01.03.04 201-2131-111-106-20040729) with ESMTP id <20041214182430.HEQZ20686.lakermmtao07.cox.net@mezz.mezzweb.com>; Tue, 14 Dec 2004 13:24:30 -0500 Date: Tue, 14 Dec 2004 12:25:27 -0600 To: "Anthony Ginepro" 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> From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <1103030693.40763.10.camel@renaissance.homeip.net> User-Agent: Opera M2/7.54 (Linux, build 751) cc: freebsd-amd64@freebsd.org cc: Mikhail Teterin 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-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Dec 2004 18:24:32 -0000 On Tue, 14 Dec 2004 14:24:53 +0100, Anthony Ginepro wrote: > Le Mardi 14 décembre 2004 à 13:39 +0100, Alexander Leidinger a écrit : >> Zitat von Kris Kennaway : >> >> > > Peter speculated a problem when the world is built with -O2 (with or >> > > without -fno-strict-aliasing). I haven't been able to confirm this >> by >> > > testing with a world built with -O, because I only have one 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 >> coredumps >> of gst-register on my system (x86). I've recompiled all ports, with and >> without -Os, with and without -fno-strict-aliasing, but it still >> segfaults. I also recompiled world with "-Os -fno-strict-aliasing" >> instead >> of my usual "-Os". I haven't tested plain "-O" for the world yet, 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 CPUTYPE=p4. > eclipse also coredumps if gtk2 is compiled with CPUTYPE=p4. > Both ports don't depend on optimization level (-O2 or -O). gstreamer-plugins is weird. Crash: ======================= CPUTYPE?=athlon-xp CFLAGS= -O -pipe ======================= No crash: ======================= #CPUTYPE?=athlon-xp CFLAGS= -O -pipe ======================= No crash: ======================= CPUTYPE?=athlon-xp CFLAGS= -O2 -pipe ======================= No crash: ======================= Add '-fgcse' in gstreamer-plugins and it will fix everything for athlon-xp, but not p4. The '-fgcse' is automatic add in when you use -O2, so it's why it doesn't crash with -O2. ======================= I personal have no idea if it's bug in FreeBSD or gstreamer-plugins, but there is no issue if it's in Linux. On another note, there has different thread in freebsd-threads about 'SSE vs. stack alignment vs. pthread'. It included a libc patch that fix for an app for SSE and 16-byte aligned stuff on p4. Cheers, Mezz > Anthony. -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org