Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 600676 - >=www-client/firefox-45.8.0 fails install phase (Error while running startup cache precompilation)
Summary: >=www-client/firefox-45.8.0 fails install phase (Error while running startup ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: IA64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL: https://bugs.gentoo.org/703538
Whiteboard:
Keywords: PATCH, REGRESSION
Depends on: 576922
Blocks:
  Show dependency tree
 
Reported: 2016-11-24 17:27 UTC by Émeric Maschino
Modified: 2020-10-10 17:43 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
bzip2-compressed build.log (build.log.bz2,156.90 KB, application/x-bzip)
2016-11-24 17:27 UTC, Émeric Maschino
Details
environment (environment,219.48 KB, text/plain)
2016-11-24 17:28 UTC, Émeric Maschino
Details
build.log (build.log.tar.bz2,182.56 KB, application/x-bzip)
2017-01-30 22:31 UTC, ilovekiruna
Details
Backtrace of FF 52.0.1-r1 segmentation fault while running ff/dist/bin/xpcshell (gdb.txt,11.56 KB, text/plain)
2017-03-28 19:26 UTC, Émeric Maschino
Details
Upstream bug #1351071: Get rit of pre-generated startup cache (bug1351071-Get-rid-of-pre-generated-startup-cache.patch,6.29 KB, patch)
2018-06-26 19:57 UTC, Émeric Maschino
Details | Diff
Backtrace of FF 52 ESR: js::jit::InitProcessExecutableMemory() failed in XPCOMInit.cpp (gdb.txt,17.14 KB, text/plain)
2018-06-26 20:03 UTC, Émeric Maschino
Details
ProcessExecutableMemory.cpp: Fix virtual address length on ia64 (ProcessExecutableMemory.cpp-fix-virtual-address-length-on-ia64.patch,2.37 KB, patch)
2020-04-21 17:50 UTC, Émeric Maschino
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Émeric Maschino 2016-11-24 17:27:32 UTC
Created attachment 454244 [details]
bzip2-compressed build.log

Hi,

While trying to emerge firefox-50.0 on my ia64 workstation, install phase fails with:

Executing /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/packager.py", line 415, in <module>
    main()
  File "/var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/packager.py", line 409, in main
    args.source, gre_path, base)
  File "/var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/toolkit/mozapps/installer/packager.py", line 166, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/var/tmp/portage/www-client/firefox-50.0/work/firefox-50.0/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation

This is a regression from firefox-49.0.

It's unclear to me what's really going and failing. Please let me know how I can help diagnose this error further.

Thanks,

     Émeric
Comment 1 Émeric Maschino 2016-11-24 17:28:28 UTC
Created attachment 454246 [details]
environment
Comment 2 Émeric Maschino 2016-11-24 17:29:01 UTC
emerge --info output:

Portage 2.3.0 (python 3.4.3-final-0, default/linux/ia64/13.0/desktop/gnome/systemd, gcc-4.9.4, glibc-2.22-r4, 4.1.15-gentoo-r1 ia64)
=================================================================
System uname: Linux-4.1.15-gentoo-r1-ia64-Madison-with-gentoo-2.2
KiB Mem:    24984848 total,  23294480 free
KiB Swap:     524272 total,    524272 free
Timestamp of repository gentoo: Wed, 23 Nov 2016 20:30:01 +0000
sh bash 4.3_p48
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p48::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.5.4::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

my_ebuilds
    location: /var/lib/layman/my_ebuilds
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="ia64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="ia64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -mtune=itanium2"
CHOST="ia64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=itanium2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -mtune=itanium2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -mtune=itanium2"
GENTOO_MIRRORS="ftp://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvdr eds encode evo exif fam firefox flac fortran gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk ia64 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret mad mng modules mp3 mp4 mpeg nautilus ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt3support qt4 readline sdl session spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wayland wxwidgets xattr xcb xml xv xvid zlib" ALSA_CARDS="fm801" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="radeon fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Émeric Maschino 2016-11-24 17:31:06 UTC
emerge -pqv output:

