From owner-freebsd-gecko@freebsd.org Sun Aug 9 11:20:24 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 91AEF9987D1 for ; Sun, 9 Aug 2015 11:20:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) 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 75CF57B0 for ; Sun, 9 Aug 2015 11:20:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 74EBE9987D0; Sun, 9 Aug 2015 11:20:24 +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 5C3E49987CF for ; Sun, 9 Aug 2015 11:20:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F417B7AD; Sun, 9 Aug 2015 11:20:23 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id t79BKG8S004577 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 9 Aug 2015 14:20:17 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua t79BKG8S004577 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id t79BKGul004576; Sun, 9 Aug 2015 14:20:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 9 Aug 2015 14:20:16 +0300 From: Konstantin Belousov To: Jan Beich Cc: gecko@freebsd.org Subject: Re: firefox 40 crashes Message-ID: <20150809112016.GJ2072@kib.kiev.ua> References: <20150808102223.GZ2072@kib.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home 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: Sun, 09 Aug 2015 11:20:24 -0000 On Sun, Aug 09, 2015 at 01:46:03AM +0200, Jan Beich wrote: > 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.local) > > STRIP = # empty > CFLAGS += -g -fno-omit-frame-pointer > OPTIONS_UNSET += 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 += -cairo # use bundled cairo > > with and without the following patch (or just tweak pref in about:config) > > --- modules/libpref/moz.build.orig 2015-08-06 22:39:34 UTC > +++ modules/libpref/moz.build > @@ -42,5 +42,6 @@ FINAL_LIBRARY = 'xul' > > DEFINES['OS_ARCH'] = CONFIG['OS_ARCH'] > DEFINES['MOZ_WIDGET_TOOLKIT'] = CONFIG['MOZ_WIDGET_TOOLKIT'] > +DEFINES['MOZ_TREE_CAIRO'] = CONFIG['MOZ_TREE_CAIRO'] > > FAIL_ON_WARNINGS = True > --- 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); > > // 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) It seems that just flipping the layers.offmainthreadcomposition.enabled in the about:config is enough to get usable browser. It stays for a hour already, while before it dumped core in not more than 10 minutes.