From owner-freebsd-gnome@FreeBSD.ORG Sun Sep 4 15:19:32 2005 Return-Path: X-Original-To: gnome@freebsd.org Delivered-To: freebsd-gnome@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA8ED16A41F; Sun, 4 Sep 2005 15:19:32 +0000 (GMT) (envelope-from past@ebs.gr) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B2DF43D55; Sun, 4 Sep 2005 15:19:29 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id j84FJLID019976; Sun, 4 Sep 2005 18:19:21 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.200] (pptp.ebs.gr [10.1.1.200]) by ebs.gr (8.13.3/8.12.11) with ESMTP id j84FJKOS074595; Sun, 4 Sep 2005 18:19:21 +0300 (EEST) (envelope-from past@ebs.gr) Received: from 127.0.0.1 (AVG SMTP 7.0.344 [267.10.17]); Sun, 04 Sep 2005 18:19:15 +0300 Message-ID: <431B1073.3030707@ebs.gr> Date: Sun, 04 Sep 2005 18:19:15 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeremy Messenger References: <20050901233650.GE28854@dragon.roe.ch> <43181DFF.8080605@ebs.gr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: gnome@freebsd.org, Oleg Sharoiko , nlsn@free.fr, bug-followup@freebsd.org, Daniel Roethlisberger Subject: Re: ports/72014: Eclipse doesn't work (SigBus 10) if it has been built with GTK X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2005 15:19:33 -0000 Jeremy Messenger wrote: > On Fri, 02 Sep 2005 12:17:48 -0500, Jeremy Messenger wrote: > >> On Fri, 02 Sep 2005 04:40:15 -0500, Panagiotis Astithas >> wrote: >> >>> I'm forwarding this to the people who are responsible for this. >>> >>> Daniel Roethlisberger wrote: >>> >>>> I have just double checked on my pentium-m box, I can confirm that >>>> adding -mno-sse2 does solve the problem for me (at least as far as >>>> I can >>>> tell, as there is no definitive way to reproduce the problem). >>>> Compiling x11-toolkits/gtk20 with CPUTYPE?=pentium-m and CFLAGS=-O >>>> -pipe >>>> results in an unstable eclipse, while compiling gtk20 with the same >>>> CPUTYPE but CFLAGS=-O -pipe -mno-sse2 saves the day, giving me a stable >>>> eclipse. >>>> Can we add some kind of -mno-sse2 hack to the GTK port for the time >>>> being, or is there a better solution? >>> >>> >>> >>> Some background: >>> >>> In PR ports/72014 it was reported a long time ago that eclipse/gtk >>> crashes and this was tracked down to non-standard compiler >>> optimizations when building gtk. There have been similar bug reports >>> filed against the eclipse and gcc bug databases. Some gcc people >>> have tracked it down to incorrect stack alignment (see ports/72014 >>> for the pointers) and have received reports that using -mno-sse2 >>> fixed it. Daniel has verified that this seems to help our case also. >> >> >> It's a nice find the locate that SSE2 is causing the problem. >> Mono/gtk-sharp have the same problems and we always have to tell them >> to not tweak the CPUTYPE. After look at our PR and GCC's PRs, looks >> like might be either GCC or our libc bug. >> >>> Therefore the question is, should we force -mno-sse2 to the compiler >>> flags for the gtk ports? I would expect less bug reports from people >>> who compile gtk apps with non-standard CFLAGS, at least. >> >> >> It's good idea, I would like to add -mno-sse2 too. Here's patch, so >> let me know if I don't understand it correct or/and my English isn't >> right. > > > I have committed it in both MC and offical ports tree. > > Cheers, > Mezz Excellent, thanks! Now if someone who has reported this issue could verify that the updated gtk fixes ports/72014 we could close that, too. Thanks, Panagiotis