From owner-freebsd-gecko@FreeBSD.ORG Mon Apr 22 08:18:08 2013 Return-Path: Delivered-To: gecko@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 17AE9BF0 for ; Mon, 22 Apr 2013 08:18:08 +0000 (UTC) (envelope-from mi+thun@aldan.algebra.com) Received: from smtp.rcn.com (smtp.rcn.com [69.168.97.78]) by mx1.freebsd.org (Postfix) with ESMTP id C40C016E1 for ; Mon, 22 Apr 2013 08:18:07 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=2.0 cv=Q89QEvKa c=1 sm=0 a=sCkZyOwU0IjLO1BAXY68/A==:17 a=d8Isu0L9vBEA:10 a=YNqtyO0l_hcA:10 a=LaogzpLLAAAA:8 a=u6_z2cFzjPoA:10 a=M0U40xZYVtP8pv-3PsgA:9 a=wPNLvfGTeEIA:10 a=rrFHXSwDS-yCAQiW0lAA:9 a=_W_S_7VecoQA:10 a=KqDd4TtLbGKfp2XbHNIA:9 a=sOKxrc_Uve4A:10 a=sCkZyOwU0IjLO1BAXY68/A==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.mail=mi+thun@aldan.algebra.com; spf=neutral; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com header.from=mi+thun@aldan.algebra.com; sender-id=neutral Authentication-Results: smtp02.rcn.cmh.synacor.com smtp.user=anat; auth=pass (PLAIN) Received-SPF: neutral (smtp02.rcn.cmh.synacor.com: 173.63.211.146 is neither permitted nor denied by domain of aldan.algebra.com) Received: from [173.63.211.146] ([173.63.211.146:45555] helo=[192.168.1.8]) by smtp.rcn.com (envelope-from ) (ecelerity 2.2.3.49 r(42060/42061)) with ESMTPA id 5D/0B-02813-932F4715; Mon, 22 Apr 2013 04:18:01 -0400 Message-ID: <5174F238.6030704@aldan.algebra.com> Date: Mon, 22 Apr 2013 04:18:00 -0400 From: "Mikhail T." User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130209 Thunderbird/17.0.2 MIME-Version: 1.0 To: gecko@freebsd.org Subject: firefox crashes Content-Type: multipart/mixed; boundary="------------050305000400030202030307" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Apr 2013 08:18:08 -0000 This is a multi-part message in MIME format. --------------050305000400030202030307 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello! Firefox-20 would not build with the regular compiler, so I installed the shiny new gcc-4.8 This builds (though the attached patch is required -- at least, on i386), but dies on startup from "illegal instruction". If I start under gdb, instead of SIGILL, I see segmentation fault -- inside XRE_AddStaticComponent in libxul.so Using -safe-mode does not help. I tried switching to 17-esr, but seeing the same problem. The OS 8.2-STABLE/i386, running on a dual Opteron system. Any clues? Thanks! -mi --------------050305000400030202030307 Content-Type: text/plain; charset=KOI8-U; name="patch-llabs" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-llabs" --- xpcom/io/nsMultiplexInputStream.cpp 2013-03-26 18:18:07.000000000 -0400 +++ xpcom/io/nsMultiplexInputStream.cpp 2013-04-22 01:20:53.000000000 -0400 @@ -20,6 +20,6 @@ #include "nsIIPCSerializableInputStream.h" #include "mozilla/ipc/InputStreamUtils.h" -#include // for std::abs(int/long) -#include // for std::abs(float/double) +#include // for llabs(int/long) +#include // for llabs(float/double) using namespace mozilla::ipc; @@ -512,5 +512,5 @@ // See if we have enough data in the current stream. - if (std::abs(remaining) < streamPos) { + if (llabs(remaining) < streamPos) { rv = stream->Seek(NS_SEEK_END, remaining); NS_ENSURE_SUCCESS(rv, rv); @@ -520,5 +520,5 @@ remaining = 0; - } else if (std::abs(remaining) > streamPos) { + } else if (llabs(remaining) > streamPos) { if (i > oldCurrentStream || (i == oldCurrentStream && !oldStartedReadingCurrent)) { @@ -530,5 +530,5 @@ NS_ENSURE_SUCCESS(rv, rv); - int64_t newPos = streamPos + NS_MIN(avail, std::abs(remaining)); + int64_t newPos = streamPos + NS_MIN(avail, llabs(remaining)); rv = stream->Seek(NS_SEEK_END, -newPos); --------------050305000400030202030307--