[ebuild     U ] www-client/firefox-50.0 [49.0] USE="dbus gmp-autoupdate hwaccel jemalloc jit pulseaudio skia startup-notification -bindist -custom-cflags (-custom-optimization) -debug -gtk2 -hardened (-neon) (-pgo) (-selinux) (-system-cairo) -system-harfbuzz -system-icu -system-jpeg -system-libevent -system-libvpx -system-sqlite {-test} (-wifi)" L10N="fr -ach -af -an -ar -as -ast -az -be -bg -bn-BD -bn-IN -br -bs -ca -cak -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy -id -is -it -ja -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW"
Comment 4 ilovekiruna 2017-01-30 22:24:52 UTC
Bug also present for me in Gentoo hardened on amd64 for firefox 51.0:
Executing /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Traceback (most recent call last):
  File "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/installer/packager.py", line 415, in <module>
    main()
  File "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/installer/packager.py", line 409, in main
    args.source, gre_path, base)
  File "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/installer/packager.py", line 166, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/python/mozbuild/mozpack/errors.py", line 103, in fatal
    self._handle(self.FATAL, msg)
  File "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/python/mozbuild/mozpack/errors.py", line 98, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
make[1]: *** [/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/installer/packager.mk:41: stage-package] Error 1
make[1]: Leaving directory '/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/browser/installer'
make: *** [/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/browser/build.mk:21: install] Error 2

emerge --info =www-client/firefox-51.0
Portage 2.3.3 (python 3.4.5-final-0, hardened/linux/amd64/selinux, gcc-4.9.4, glibc-2.23-r3, 4.7.10-hardenedwithout_RAP x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.7.10-hardenedwithout_RAP-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.70GHz-with-gentoo-2.3
KiB Swap:    4194300 total,   4100716 free
Timestamp of repository gentoo: Mon, 30 Jan 2017 22:00:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.27 p1.0) 2.27
app-shells/bash:          4.3_p48-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.4::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local-crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 0

brother-overlay
    location: /var/lib/layman/brother-overlay
    masters: gentoo
    priority: 1

games-overlay
    location: /var/lib/layman/games-overlay
    masters: gentoo
    priority: 2

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 3

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 4

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 5

das-labor
    location: /var/lib/layman/das-labor
    masters: gentoo
    priority: 6

