From owner-freebsd-gecko@freebsd.org Sat Aug 8 23:46:48 2015 Return-Path: Delivered-To: freebsd-gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 399DD9B73E4 for ; Sat, 8 Aug 2015 23:46:48 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 1CEB977 for ; Sat, 8 Aug 2015 23:46:48 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 1C12D9B73E3; Sat, 8 Aug 2015 23:46:48 +0000 (UTC) Delivered-To: gecko@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 02E809B73E2 for ; Sat, 8 Aug 2015 23:46:48 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: from vfemail.net (ninezero.vfemail.net [96.30.253.190]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A262F73 for ; Sat, 8 Aug 2015 23:46:47 +0000 (UTC) (envelope-from jbeich@freebsd.org) Received: (qmail 62060 invoked by uid 89); 8 Aug 2015 23:46:38 -0000 Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Aug 2015 23:46:38 -0000 Received: (qmail 62040 invoked by uid 89); 8 Aug 2015 23:46:20 -0000 Received: by simscan 1.3.1 ppid: 62035, pid: 62038, t: 0.0026s scanners:none Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62) by FreeQueue with SMTP; 8 Aug 2015 23:46:20 -0000 Received: (qmail 13702 invoked by uid 89); 8 Aug 2015 23:46:20 -0000 Received: by simscan 1.4.0 ppid: 13654, pid: 13690, t: 0.5351s scanners:none Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27) by 172.16.100.62 with ESMTPA; 8 Aug 2015 23:46:20 -0000 From: Jan Beich To: Konstantin Belousov Cc: gecko@freebsd.org Subject: Re: firefox 40 crashes References: <20150808102223.GZ2072@kib.kiev.ua> Date: Sun, 09 Aug 2015 01:46:03 +0200 In-Reply-To: <20150808102223.GZ2072@kib.kiev.ua> (Konstantin Belousov's message of "Sat, 8 Aug 2015 13:22:23 +0300") Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: freebsd-gecko@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Gecko Rendering Engine issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Aug 2015 23:46:48 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Konstantin Belousov writes: > I rushed to upgrade the firefox port due to reported pdf issues, and > I get a source of serious troubles. All this happens on the up to date > stable/10 amd64 machine, all ports are from HEAD and also up to date. Even if I did update to 39.0.3 which only fixed pdf issues this would still came up in less than a week. 40.0 official announcment is scheduled for 2015-08-11 when new vulnerabilities would be disclosed. The release candidate currently used will likely be the final version. If you rush for security fixes it's good to have more of them, right? > Updated firefox crashes randomly, usually in several minutes after the > startup. I ensured that there is no ABI-incompatible libraries linked > or loaded by the binary (e.g. libc++ and libstdc++, lib/compat/pkg- > originated libs etc). The dumped core' backtrace shows that there was > something wrong in libxul.so, so I enabled debugging in the ports > options and recompiled the firefox. > > Now, the browser does not even starts. The following is printed on > the startup: I don't recommend using DEBUG option. It does too much (sanity checks, online backtrace, non-optimized codepaths, tampers CFLAGS, debug symbols, etc) which makes firefox too verbose with false positives and known issues mixed in. Some debugging features maybe unstable on FreeBSD. Better manually add symbols with the following in make.conf (or Makefile.lo= cal) STRIP =3D # empty CFLAGS +=3D -g -fno-omit-frame-pointer OPTIONS_UNSET +=3D OPTIMIZED_CFLAGS As for the crash I suspect OMTC related to our use of system cairo which is not tested upstream. In the past system version caused issues like broken build, rendering artifacts and runtime warnings. So, try # www/firefox/Makefile.local USE_MOZILLA +=3D -cairo # use bundled cairo with and without the following patch (or just tweak pref in about:config) =2D-- modules/libpref/moz.build.orig 2015-08-06 22:39:34 UTC +++ modules/libpref/moz.build @@ -42,5 +42,6 @@ FINAL_LIBRARY =3D 'xul' =20 DEFINES['OS_ARCH'] =3D CONFIG['OS_ARCH'] DEFINES['MOZ_WIDGET_TOOLKIT'] =3D CONFIG['MOZ_WIDGET_TOOLKIT'] +DEFINES['MOZ_TREE_CAIRO'] =3D CONFIG['MOZ_TREE_CAIRO'] =20 FAIL_ON_WARNINGS =3D True =2D-- modules/libpref/init/all.js.orig 2015-08-06 22:39:34 UTC +++ modules/libpref/init/all.js @@ -4052,7 +4052,12 @@ pref("layers.max-active", -1); pref("layers.tiles.adjust", true); =20 // Set the default values, and then override per-platform as needed +#ifdef MOZ_TREE_CAIRO pref("layers.offmainthreadcomposition.enabled", true); +#else +// OMTC causes frequent crashes with system cairo +pref("layers.offmainthreadcomposition.enabled", false); +#endif // Compositor target frame rate. NOTE: If vsync is enabled the compositor // frame rate will still be capped. // -1 -> default (match layout.frame_rate or 60 FPS) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQF8BAEBCgBmBQJVxpS7XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3borsIAL9Mj3baHRe8eTt66nQqa3Ih gp+JC1CSoegtI3d1o88UjvVFY1DbhuitzhLiqLIqoEG8/8Yt55GFDnRd3vTpXIML Ujbq8ZEGQt2Hl0HNU6vrSXtLw2aQV0p03YpV+j8/xCyfBq5Xe8EbPYb3B4iy0n39 gKwcu16/Tc0ivUXLR2sB09I7g+zUqPpQfn1Y7ujftEuH740ls+uyy/x6mq7AacZb trOtkc35X9PyF4gqqDqcH0fnIB9FFYhl4Aa/GOAkUMNCpZKk7lzIbsDmQ6bbItEm RmkcB7PPf3y6N4Fqjl3lgW+vB0QFlVH1e2TD9NyF0hHgLujH9J4IZ8RSCm09XI4= =cI/x -----END PGP SIGNATURE----- --=-=-=--