Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391051 - mail-client/thunderbird-8.0-r1 fails emerge with Pax kernel
Summary: mail-client/thunderbird-8.0-r1 fails emerge with Pax kernel
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-19 22:53 UTC by Stan Sander
Modified: 2011-11-21 15:16 UTC (History)
1 user (show)

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


Attachments
Compressed full build log (mail-client:thunderbird-8.0-r1:20111119-210518.log.gz,358.65 KB, application/x-gzip)
2011-11-20 00:04 UTC, Stan Sander
Details
thunderbird pax-mark xpcshell before calling emake install (thunderbird-8.0-r1-hardened.patch,582 bytes, patch)
2011-11-20 19:55 UTC, Jory A. Pratt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stan Sander 2011-11-19 22:53:42 UTC
mail-client/thunderbird-8.0-r1 fails to emerge in the install phase if emerging on a Pax enabled kernel.  The logs show that the PAX code in the kernel is killing the xpcshell process.

Nov 19 15:17:13 siren kernel: PAX: execution attempt in: <anonymous mapping>, 2ec30d21000-2ec30db2000 2ec30d21000
Nov 19 15:17:13 siren kernel: PAX: terminating task: /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mozilla/dist/bin/xpcshell(xpcshell):13125, uid/euid: 0/0, PC: 000002ec30da46d8, SP: 000003e1adaa6548
Nov 19 15:17:13 siren kernel: PAX: bytes at PC: 55 48 89 e5 53 89 31 48 83 ec 08 83 c6 01 39 d6 0f 87 f7 00 
Nov 19 15:17:13 siren kernel: PAX: bytes at SP-8: 0000000000000000 000002ec2f591382 00000039ba692d11 0000000000000022 0000000000000000 000002ec2f4f8470 000003e100000000 000002ec1f550320 0000000000000000 000002ec00000000 0000000000000000 

