From owner-freebsd-ports@FreeBSD.ORG Tue Apr 30 15:25:37 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id A570B588 for ; Tue, 30 Apr 2013 15:25:37 +0000 (UTC) (envelope-from dim@freebsd.org) Received: from tensor.andric.com (tensor.andric.com [IPv6:2001:7b8:3a7:1:2d0:b7ff:fea0:8c26]) by mx1.freebsd.org (Postfix) with ESMTP id 6C37F18AA for ; Tue, 30 Apr 2013 15:25:37 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::1113:933:e0bc:5713] (unknown [IPv6:2001:7b8:3a7:0:1113:933:e0bc:5713]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id ABD9E5C45; Tue, 30 Apr 2013 17:25:35 +0200 (CEST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) Subject: Re: firefox build broken under clang 3.3 From: Dimitry Andric In-Reply-To: Date: Tue, 30 Apr 2013 17:25:22 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <230B0687-FD64-4BC0-8EB6-D3D6ACD9CC3F@freebsd.org> References: <20130419020021.GA16918@test.yahoo.com> <51716917.90101@smeets.im> <517187B9.40106@smeets.im> To: Brandon Gooch X-Mailer: Apple Mail (2.1503) Cc: kit , freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Apr 2013 15:25:37 -0000 On Apr 30, 2013, at 05:28, Brandon Gooch = wrote: ... > Thanks for fixing the build issues. >=20 > Now, I've built Firefox with Clang, but the darn thing segfaults at > the drop of a hat: >=20 > $ gdb /usr/local/bin/firefox firefox.core > ... > (gdb) bt > #0 0x00000008011eefaa in thr_kill () from /lib/libc.so.7 > #1 0x00000008024d254d in XRE_InstallX11ErrorHandler () > from /usr/local/lib/firefox/libxul.so > #2 0x0000000800f74116 in swapcontext () from /lib/libthr.so.3 > #3 0x0000000800f73d39 in sigaction () from /lib/libthr.so.3 > #4 0x00007ffffffff193 in ?? () > #5 0x0000000800f73c20 in sigaction () from /lib/libthr.so.3 > Previous frame inner to this frame (corrupt stack?) >=20 > Rebuilding with debugging symbols provides no further insight, as that > seems to provide a work-around for whatever the root cause may be > (i.e. no more segfaults). >=20 > Are any of you seeing something similar? Which exact version of head do you have, and which version(s) of ports? = Are you running WITH_NEW_XORG or not? In any case, I have just built the latest Firefox from ports, with clang = 3.3, and I see no issues at all. At least with approximately 10 minutes = of browsing, and visiting a varied bunch of sites. I do have it built = with debug info, but without cranking down the optimization level to -O0 = (which is what bsd.port.mk seems to do, unfortunately). I will rebuild it again, without any debug info, to see if that makes = any difference. I don't think it will, though...