Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 575176 - mail-client/thunderbird-38.6.0: errors.fatal('Error while running startup cache precompilation')
Summary: mail-client/thunderbird-38.6.0: errors.fatal('Error while running startup cac...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 20:34 UTC by Toralf Förster
Modified: 2017-08-26 17:57 UTC (History)
0 users

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


Attachments
gzip'ed build log (mail-client:thunderbird-38.6.0:20160219-192211.log.gz,204.50 KB, application/gzip)
2016-02-19 20:34 UTC, Toralf Förster
Details
non-hardened-environment (file_575176.txt,7.33 KB, text/plain)
2016-04-08 11:41 UTC, MT
Details
build error (non hardened profile) (test.txt,92.23 KB, text/plain)
2016-04-08 15:50 UTC, MT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2016-02-19 20:34:49 UTC
Created attachment 425936 [details]
gzip'ed build log

ES= -DBINPATH=bin -DRESPATH=bin -DAB=en -DMOZ_ICU_VERSION=52 -DMOZ_NATIVE_ICU -DMOZ_SHARED_ICU -DMOZ_ICU_DBG_SUFFIX= \
        --format omni \
        --removals /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mail/installer/removed-files.in \
        --ignore-errors \
         \
         \
         \
        --optimizejars \
         \
        package-manifest ../../dist ../../dist/thunderbird \
        --non-resource defaults/messenger/mailViews.dat
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:243: Missing file(s): bin/components/mozldap.xpt
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:245: Missing file(s): bin/components/nsAbLDAPAutoCompleteSearch.js
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:246: Missing file(s): bin/components/nsLDAPProtocolHandler.js
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:247: Missing file(s): bin/components/ldapComponents.manifest
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:248: Missing file(s): bin/libldap60.so
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:249: Missing file(s): bin/libldif60.so
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:250: Missing file(s): bin/libprldap60.so
Executing /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/dist/bin/xpcshell -g /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/dist/bin/ -a /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/dist/bin/ -f /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/toolkit/mozapps/installer/precompile_cache.js -e precompile_startupcache("resource://gre/");
Traceback (most recent call last):
  File "/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/toolkit/mozapps/installer/packager.py", line 403, in <module>
    main()
  File "/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/toolkit/mozapps/installer/packager.py", line 397, in main
    args.source, gre_path, base)
  File "/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/toolkit/mozapps/installer/packager.py", line 156, in precompile_cache
    errors.fatal('Error while running startup cache precompilation')
  File "/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/python/mozbuild/mozpack/errors.py", line 101, in fatal
    self._handle(self.FATAL, msg)
  File "/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/python/mozbuild/mozpack/errors.py", line 96, in _handle
    raise ErrorMessage(msg)
mozpack.errors.ErrorMessage: Error: Error while running startup cache precompilation
/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/toolkit/mozapps/installer/packager.mk:36: recipe for target 'stage-package' failed
make[1]: *** [stage-package] Error 1
make[1]: Leaving directory '/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer'
/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/mozilla/../mail/build.mk:19: recipe for target 'install' failed
make: *** [install] Error 2
 * ERROR: mail-client/thunderbird-38.6.0::gentoo failed (install phase):
 *   emake failed
 *
 * If you need support, post the output of `emerge --info '=mail-client/thunderbird-38.6.0::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=mail-client/thunderbird-38.6.0::gentoo'`.
 * The complete build log is located at '/var/log/portage/mail-client:thunderbird-38.6.0:20160219-192211.log'.
 * For convenience, a symlink to the build log is located at '/var/tmp/portage/mail-client/thunderbird-38.6.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/mail-client/thunderbird-38.6.0/temp/environment'.
 * Working directory: '/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird'
 * S: '/var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38'
 *
 * The following package has failed to build, install, or execute postinst:
 *
 *  (mail-client/thunderbird-38.6.0:0/0::gentoo, ebuild scheduled for merge), Log file:
 *   '/var/log/portage/mail-client:thunderbird-38.6.0:20160219-192211.log'




