Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Aug 2015 01:46:03 +0200
From:      Jan Beich <jbeich@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        gecko@freebsd.org
Subject:   Re: firefox 40 crashes
Message-ID:  <tws9-bays-wny@FreeBSD.org>
In-Reply-To: <20150808102223.GZ2072@kib.kiev.ua> (Konstantin Belousov's message of "Sat, 8 Aug 2015 13:22:23 %2B0300")
References:  <20150808102223.GZ2072@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Konstantin Belousov <kostikbel@gmail.com> 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-----
--=-=-=--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?tws9-bays-wny>