Dwarf-Planet
    location: /var/lib/layman/Dwarf-Planet
    masters: gentoo
    priority: 7

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ http://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="sv_SE.utf8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl acpi afs alsa amd64 berkdb bluetooth bzip2 cli cracklib crypt css cups cxx dbus dri dvd dvdr exif ffmpeg gdbm hardened iconv ipv6 justify kerberos latex lm_sensors modules mp3 mp4 mpeg multilib ncurses nls nptl open_perms openmp pam pax_kernel pcre peer_perms pie plasma policykit pulseaudio raw readline scanner seccomp selinux semantic-desktop session sound ssl ssp svg tcpd theora ubac udev unconfined unicode urandom v4l video wifi wmf x264 xattr xinerama xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" L10N="de bn-IN bn-BD sv en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-mimizer nlpsolver" LINGUAS="de de_DE sv en_GB sv_SE en bn bn_IN" NETBEANS_MODULES="php profiler webcommon websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev glint intel v4l vesa" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 5 ilovekiruna 2017-01-30 22:31:21 UTC
Created attachment 461906 [details]
build.log
Comment 6 Jory A. Pratt gentoo-dev 2017-01-31 01:29:14 UTC
(In reply to ilovekiruna from comment #4)
> Bug also present for me in Gentoo hardened on amd64 for firefox 51.0:
> Executing
> /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/
> xpcshell -g
> /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/ -a
> /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/dist/bin/ -f
> /var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/
> installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
> Traceback (most recent call last):
>   File
> "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/
> installer/packager.py", line 415, in <module>
>     main()
>   File
> "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/
> installer/packager.py", line 409, in main
>     args.source, gre_path, base)
>   File
> "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/
> installer/packager.py", line 166, in precompile_cache
>     errors.fatal('Error while running startup cache precompilation')
>   File
> "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/python/mozbuild/
> mozpack/errors.py", line 103, in fatal
>     self._handle(self.FATAL, msg)
>   File
> "/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/python/mozbuild/
> mozpack/errors.py", line 98, in _handle
>     raise ErrorMessage(msg)
> mozpack.errors.ErrorMessage: Error: Error while running startup cache
> precompilation
> make[1]: ***
> [/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/toolkit/mozapps/
> installer/packager.mk:41: stage-package] Error 1
> make[1]: Leaving directory
> '/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/ff/browser/
> installer'
> make: ***
> [/var/tmp/portage/www-client/firefox-51.0/work/firefox-51.0/browser/build.mk:
> 21: install] Error 2
> 
> emerge --info =www-client/firefox-51.0
> Portage 2.3.3 (python 3.4.5-final-0, hardened/linux/amd64/selinux,
> gcc-4.9.4, glibc-2.23-r3, 4.7.10-hardenedwithout_RAP x86_64)
> =================================================================
>                          System Settings
> =================================================================
> System uname:
> Linux-4.7.10-hardenedwithout_RAP-x86_64-Intel-R-_Core-TM-_i7-4800MQ_CPU_@_2.
> 70GHz-with-gentoo-2.3
> KiB Swap:    4194300 total,   4100716 free
> Timestamp of repository gentoo: Mon, 30 Jan 2017 22:00:01 +0000
> sh bash 4.3_p48-r1
> ld GNU ld (Gentoo 2.27 p1.0) 2.27
> app-shells/bash:          4.3_p48-r1::gentoo
> dev-java/java-config:     2.2.0-r3::gentoo
> dev-lang/perl:            5.24.1_rc4::gentoo
> dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
> dev-util/cmake:           3.7.2::gentoo
> dev-util/pkgconfig:       0.28-r2::gentoo
> sys-apps/baselayout:      2.3::gentoo
> sys-apps/openrc:          0.22.4::gentoo
> sys-apps/sandbox:         2.10-r1::gentoo
> sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
> sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
> sys-devel/binutils:       2.27::gentoo
> sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo
> sys-devel/gcc-config:     1.7.3::gentoo
> sys-devel/libtool:        2.4.6-r2::gentoo
> sys-devel/make:           4.2.1::gentoo
> sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
> sys-libs/glibc:           2.23-r3::gentoo
> Repositories:
> 
> gentoo
>     location: /usr/portage
>     sync-type: rsync
>     sync-uri: rsync://rsync.gentoo.org/gentoo-portage
>     priority: -1000
> 
> local-crossdev
>     location: /usr/local/portage-crossdev
>     masters: gentoo
>     priority: 0
> 
> brother-overlay
>     location: /var/lib/layman/brother-overlay
>     masters: gentoo
>     priority: 1
> 
> games-overlay
>     location: /var/lib/layman/games-overlay
>     masters: gentoo
>     priority: 2
> 
> science
>     location: /var/lib/layman/science
>     masters: gentoo
>     priority: 3
> 
> gamerlay
>     location: /var/lib/layman/gamerlay
>     masters: gentoo
>     priority: 4
> 
> kde
>     location: /var/lib/layman/kde
>     masters: gentoo
>     priority: 5
> 
> das-labor
>     location: /var/lib/layman/das-labor
>     masters: gentoo
>     priority: 6
> 
> Dwarf-Planet
>     location: /var/lib/layman/Dwarf-Planet
>     masters: gentoo
>     priority: 7
> 
> ACCEPT_KEYWORDS="amd64"
> ACCEPT_LICENSE="* -@EULA"
> CBUILD="x86_64-pc-linux-gnu"
> CFLAGS="-O2 -pipe"
> CHOST="x86_64-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc
> /usr/share/config /usr/share/gnupg/qualified.txt
> /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d
> /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild
> /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d
> /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
> CXXFLAGS="-O2 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FCFLAGS="-O2 -pipe"
> FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks
> ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs
> protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn
> unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
> FFLAGS="-O2 -pipe"
> GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
> ftp://mirror.leaseweb.com/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/
> http://mirror.netcologne.de/gentoo/
> ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
> LANG="sv_SE.utf8"
> LC_ALL=""
> LDFLAGS="-Wl,-O1 -Wl,--as-needed"
> MAKEOPTS="-j9"
> PKGDIR="/usr/portage/packages"
> PORTAGE_CONFIGROOT="/"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times
> --omit-dir-times --compress --force --whole-file --delete --stats
> --human-readable --timeout=180 --exclude=/distfiles --exclude=/local
> --exclude=/packages --exclude=/.git"
> PORTAGE_TMPDIR="/var/tmp"
> USE="X acl acpi afs alsa amd64 berkdb bluetooth bzip2 cli cracklib crypt css
> cups cxx dbus dri dvd dvdr exif ffmpeg gdbm hardened iconv ipv6 justify
> kerberos latex lm_sensors modules mp3 mp4 mpeg multilib ncurses nls nptl
> open_perms openmp pam pax_kernel pcre peer_perms pie plasma policykit
> pulseaudio raw readline scanner seccomp selinux semantic-desktop session
> sound ssl ssp svg tcpd theora ubac udev unconfined unicode urandom v4l video
> wifi wmf x264 xattr xinerama xtpax xvid zlib" ABI_X86="64"
> ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x
> ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3
> trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core
> authz_core socache_shmcb unixd actions alias auth_basic authn_alias
> authn_anon authn_dbm authn_default authn_file authz_dbm authz_default
> authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid
> dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache
> filter headers include info log_config logio mem_cache mime mime_magic
> negotiation rewrite setenvif speling status unique_id userdir usertrack
> vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables
> krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load
> memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext
> popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc"
> GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt
> gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore
> rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox
> ubx" INPUT_DEVICES="synaptics evdev keyboard mouse" KERNEL="linux" L10N="de
> bn-IN bn-BD sv en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216
> lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console
> presenter-mimizer nlpsolver" LINGUAS="de de_DE sv en_GB sv_SE en bn bn_IN"
> NETBEANS_MODULES="php profiler webcommon websvccommon"
> OFFICE_IMPLEMENTATION="libreoffice" PYTHON_SINGLE_TARGET="python2_7"
> PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU"
> VIDEO_CARDS="dummy fbdev glint intel v4l vesa" XTABLES_ADDONS="quota2 psd
> pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee
> tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
> Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK,
> PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS,
> PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

