Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591896

Summary: mail-client/thunderbird-45.2.0: emerge gets illegal instruction in mozilla/intl/icu/source/common/uinvchar.c:245
Product: Gentoo Linux Reporter: LW <g2du-mail>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description LW 2016-08-23 06:57:34 UTC
AMD Athlon(tm) II X3 455 Processor in chroot
emerge =mail-client/thunderbird-45.2.0 consistently gets an illegal instruction

1100+ packages successfully merged with emerge --emptytree --keep-going
but thunderbird and chromium consistently fail with a SIGILL.

Rebuilding tool chain parts (binutils, gcc, glibc) does not affect the results.


Reproducible: Always

Steps to Reproduce:
1. Setup building chroot
2. emerge --emptytree --keep-going
3. emerge =mail-client/thunderbird-45.2.0

(step 2 may not be needed)

Actual Results:  
[more complete build log info to follow]
make[7]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/data'
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/icupkg -tl /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/gencnval -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-cli
Makefile:523: recipe for target 'out/build/icudt56l/cnvalias.icu' failed
make[6]: *** [out/build/icudt56l/cnvalias.icu] Illegal instruction
make: *** [build] Error 2
ERROR: mail-client/thunderbird-45.2.0::gentoo failed (compile phase):
   emake failed


Expected Results:  
Usual messages from successful emerge.
Comment 1 LW 2016-08-23 07:00:56 UTC
# emerge --info
Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64/no-multilib, gcc-4.9.3, glibc-2.22-r4, 3.18.19-gentoo x86_64)
=================================================================
System uname: Linux-3.18.19-gentoo-x86_64-AMD_Athlon-tm-_II_X3_455_Processor-with-gentoo-2.2
KiB Mem:     3788840 total,    754508 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 20 Aug 2016 15:45:01 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.20.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.3::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.8.4::gentoo, 4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://192.168.0.10:8873/gentoo-portage
    priority: -1000

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Boost-1.0 google-chrome googleearth"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/easy-rsa /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=amdfam10 -mtune=amdfam10 -fomit-frame-pointer"
DISTDIR="/usr/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --binpkg-respect-use n --buildpkg y --misspell-suggestions n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg 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://portage.duboulder.com/"
LANG="en_US"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/packages/opal_amdfam10"
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="3dnow 3dnowext X a52 aac aacplus acl alsa amd64 audiofile bindist bzip2 caps cdr cli cracklib crypt css cxx dirac dri dv dvd exif faac ffmpeg flac gallium gdbm hardened iconv iptc ipv6 jack jpeg jpeg2k justify lcms lzma midi mmx mmxext modules mp3 ncurses nls noamazon nptl nptlonly ofx ogg openexr opengl openmp pam pax_kernel pcre pie png popcnt qt qt5 raw readline schroedinger session sndfile sox sse sse2 sse3 sse4a ssl ssp svg tcpd tiff truetype twolame type1 unicode urandom vorbis vpx webm webp x264 xattr xinerama xmms xmp xscreensaver xtpax xv zlib" ABI_X86="64" ALSA_CARDS="hda-intel mpu401 virmidi" APACHE2_MODULES="cgi proxy proxy_http actions alias authz_host deflate dir env expires filter headers ident imagemap info log_config logio mime rewrite setenvif status version" APACHE2_MPMS="prefork" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" DRACUT_MODULES="lvm" 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 keyboard mouse" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NGINX_MODULES_HTTP="access auth_basic browser charset empty_gif fastcgi geo gzip limit_req limit_zone map proxy referer rewrite scgi split_clients upstream_ip_hash" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="arm" QEMU_USER_TARGETS="arm" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="usb net epson2 test" USERLAND="GNU" VIDEO_CARDS="radeon ati" 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
Comment 2 LW 2016-08-23 07:03:12 UTC
Build log part showing failing command:

make[7]: Entering directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/data'
rm -rf icupkg.inc
make[7]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/data'
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/icupkg -tl /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/gencnval -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-cli
Makefile:523: recipe for target 'out/build/icudt56l/cnvalias.icu' failed
make[6]: *** [out/build/icudt56l/cnvalias.icu] Illegal instruction
make[6]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/data'
Makefile:147: recipe for target 'all-recursive' failed
make[5]: *** [all-recursive] Error 2
make[5]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target'
Makefile:59: recipe for target 'buildicu' failed
make[4]: *** [buildicu] Error 2
make[4]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/config/external/icu'
/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/config/recurse.mk:71: recipe for target 'config/externa
make[3]: *** [config/external/icu/target] Error 2
make[3]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird'
/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/config/recurse.mk:32: recipe for target 'compile' faile
make[2]: *** [compile] Error 2
make[2]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird'
/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/config/rules.mk:547: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird'
/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/client.mk:404: recipe for target 'build' failed
make: *** [build] Error 2

ERROR: mail-client/thunderbird-45.2.0::gentoo failed (compile phase):
  emake failed
Comment 3 LW 2016-08-23 07:09:22 UTC
Manual command execution:

# cd /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/data

# make
LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  ../bin/gencnval -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/data/mappings/convrtrs.txt
Makefile:523: recipe for target 'out/build/icudt56l/cnvalias.icu' failed
make: *** [out/build/icudt56l/cnvalias.icu] Illegal instruction

strace for the command:

# LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  strace ../bin/gencnval -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/data/mappings/convrtrs.txt
execve("../bin/gencnval", ["../bin/gencnval", "-d", "./out/build/icudt56l", "/var/tmp/portaged/portage/mail-c"...], [/* 75 vars */]) = 0
brk(0)                                  = 0x7f3c748d7000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f3c73421000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("../lib/tls/x86_64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
.......
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
brk(0)                                  = 0x7f3c748d7000
brk(0x7f3c748f8000)                     = 0x7f3c748f8000
open("/var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/data/mappings/convrtrs.txt", O_RDONLY) = 3
--- SIGILL {si_signo=SIGILL, si_code=ILL_ILLOPN, si_addr=0x7f3c7321e940} ---
+++ killed by SIGILL +++
Illegal instruction
Comment 4 LW 2016-08-23 07:14:20 UTC
gdb stack trace:

# LD_LIBRARY_PATH=../lib:../stubdata:../tools/ctestfw:$LD_LIBRARY_PATH  gdb ../bin/gencnval 
GNU gdb (Gentoo 7.10.1 vanilla) 7.10.1

(gdb) r -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/data/mappings/convrtrs.txt
Starting program: /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/tbird/intl/icu/target/bin/gencnval -d ./out/build/icudt56l /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/data/mappings/convrtrs.txt
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
0x0000555555558940 in uprv_isInvariantString_56 (s=<optimized out>, length=2)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/common/uinvchar.c:245
245             if(!UCHAR_IS_INVARIANT(c)) {
(gdb) bt
#0  0x0000555555558940 in uprv_isInvariantString_56 (s=<optimized out>, length=2)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/common/uinvchar.c:245
#1  0x0000555555556b8d in allocString (block=0x55555575d160 <tagBlock>, s=<optimized out>, length=<optimized out>)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/tools/gencnval/gencnval.c:1108
#2  0x0000555555556d20 in getTagNumber (tag=0x555555559bd9 "ALL", tagLen=3)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/tools/gencnval/gencnval.c:557
#3  0x00005555555574c1 in parseFile (in=0x555555bb2010)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/tools/gencnval/gencnval.c:341
#4  0x0000555555556058 in main (argc=<optimized out>, argv=<optimized out>)
    at /var/tmp/portaged/portage/mail-client/thunderbird-45.2.0/work/thunderbird-45.2.0/mozilla/intl/icu/source/tools/gencnval/gencnval.c:296
(gdb) Quit
(gdb)
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2016-08-23 07:32:15 UTC

*** This bug has been marked as a duplicate of bug 591894 ***