emerge --info =mail-client/thunderbird-8.0-r1
Portage 2.1.10.36 (hardened/linux/amd64/no-multilib/selinux, gcc-4.5.3, glibc-2.13-r4, 3.0.8-hardened-Stan x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.0.8-hardened-Stan-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_3800+-with-gentoo-2.1
Timestamp of tree: Sat, 19 Nov 2011 18:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/apache2 /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/sendmail-cf /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --autounmask=n"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles news nostrip parallel-fetch protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://lug.mtu.edu/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo  http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 64bit X Xaw3d a52 aac aalib abook acl acpi addbookmarks aften afterimage aio akode akonadi alias alisp amd amd64 amr amrnb amrwb animgif apache2 apng archive asf aspell async athena audiofile auto-hinter autoreplace background backtrace bacula-console bash-completion bcmath bdf berkdb big-tables binary-drivers bl bzip2 cairo captury cdaudio cdda cddb cdparanoia cdr cgraph chroot clamav clamd classic client cnamefix colordiff compress connectionstatus consolekit contactnotes cracklib crypt cscope css cups cupsddk curl curlwrappers cursors custom-cpuopts cxx dbm dbus designer-plugin dga directfb divx dolby-record-switch dolbyinrec dri dvd dvdr dvdread ecc emovix enca encode etc-proposals exceptions exif extras fame fbcon fbdev fbsplash ffmpeg flac flash fontconfig foomaticdb fpx ftp fusion gcj gd gdbm geoip gif gimp glib glibc-omitfp glitz glut glw gmedia gmp gnutls gpg gphoto2 gpm graphite graphviz grub gs gsl gsm gstreamer gtk gtk2-perl handbook hardened hddtemp highlight htmlhandbook icons id3 id3tag idea ieee1394 image imagemagick imlib immqt-bc innodb iodbc ipv6 ithreads jack jack-tmpfs java java6 javascript jbig jce jfs jpeg jpeg2k kde kdebuild kdecards kdepim kdm kdrive kexi kipi kontact kpathsea ladspa lame largefile largeterminal latex latin1 lcms ldap libcaca libgcrypt libsamplerate libssh2 libwww linuxthreads-tls live lm_sensors logrotate lzma lzo mad mbox milter mime mmap mmx mmxext mng motif moznoirc moznopango moznoroaming mozsha1 mp2 mp3 mp3rtp mp4 mp4live mpeg mpeg2 mpi mplayer multiuser musepack musicbrainz mysql mysqli nas ncurses nemesi net netapi network network-cron nforce2 nfs nfsv3 nfsv4 nntp nolvm1 normalize normalizemime nosamples nowlistening npp nptl nsplugin nspr nss ntp objc objc++ objc-gc ocrad odbc ofx ogg ogg123 open_perms openal openct openexr opengl openssl osc oss pam parport paste64 pax_kernel pcap pdf peer_perms perl phonon pic pixmaps plasma player plib pmu png pnm posix postproc postscript povray ppds procmail ps pth python q32 qt3support qt4 query-browser quicktime raptor readline realmedia redland romio rss rtc samba sdl sdl-image selinux semantic-desktop sensord server sharedmem smbclient sndfile sockets soundex sox speedo spell sql sqlite sqlite3 sse sse2 ssh ssl startup-notification subtitles svg symlink syslog sysvipc taglib tagwriting tcl tesseract threads threadsafe thumbnail tiff tk truetype tunepimp type1 ubac udev unicode usb utempter vcd vcdx vdr vim vim-pager vim-syntax virtuoso vorbis wav wma wmf wmp xanim xattr xcb xcomposite xft xgetdefault xine xinetd xml xorg xpm xrandr xrender xscreensaver xsettings xslt xterm xv xvid xvmc zlib" ALSA_CARDS="*" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="alias authz_host auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_owner authz_user autoindex dir env expires filter headers imagemap include log_config mime mime_magic rewrite setenvif speling vhost_alias substitute unique_id dav dav_fs dav_lock cgid" APACHE2_MPMS="worker" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LINGUAS="en en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fbdev"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stan Sander 2011-11-19 22:57:56 UTC
Build log was too large for attachement, but here is the section showing the failure:

resource:///modules/DownloadLastDir.jsm
resource:///modules/LightweightThemeManager.jsm
/bin/sh: line 1: 13125 Killed                  /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mail/installer/../../mozilla/dist/bin/run-mozilla.sh /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mozilla/dist/bin/xpcshell -g "$PWD" -a "$PWD" -f /var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mozilla/toolkit/mozapps/installer/precompile_cache.js -e "populate_startupcache('GreD', 'omni.jar', 'startupCache.zip');"
make[1]: *** [install] Error 137
make[1]: Leaving directory `/var/tmp/portage/mail-client/thunderbird-8.0-r1/work/comm-release/mail/installer'
make: *** [install] Error 2
emake failed
 * ERROR: mail-client/thunderbird-8.0-r1 failed (install phase):
 *   emake install failed
 * 
 * Call stack:
 *     ebuild.sh, line  84:  Called src_install
 *   environment, line 6341:  Called die
 * The specific snippet of code:
 *       emake DESTDIR="${D}" install || die "emake install failed";
Comment 2 Agostino Sarubbo gentoo-dev 2011-11-19 23:59:49 UTC
Can you add full build log?
Comment 3 Stan Sander 2011-11-20 00:04:03 UTC
Created attachment 293151 [details]
Compressed full build log

Attaching gzip'd build log
Comment 4 Jory A. Pratt gentoo-dev 2011-11-20 19:55:04 UTC
Created attachment 293221 [details, diff]
thunderbird pax-mark xpcshell before calling emake install

Please test and report your success or failure.
Comment 5 Jory A. Pratt gentoo-dev 2011-11-20 19:59:30 UTC
*** Bug 391025 has been marked as a duplicate of this bug. ***
Comment 6 Stan Sander 2011-11-20 22:55:42 UTC
Patch works for me.  Thanks!
Comment 7 Small_Penguin 2011-11-20 23:06:19 UTC
I'm the reporter of duplicate bug 391025. I don't use a pax kernel (isn't that hardened?). AFAIK, there is no pax-mark on my system, is this patch still going to work for me?
Comment 8 Jory A. Pratt gentoo-dev 2011-11-20 23:10:41 UTC
(In reply to comment #7)
> I'm the reporter of duplicate bug 391025. I don't use a pax kernel (isn't that
> hardened?). AFAIK, there is no pax-mark on my system, is this patch still going
> to work for me?

try it and let us know, if it doesn't you will have to get a backtrace of the xpcshell command being run.
Comment 9 Small_Penguin 2011-11-21 12:46:36 UTC
Unfortunately, it did not work in my case. Can you give me instructions on how to get a backtrace?
Comment 10 Jory A. Pratt gentoo-dev 2011-11-21 15:16:20 UTC
Thanks for reporting, it has landed in cvs should hit mirrors in an hour or so.