I am aware of an issue in hardened, I have seen it myself. I reboot the system and it compiles fine. I have not been able to debug the issue yet but hopefully will have time soon.
Comment 7 ilovekiruna 2017-01-31 19:40:09 UTC
Hi Jory,

a reboot did not fix it for me. ow can I help you debugging the issue?

Thanks a lot,

Patrick
Comment 8 Jory A. Pratt gentoo-dev 2017-02-04 18:27:08 UTC
(In reply to Émeric Maschino from comment #1)
> Created attachment 454246 [details]
> environment

Please provide what pax features you are currently using in running kernel.
Comment 9 Émeric Maschino 2017-02-09 08:40:15 UTC
(In reply to Jory A. Pratt from comment #8)
> 
> Please provide what pax features you are currently using in running kernel.

None. I'm not running Gentoo hardened.

     Émeric
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2017-03-22 03:11:24 UTC
Hi Emeric -- I expect firefox-52.0 causes more issues on you than this, but in case you are somehow able to get past any potential skia issues and you still see this error a "cd ${S}" and running the following by hand may provide additional info (especially with gdb):

ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Comment 11 MMU 2017-03-23 16:38:53 UTC
Hello Ian,

I'm running on the hardened profile and got some entries in /var/log/messages from your last request.
The problem only appears on hardened when I activate the pgo useflag, without it compiles fine.


kernel: grsec: denied RWX mprotect of <anonymous mapping> by /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/bin/xpcshell[xpcshell:29844] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:22681] uid/euid:0/0 gid/egid:0/0

kernel: xpcshell[29844]: segfault at 0 ip 00000361ed32340e sp 000003aab8c9c460 error 6 in libxul.so[361e8a2f000+622b000]

kernel: grsec: Segmentation fault occurred at            (nil) in /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/bin/xpcshell[xpcshell:29844] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:22681] uid/euid:0/0 gid/egid:0/0