t44 ~ # emerge --info thunderbird
Portage 2.2.26 (python 3.4.3-final-0, hardened/linux/amd64, gcc-4.9.3, glibc-2.21-r2, 4.3.5-hardened-r2 x86_64)                                        
=================================================================                                                                                      
                         System Settings                                                                                                               
=================================================================                                                                                      
System uname: Linux-4.3.5-hardened-r2-x86_64-Intel-R-_Core-TM-_i5-4300U_CPU_@_1.90GHz-with-gentoo-2.2                                                  
KiB Mem:    12030052 total,   2110224 free                                                                                                             
KiB Swap:   16777212 total,  16776864 free                                                                                                                            
Timestamp of repository gentoo: Fri, 19 Feb 2016 18:44:46 +0000                                                                                                       
sh bash 4.3_p42-r1                                                                                                                                                    
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.1.9 [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/ccache:          3.1.9-r4::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.19.1::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.12.6::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::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.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: 1

local
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /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 -march=native"
DISTDIR="/var/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --nospinner --tree --quiet-build --autounmask --autounmask-unrestricted-atoms --autounmask-write --verbose-conflicts"
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 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://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://mirror.netcologne.de/gentoo/ rsync://mirror.netcologne.de/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl aes-ni alsa amd64 apache2 avx avx2 berkdb bzip2 cgroups cli consolekit corefonts cracklib crypt cups custom-cflags custom-optimization cxx dbus declarative dnssec dri drmkms dvb dvd ecc encode ffmpeg fontconfig fortran fpm gdbm git gnuplot gpg gtk gui hardened help iconv icu ipv6 isag java jpeg justify kde libvirtd logrotate mad mbox minizip mmx mmxext modules mp3 mpg123 multilib mysql mysqli ncurses nls nptl ogg opengl openmp pam pax_kernel pcre pcre16 pie plasma png policykit pwquality qemu qml qt3support qt5 readline scrypt sddm seccomp session snmp spice sse sse2 sse4 sse4_1 sse4_2 ssh-askpass ssl ssp ssse3 svg system-cairo system-icu system-jpeg system-libvpx system-sqlite tcpd theora thinkpad threads tk tls tor-hardening truetype uml unicode urandom usb usbredir uxa v4l v4l2 vaapi video vorbis vpx widgets wxwidgets x264 xa xattr xcb xkb xmp xscreensaver xtpax xvfb xz zenmap zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" 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 itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_GB" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="x86_64 i386" QEMU_USER_TARGETS="x86_64 i386" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

mail-client/thunderbird-38.5.0::gentoo was built with the following:
USE="crypt custom-cflags custom-optimization dbus hardened jemalloc3 minimal system-cairo system-icu system-jpeg system-libvpx system-sqlite -bindist -debug -gstreamer -gstreamer-0 -jit -ldap -lightning -mozdom (-neon) -pulseaudio (-selinux) -startup-notification" ABI_X86="64" LINGUAS="en_GB -ar -ast -be -bg -bn_BD -br -ca -cs -cy -da -de -el -es_AR -es_ES -et -eu -fi -fr -fy_NL -ga_IE -gd -gl -he -hr -hsb -hu -hy_AM -id -is -it -ja -ko -lt -nb_NO -nl -nn_NO -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv_SE -ta_LK -tr -uk -vi -zh_CN -zh_TW"
CFLAGS="-pipe -march=native -Wno-return-type -w"
CXXFLAGS="-pipe -march=native -Wno-return-type -w"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-rpath=/usr/lib64/thunderbird -Wl,-z,relro,-z,now"
Comment 1 Toralf Förster gentoo-dev 2016-02-19 20:35:44 UTC
FWIW hardened issue ? :

Feb 19 21:05:10 t44 kernel: [49987.972475] grsec: Segmentation fault occurred at            (nil) in /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/dist/bin/xpcshell[python:14405] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/_virtualenv/bin/python2.7[python:14327] uid/euid:0/0 gid/egid:0/0
Feb 19 21:05:10 t44 kernel: [49987.972495] grsec: bruteforce prevention initiated for the next 30 minutes or until service restarted, stalling each fork 30 seconds.  Please investigate the crash report for /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/_virtualenv/bin/python2.7[python:14405] uid/euid:0/0 gid/egid:0/0, parent /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/_virtualenv/bin/python2.7[python:14327] uid/euid:0/0 gid/egid:0/0
Comment 2 Ian Stakenvicius (RETIRED) gentoo-dev 2016-02-19 21:46:05 UTC
OK so these:

Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:243: Missing file(s): bin/components/mozldap.xpt
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:245: Missing file(s): bin/components/nsAbLDAPAutoCompleteSearch.js
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:246: Missing file(s): bin/components/nsLDAPProtocolHandler.js
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:247: Missing file(s): bin/components/ldapComponents.manifest
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:248: Missing file(s): bin/libldap60.so
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:249: Missing file(s): bin/libldif60.so
Warning: /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/mail/installer/package-manifest:250: Missing file(s): bin/libprldap60.so

..are not missing (nor reported missing) on my builds.  I think this may be part of the issue.  The grsec errors may be related to these files not being found or might be unrelated.  Either way i'll comb through the build.log and see what's wrong.

There's also a reported issue of thunderbird linking against its own system-installed libxul.so , i haven't confirmed that but will have to look into it (and its effect) here as well.
Comment 3 Jory A. Pratt gentoo-dev 2016-02-20 02:36:11 UTC
As the hardened mozilla dev, I am unable to duplicate it at all.

Portage 2.2.27 (python 2.7.11-final-0, hardened/linux/amd64/no-multilib, gcc-5.3.0, glibc-2.22-r2, 4.3.5-hardened-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.5-hardened-r1-x86_64-Intel-R-_Core-TM-_i5-3337U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     5970392 total,   2378408 free
KiB Swap:    8388604 total,   8338952 free
Timestamp of repository gentoo: Fri, 19 Feb 2016 02:05:01 +0000
sh dash 0.5.8.2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.2.4 [enabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.2.4::gentoo
dev-util/cmake:           3.4.3::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.20.5::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r2::gentoo
Repositories:

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

anarchy
    location: /home/gentoo
    masters: gentoo
    priority: 0

mozilla
    location: /home/mozilla
    sync-type: git
    sync-uri: git+ssh://git@git.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache 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"
GENTOO_MIRRORS="http://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://mirrors.rit.edu/gentoo/"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common"
MAKEOPTS="-j5 --no-print-directory"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-z -9 -f -S .xz"
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/tmpfs"
USE="X aac alsa amd64 berkdb bzip2 cairo cdio cgroups cli consolekit cracklib crypt cups cxx dbus dri egl ffmpeg gdbm gtk gtk3 hardened iconv icu ipv6 jpeg justify libcanberra libsecret lzma mmx mmxext modules mp3 ncurses nptl opengl openmp openssl pam pax_kernel pcre pdf pie png policykit postproc readline seccomp session sqlite sse sse2 ssh ssl ssp tcpd theora threads tiff truetype udev udisks unicode upower urandom vaapi vpx x264 xattr xcb xinerama xtpax xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm ppc64 x86_64" RUBY_TARGETS="ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="intel" XFCE_PLUGINS="brightness power trash" 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, INSTALL_MASK, LANG, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

mail-client/thunderbird-38.6.0::mozilla was built with the following:
USE="crypt custom-cflags custom-optimization dbus gstreamer hardened jemalloc3 minimal system-cairo system-icu system-jpeg system-libvpx system-sqlite -bindist -debug -gstreamer-0 -jit -ldap -lightning -mozdom (-neon) -pulseaudio (-selinux) -startup-notification" LINGUAS="-ar -ast -be -bg -bn_BD -br -ca -cs -cy -da -de -el -en_GB -es_AR -es_ES -et -eu -fi -fr -fy_NL -ga_IE -gd -gl -he -hr -hsb -hu -hy_AM -id -is -it -ja -ko -lt -nb_NO -nl -nn_NO -pa_IN -pl -pt_BR -pt_PT -rm -ro -ru -si -sk -sl -sq -sr -sv_SE -ta_LK -tr -uk -vi -zh_CN -zh_TW"
CFLAGS="-march=native -pipe -Wno-return-type -w"
CXXFLAGS="-march=native -pipe -Wno-return-type -w"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--hash-style=gnu -Wl,--sort-common -Wl,-rpath=/usr/lib64/thunderbird -Wl,-z,relro,-z,now"
Comment 4 Jory A. Pratt gentoo-dev 2016-02-20 03:58:06 UTC
(In reply to Toralf Förster from comment #1)
> FWIW hardened issue ? :
> 
> Feb 19 21:05:10 t44 kernel: [49987.972475] grsec: Segmentation fault
> occurred at            (nil) in
> /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/dist/
> bin/xpcshell[python:14405] uid/euid:0/0 gid/egid:0/0, parent
> /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/
> _virtualenv/bin/python2.7[python:14327] uid/euid:0/0 gid/egid:0/0
> Feb 19 21:05:10 t44 kernel: [49987.972495] grsec: bruteforce prevention
> initiated for the next 30 minutes or until service restarted, stalling each
> fork 30 seconds.  Please investigate the crash report for
> /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/
> _virtualenv/bin/python2.7[python:14405] uid/euid:0/0 gid/egid:0/0, parent
> /var/tmp/portage/mail-client/thunderbird-38.6.0/work/comm-esr38/tbird/
> _virtualenv/bin/python2.7[python:14327] uid/euid:0/0 gid/egid:0/0

This shows you have disabled CONFIG_PAX_EMUTRAMP in the kernel, if this is the case anything and everything python related will fail.
Comment 5 Toralf Förster gentoo-dev 2016-02-20 09:11:48 UTC
(In reply to Jory A. Pratt from comment #4)

t44 linux # zgrep EMUTRAMP /proc/config.gz
CONFIG_PAX_EMUTRAMP=y
Comment 6 Toralf Förster gentoo-dev 2016-02-20 09:53:33 UTC
FWIW I recently added PAX_MARKINGS="XT" to make.conf and activated the kernel appropriate option as mentioned in the wiki and run "migrate-... -m"

Any steps I have to do in addition (an dprobably not mentioned in the wiki) ?

FWIW : 

tfoerste@t44 ~ $ /usr/sbin/paxctl-ng -v /usr/bin/python*
/usr/bin/python:                                                                                                                                              
        open(O_RDWR) failed: cannot change PT_PAX flags                                                                                                       
        PT_PAX    : -e---                                                                                                                                     
        XATTR_PAX : not found                                                                                                                                 
                                                                                                                                                              
/usr/bin/python2:                                                                                                                                             
        open(O_RDWR) failed: cannot change PT_PAX flags                                                                                                       
        PT_PAX    : -E---                                                                                                                                     
        XATTR_PAX : -E---                                                                                                                                     
                                                                                                                                                              
/usr/bin/python2.7:                                                                                                                                           
        open(O_RDWR) failed: cannot change PT_PAX flags                                                                                                       
        PT_PAX    : -E---                                                                                                                                     
        XATTR_PAX : -E---

/usr/bin/python2.7-config:
        open(O_RDWR) failed: cannot change PT_PAX flags
        ELF ERROR: elf_kind() fail: this is not an elf file.
        PT_PAX    : not found
        XATTR_PAX : not found

/usr/bin/python3:
        open(O_RDWR) failed: cannot change PT_PAX flags
        PT_PAX    : -E---
        XATTR_PAX : -E---

/usr/bin/python3.4:
        open(O_RDWR) failed: cannot change PT_PAX flags
        PT_PAX    : -E---
        XATTR_PAX : -E---

/usr/bin/python3.4-config:
        open(O_RDWR) failed: cannot change PT_PAX flags
        ELF ERROR: elf_kind() fail: this is not an elf file.
        PT_PAX    : not found
        XATTR_PAX : not found

/usr/bin/python-config:
        open(O_RDWR) failed: cannot change PT_PAX flags
        ELF ERROR: elf_kind() fail: this is not an elf file.
        PT_PAX    : not found
        XATTR_PAX : not found

/usr/bin/python-config-2.7:
        open(O_RDWR) failed: cannot change PT_PAX flags
        ELF ERROR: elf_kind() fail: this is not an elf file.
        PT_PAX    : not found
        XATTR_PAX : not found

/usr/bin/python-config-3.4:
        open(O_RDWR) failed: cannot change PT_PAX flags
        ELF ERROR: elf_kind() fail: this is not an elf file.
        PT_PAX    : not found
        XATTR_PAX : not found

/usr/bin/python-wrapper:
        open(O_RDWR) failed: cannot change PT_PAX flags
        PT_PAX    : -e---
        XATTR_PAX : not found
Comment 7 Toralf Förster gentoo-dev 2016-02-20 14:55:04 UTC
And b/c 38.5.0.fails here too - where it built fine before - any hint which xattr flags I should change for python ?
Comment 8 Toralf Förster gentoo-dev 2016-02-20 18:12:00 UTC
A tried a lot with oaxctl-ng - but what helped - is :
commenting out 
#PAX_MARKINGS="XT"
in make.conf for this package.

/me wonders if this can be made at a per-package basis via /etc/portage/env ?
Comment 9 MT 2016-03-24 16:52:38 UTC
I had the same compilation issue on a standard no-multilib profile (non hardened). The solution is trivial: just enable USE flag 'mozdom' if the USE 'minimal' is enabled too.
Comment 10 Ian Stakenvicius (RETIRED) gentoo-dev 2016-03-24 17:06:18 UTC
(In reply to Toffanin [Gentoo/FreeBSD AT] from comment #9)
> I had the same compilation issue on a standard no-multilib profile (non
> hardened). The solution is trivial: just enable USE flag 'mozdom' if the USE
> 'minimal' is enabled too.

That doesn't explain why Anarchy has no issues on his builds, with USE="minimal -mozdom" though.

FWIW, the only thing the 'mozdom' flag seems to do is add the 'inspector' mozilla extension.  I don't forsee that on its own fixing the issue reported here?
Comment 11 Jory A. Pratt gentoo-dev 2016-03-26 15:38:42 UTC
(In reply to Toffanin [Gentoo/FreeBSD AT] from comment #9)
> I had the same compilation issue on a standard no-multilib profile (non
> hardened). The solution is trivial: just enable USE flag 'mozdom' if the USE
> 'minimal' is enabled too.

This is not the answer, it is being confused from the pt_pax markings and xt markings, toralf can you run a full system rebuild with only xt markings and see if you can duplicate it.
Comment 12 Toralf Förster gentoo-dev 2016-03-26 17:30:06 UTC
mail-client/thunderbird-38.7.0 emerged fine here.
Therfore  I do assume a local issue when I switched from PT- to XT-marking.
So I can't dup it and would therefore close is as INVALID, or ?
Comment 13 Jory A. Pratt gentoo-dev 2016-03-26 19:10:14 UTC
(In reply to Toralf Förster from comment #12)
> mail-client/thunderbird-38.7.0 emerged fine here.
> Therfore  I do assume a local issue when I switched from PT- to XT-marking.
> So I can't dup it and would therefore close is as INVALID, or ?

If you can not duplicate it any longer then please feel free to close invalid or worksforme. I am not able to duplicate it.
Comment 14 MT 2016-04-08 11:41:31 UTC
Created attachment 429898 [details]
non-hardened-environment

I'm still affected by this bug, so please re-open it.

@Jory, you're tight, my previous comment about USE="minimal -mozdom" was a bogus statement; somehow the package compiled, but after having upgraded the entire system the other day, I can no longer compile thunderbird.

I'm NOT on an hardened profile, or running an hardened kernel.
Comment 15 MT 2016-04-08 15:50:09 UTC
Created attachment 429918 [details]
build error (non hardened profile)

Attached there is a verbose output of the install phase.

Just in case, I have followed the instructions for migrating from PT PAX to XATTR PAX as explained here: https://wiki.gentoo.org/wiki/Hardened/PaX_flag_migration_from_PT_PAX_to_XATTR_PAX but without success; while the install phase now detects and uses paxctl-ng from sys-apps/elfix, the ebuild fails the installation nevertheless.

I was able to reproduce the issue with sys-devel/gcc:5.3.0 too.

At the moment, I'm out of ideas.
Comment 16 Jory A. Pratt gentoo-dev 2017-08-26 17:57:31 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