I know that this messages are problem specific to a hardened kernel, so Emeric will probably have a different issue.
If needed I can create an additional bug report as it may not relate to Emerics problem.
Comment 12 Ian Stakenvicius (RETIRED) gentoo-dev 2017-03-23 20:45:15 UTC
(In reply to Marco Mundt from comment #11)
> Hello Ian,
> 
> I'm running on the hardened profile and got some entries in
> /var/log/messages from your last request.
> The problem only appears on hardened when I activate the pgo useflag,
> without it compiles fine.
> 
> 
> kernel: grsec: denied RWX mprotect of <anonymous mapping> by
> /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/
> bin/xpcshell[xpcshell:29844] uid/euid:0/0 gid/egid:0/0, parent
> /bin/bash[bash:22681] uid/euid:0/0 gid/egid:0/0
> 
> kernel: xpcshell[29844]: segfault at 0 ip 00000361ed32340e sp
> 000003aab8c9c460 error 6 in libxul.so[361e8a2f000+622b000]
> 
> kernel: grsec: Segmentation fault occurred at            (nil) in
> /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/ff/dist/
> bin/xpcshell[xpcshell:29844] uid/euid:0/0 gid/egid:0/0, parent
> /bin/bash[bash:22681] uid/euid:0/0 gid/egid:0/0
> 
> 
> I know that this messages are problem specific to a hardened kernel, so
> Emeric will probably have a different issue.
> If needed I can create an additional bug report as it may not relate to
> Emerics problem.


As I recall there are actually multiple issues that can cause havoc with PGO on hardened; I'm going to leave this to bircoph to address but it's possible that we are simply going to have to mask USE=pgo on hardened profiles.

Yeah, Emeric's issue is likely going to be different as its a different platform entirely.
Comment 13 Émeric Maschino 2017-03-25 18:53:30 UTC
(In reply to Ian Stakenvicius from comment #10)
> Hi Emeric -- I expect firefox-52.0 causes more issues on you than this, but
> in case you are somehow able to get past any potential skia issues and you
> still see this error a "cd ${S}" and running the following by hand may
> provide additional info (especially with gdb):
> 
> ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f
> toolkit/mozapps/installer/precompile_cache.js -e
> precompile_startupcache("resource://gre/");

Hi Ian,

No problem with skia it seems. But still the same issue with FF 52.0.1-r1.

Are you sure about the command line you would like me to try? As is, I'm getting an error because of unexpected character near (. I thus end up escaping ( and ) of precompile_startupcache with \( and \). So your above command became:

ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache\("resource://gre/"\);

Is this expected?

Then the command was failing with /usr/lib/firefox/libxul.so: version `xul52' not found. Obviously, since I have FF 45 ESR right now in /usr/lib/firefox path. So I had to LD_PRELOAD="ff/dist/bin/libxul.so ff/dist/bin/libmozgtk.so" to make it happy. This ends up with:

[2306] ###!!! ABORT: js::jit::InitProcessExecutableMemory() failed: file /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/xpcom/build/XPCOMInit.cpp, line 709
[2306] ###!!! ABORT: js::jit::InitProcessExecutableMemory() failed: file /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/xpcom/build/XPCOMInit.cpp, line 709
Segmentation fault

This line says:

  // Initialize the JS engine.
  const char* jsInitFailureReason = JS_InitWithFailureDiagnostic();
  if (jsInitFailureReason) {
    NS_RUNTIMEABORT(jsInitFailureReason); <======= here
  }
  sInitializedJS = true;

Running the same command from within gdb was problematic:

LD_PRELOAD="ff/dist/bin/libxul.so ff/dist/bin/libmozgtk.so" gdb --args ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache\("resource://gre/"\);

simply puts Segmentation fault in the terminal window. gdb isn't started at all. Do you have any idea how should I put all this to make it work from gdb?

     Émeric
Comment 14 Ian Stakenvicius (RETIRED) gentoo-dev 2017-03-26 03:43:49 UTC
(In reply to Émeric Maschino from comment #13)
> (In reply to Ian Stakenvicius from comment #10)
> > Hi Emeric -- I expect firefox-52.0 causes more issues on you than this, but
> > in case you are somehow able to get past any potential skia issues and you
> > still see this error a "cd ${S}" and running the following by hand may
> > provide additional info (especially with gdb):
> > 
> > ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f
> > toolkit/mozapps/installer/precompile_cache.js -e
> > precompile_startupcache("resource://gre/");
> 
> Hi Ian,
> 
> No problem with skia it seems. But still the same issue with FF 52.0.1-r1.
> 
> Are you sure about the command line you would like me to try? As is, I'm
> getting an error because of unexpected character near (. I thus end up
> escaping ( and ) of precompile_startupcache with \( and \). So your above
> command became:
> 
> ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f
> toolkit/mozapps/installer/precompile_cache.js -e
> precompile_startupcache\("resource://gre/"\);
> 
> Is this expected?
> 
> Then the command was failing with /usr/lib/firefox/libxul.so: version
> `xul52' not found. Obviously, since I have FF 45 ESR right now in
> /usr/lib/firefox path. So I had to LD_PRELOAD="ff/dist/bin/libxul.so
> ff/dist/bin/libmozgtk.so" to make it happy. This ends up with:
> 
> [2306] ###!!! ABORT: js::jit::InitProcessExecutableMemory() failed: file
> /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/xpcom/
> build/XPCOMInit.cpp, line 709
> [2306] ###!!! ABORT: js::jit::InitProcessExecutableMemory() failed: file
> /var/tmp/portage/www-client/firefox-52.0.1-r1/work/firefox-52.0.1/xpcom/
> build/XPCOMInit.cpp, line 709
> Segmentation fault
> 
> This line says:
> 
>   // Initialize the JS engine.
>   const char* jsInitFailureReason = JS_InitWithFailureDiagnostic();
>   if (jsInitFailureReason) {
>     NS_RUNTIMEABORT(jsInitFailureReason); <======= here
>   }
>   sInitializedJS = true;
> 
> Running the same command from within gdb was problematic:
> 
> LD_PRELOAD="ff/dist/bin/libxul.so ff/dist/bin/libmozgtk.so" gdb --args
> ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f
> toolkit/mozapps/installer/precompile_cache.js -e
> precompile_startupcache\("resource://gre/"\);
> 
> simply puts Segmentation fault in the terminal window. gdb isn't started at
> all. Do you have any idea how should I put all this to make it work from gdb?
> 
>      Émeric


Unfortunately no, I don't.

The xul52 not found error is commonly caused by sys-apps/sandbox >= 2.11 , but iirc you're running 2.10 so that shouldn't be causing this.  Why the segmentation fault is occurring when the libs are being loaded, I'm not sure either, but if gdb can't even initialize this seems to be what's going on.  Try prepending LD_DEBUG=1 to the commandline to see if that spouts out anything of use?
Comment 15 Émeric Maschino 2017-03-28 19:25:25 UTC
(In reply to Ian Stakenvicius from comment #14)
> 
> The xul52 not found error is commonly caused by sys-apps/sandbox >= 2.11 ,
> but iirc you're running 2.10 so that shouldn't be causing this.

Nope, same xul52 error with =sys-apps/sandbox-2.11-r5 at runtime, not built time since sys-apps/sandbox >= 2.11 seems to be problematic with Mozilla binaries.

> Why the segmentation fault is occurring when the libs are being loaded, I'm
> not sure either, but if gdb can't even initialize this seems to be what's
> going on. Try prepending LD_DEBUG=1 to the commandline to see if that spouts
> out anything of use?

Well, 1 isn't a valid option for LD_VALUE ;-)

But it doesn't matter anymore, I was able to circumvent the problem. So I started gdb --args ff/dist/bin/xpcshell -g ff/dist/bin/ -a ff/dist/bin/ -f toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache\("resource://gre/"\); (still with backslash character to escape the parentheses and make bash happy) from a terminal. Then, from within gdb, I set exec-wrapper env 'LD_PRELOAD=ff/dist/bin/libxul.so ff/dist/bin/libmozgtk.so ff/dist/bin/libmozsqlite3.so ff/dist/bin/liblgpllibs.so' and ran the program. This allowed me to obtained the attached gdb.txt backtrace.

Is it helpful?

     Émeric
Comment 16 Émeric Maschino 2017-03-28 19:26:53 UTC
Created attachment 468534 [details]
Backtrace of FF 52.0.1-r1 segmentation fault while running ff/dist/bin/xpcshell
Comment 17 Émeric Maschino 2017-04-04 05:59:29 UTC
Wow, what has changed between FF ESR 45.7.0 and 45.8.0?

While 45.7.0 installs fine, 45.8.0 is now crashing with error while running startup cache precompilation.

     Émeric
Comment 18 Frédéric Barthelery 2017-04-20 23:14:56 UTC
I got this error again when building firefox-53.0
It looks like it's triggered on hardened kernel.

I can see in the ebuild that xpcshell is pax-marked in src_install(). However it seems to also be used during the build if the use flag pgo is set. Maybe this can be fixed by pax-marking it soooner (in src_compile).
Comment 19 Jason A. Donenfeld gentoo-dev 2017-07-03 20:27:32 UTC
I can confirm that this problem also exists on non-hardened toolchain and non-hardened kernel.
Comment 20 Jason A. Donenfeld gentoo-dev 2017-07-03 20:33:58 UTC
I see what's happening. This command runs:

/var/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/xpcshell -g /var/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -a /var/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/ff/dist/bin/ -f /var/tmp/portage/www-client/firefox-54.0/work/firefox-54.0/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");

And then eats up ram until the OOM killer comes. I have 64 gigs of ram. It certainly shouldn't be eating all of it.
Comment 21 Ian Stakenvicius (RETIRED) gentoo-dev 2017-07-04 00:09:45 UTC
Ok we need to triage things here a little better.

THIS bug is for failures related to the xpcshell call on ia64.  There is another, different bug related to the OOM-kill of the same command on other arches.  There is yet another one related to gcc-7.1, and still another one related to hardened.  Despite all issues occurring when the xpcshell command is executed, I expect the cause of each one is totally different and unrelated.
Comment 22 Jory A. Pratt gentoo-dev 2017-08-26 17:56:34 UTC
If you feel I have closed your bug and it is still a current issue, please reopen and update it completely. We will not work bugs that have no ebuild in tree any longer or can not be reproduced with a current system.

Thank You for your support and understanding
The Mozilla Team
Comment 23 Émeric Maschino 2018-06-20 20:19:15 UTC
(In reply to Ian Stakenvicius from comment #21)
> Ok we need to triage things here a little better.
> 
> THIS bug is for failures related to the xpcshell call on ia64.  There is
> another, different bug related to the OOM-kill of the same command on other
> arches.  There is yet another one related to gcc-7.1, and still another one
> related to hardened.  Despite all issues occurring when the xpcshell command
> is executed, I expect the cause of each one is totally different and
> unrelated.

Bug is still present with current =www-client/firefox-52.8.0.

So I had a look at it. Precompilation of startup cache segfaults because of:

Thread 1 "firefox" received signal SIGSEGV, Segmentation fault.
0x200000000e393581 in js::jit::AtomicOperations::storeSafeWhenRacy<double> (val=<optimized out>, addr=<optimized out>) at /var/tmp/portage/www-client/firefox-52.8.0/work/firefox-52.8.0esr/js/src/jit/none/AtomicOperations-none.h:104
104	    MOZ_CRASH();

Sounds familiar? Sure [1]. There seems to be no more AtomicOperations-feeling-lucky.h fallback for alpha, hppa, ia64 and sh arches. What's going on here? Do I have to once again send the patches in https://bugs.gentoo.org/576922#c24 to fix this issue on ia64 or is there another way to do it?

BTW, it's also likely that, once JIT atomic operations issue will be fixed, precompilation of startup cache might fail because of yet another problem that's currently hidden because of the JIT issue :-P

     Émeric


[1] https://bugs.gentoo.org/576922
Comment 24 Émeric Maschino 2018-06-26 19:57:26 UTC
Created attachment 537346 [details, diff]
Upstream bug #1351071: Get rit of pre-generated startup cache
Comment 25 Émeric Maschino 2018-06-26 20:03:45 UTC
Created attachment 537348 [details]
Backtrace of FF 52 ESR: js::jit::InitProcessExecutableMemory() failed in XPCOMInit.cpp
Comment 26 Émeric Maschino 2018-06-26 20:11:18 UTC
(In reply to Émeric Maschino from comment #23)
>
> Sounds familiar? Sure [1]. There seems to be no more
> AtomicOperations-feeling-lucky.h fallback for alpha, hppa, ia64 and sh
> arches. What's going on here? Do I have to once again send the patches in
> https://bugs.gentoo.org/576922#c24 to fix this issue on ia64 or is there
> another way to do it?

I've provided patch in https://bugs.gentoo.org/576922#c32 to bring back atomic to ia64 for FF 52 ESR.

> BTW, it's also likely that, once JIT atomic operations issue will be fixed,
> precompilation of startup cache might fail because of yet another problem
> that's currently hidden because of the JIT issue :-P

Exactly what I was fearing...

Attachment #537346 [details, diff] allows to remove pre-compilation of startup cache (apparently disabled in FF >= 55). So =www-client/firefox-52.8.0 installs fine, but then badly crashes at startup with the same error than during pre-compilation of startup cache when enabled. Please have a look at attachment #537348 [details] for details.

What can I do now?
Comment 27 Jory A. Pratt gentoo-dev 2019-03-31 20:06:36 UTC
Please feel free to reopen and update any bug report that can be duplicated with current esr builds, 60.x. If you feel your feature needs to be re looked at in any of these bugs reopen and update, please attach patches when appropriate. Thank you Mozilla Team
Comment 28 Émeric Maschino 2020-04-21 17:50:12 UTC
Created attachment 634028 [details, diff]
ProcessExecutableMemory.cpp: Fix virtual address length on ia64

Getting rid of the pre-generated startup cache was only a workaround to emerge Firefox.
Comment 29 Émeric Maschino 2020-04-21 17:58:14 UTC
(In reply to Émeric Maschino from comment #25)
> Created attachment 537348 [details]
> Backtrace of FF 52 ESR: js::jit::InitProcessExecutableMemory() failed in
> XPCOMInit.cpp

The same issue was recently fixed by slyfox in bug #703538.

In attachment #634028 [details, diff], I've simply reported Sergei's patch to Firefox 52 ESR codebase. It's fortunately still in portage tree, as newer Firefox versions cannot be emerged on ia64, as they require Rust and thus LLVM, none of them being available on ia64.

Can you integrate the patch to Firefox 52 ESR, please? It applies cleanly to =www-client/firefox-52.9.0.

Thanks,

     Émeric
Comment 30 Thomas Deutschmann (RETIRED) gentoo-dev 2020-04-21 18:18:36 UTC
No, <68 won't get any patches anymore. We will remove these versions, which are already masked for removal for a long time, next week.
Comment 31 Émeric Maschino 2020-04-21 18:36:09 UTC
(In reply to Thomas Deutschmann from comment #30)
> No, <68 won't get any patches anymore. We will remove these versions, which
> are already masked for removal for a long time, next week.

So I'll have to maintain a local repository as, besides Firefox, there's no working graphical web browser: everything Webkit-GTK based never worked on ia64 and furthermore Webkit-GTK cannot be emerged anymore with the demise of Ruby on ia64.

Times are hard :-P