Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531528 - sys-libs/glibc-2.20 trap invalid opcode libpthread-2.20.so TSX Haswell Bug
Summary: sys-libs/glibc-2.20 trap invalid opcode libpthread-2.20.so TSX Haswell Bug
Status: RESOLVED DUPLICATE of bug 531026
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-03 12:26 UTC by Joerg Neikes
Modified: 2014-12-05 06:21 UTC (History)
1 user (show)

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


Attachments
glibc-2.20-r1.ebuild (glibc-2.20-r1.ebuild,6.29 KB, text/plain)
2014-12-03 12:33 UTC, Joerg Neikes
Details
glibc-2.20-do_ftell_wide-memleak.patch (glibc-2.20-do_ftell_wide-memleak.patch,327 bytes, patch)
2014-12-03 12:33 UTC, Joerg Neikes
Details | Diff
glibc-2.20-getifaddrs_internal-segfault.patch (glibc-2.20-getifaddrs_internal-segfault.patch,824 bytes, patch)
2014-12-03 12:34 UTC, Joerg Neikes
Details | Diff
glibc-2.20-linux-3.16-additions.patch (glibc-2.20-linux-3.16-additions.patch,636 bytes, patch)
2014-12-03 12:35 UTC, Joerg Neikes
Details | Diff
glibc-2.20-blacklist_HLERTM_Haswell.patch (glibc-2.20-blacklist_HLERTM_Haswell.patch,2.42 KB, patch)
2014-12-03 12:36 UTC, Joerg Neikes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Neikes 2014-12-03 12:26:16 UTC
I updated my amd64 isos with and without hardened to latest version.

The Hardware has a Xeon E3-1200 v3.

On other systems all went well, udev starts, systemd starts.

With this Processor udev hangs at boot and only continues with "Ctrl c", so i upgraded to systemd but this throws also traps like this with udev:

[   86.940399] microcode: CPU3 updated to revision 0x1c, date = 2014-07-03
[   86.940447] microcode: Microcode Update Driver: v2.00 <tigran@aivazian.fsnet.co.uk>, Peter Oruba
[   86.940471] traps: systemd-udevd[3444] trap invalid opcode ip:7f927750f19a sp:7ffffa814c30 error:0 in libpthread-2.20.so[7f9277503000+17000]
[   86.940488] traps: systemd-udevd[3447] trap invalid opcode ip:7f927750f19a sp:7ffffa814c30 error:0 in libpthread-2.20.so[7f9277503000+17000]
[   86.940657] traps: systemd-udevd[3440] trap invalid opcode ip:7f927750f19a sp:7ffffa814c30 error:0 in libpthread-2.20.so[7f9277503000+17000]
[   86.940687] traps: systemd-udevd[3446] trap invalid opcode ip:7f927750f19a sp:7ffffa814c30 error:0 in libpthread-2.20.so[7f9277503000+17000]
[   86.988727] igb 0000:03:00.0 enp3s0: renamed from eth2
[   86.988821] traps: systemd-udevd[3421] trap invalid opcode ip:7f927750f19a sp:7ffffa816e00 error:0 in libpthread-2.20.so[7f9277503000+17000]


Some hints to the Haswell bug:

https://bbs.archlinux.org/viewtopic.php?pid=1474861
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762195
The debian patch:
Haswell patch
https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=20;filename=glibc-2.19_blacklist_HLERTM_Haswell.patch;att=1;bug=762195

Intel Datasheet:
http://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e3-1200v3-spec-update.pdf

Article in english:
http://hardware.slashdot.org/story/14/08/12/182200/errata-prompts-intel-to-disable-tsx-in-haswell-early-broadwell-cpus

Article in german:
http://www.golem.de/news/transactional-memory-intel-schaltet-tsx-wegen-bug-bei-haswell-ab-1408-108545.html


Reproducible: Always

Steps to Reproduce:
1. Start systems hangs on udev
2. Crtl c to continue
3. traps: systemd-udevd in dmesg log
Actual Results:  
fixed with debain patch and added arch linux fixes

Expected Results:  
starts with udev and shows no "traps: systemd-udevd" logs.
Comment 1 Joerg Neikes 2014-12-03 12:27:20 UTC
Portage 2.2.14 (python 2.7.8-final-0, hardened/linux/amd64, gcc-4.8.3, glibc-2.20, 3.17.4-hardened x86_64)
=================================================================
System uname: Linux-3.17.4-hardened-x86_64-Intel-R-_Xeon-R-_CPU_E3-1220_v3_@_3.10GHz-with-gentoo-2.2
KiB Mem:    16470220 total,  16087480 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Tue, 02 Dec 2014 11:15:01 +0000
ld GNU ld (Gentoo 2.24 p1.4) 2.24
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.10 [enabled]
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0
dev-lang/perl:            5.20.1-r3
dev-lang/python:          2.7.8, 3.3.5-r1, 3.4.2
dev-util/ccache:          3.1.10-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.17-r1 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo sunrise xpol pentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -U_FORTIFY_SOURCE"
DISTDIR="/usr/portage/distfiles"
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://distfiles.gentoo.org"
LANG="de_DE.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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/xpol-overlay /var/lib/layman/pentoo"
SYNC="rsync://10.0.0.1/gentoo-portage"
USE="acl amd64 apache apache2 bcmath berkdb bzip2 bzlib calendar cli cracklib crypt ctype curl curlwrappers cxx dba dbase dbx dio dri dvd emacs encode exif fam flatfile ftp gdbm gmp gnutls gudev hardened iconv idn imap ipv6 jpeg justify ldap mad maildir mhash mime mmx mng modules multilib mysql ncurses nls nptl nptlonly openmp openssl pam pax_kernel pcre pdf pdflib php pic png posix readline samba session sharedext simplexml soap sockets spell sse sse2 ssl static-libs systemd sysvipc tcpd tidy tiff truetype udev unicode urandom usb vhost xattr xml2 xmlrpc xpm xsl xtpax 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="actions alias auth_basic auth_digest authn_anon authn_dbd 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 dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias authn_core ratelimit socache_shmcb slotmem_shm mysqli access_compat authz_core unixd mpm-prefork suexec" 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" 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="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de dk fi jp it tr nl fr" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php5-4 php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="jython2_7 python2_7 jython3_3 python3_3 jython3_4 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="vesa vga" 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"
USE_PYTHON="2.7  3.3 3.4"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Joerg Neikes 2014-12-03 12:33:15 UTC
Created attachment 390832 [details]
glibc-2.20-r1.ebuild
Comment 3 Joerg Neikes 2014-12-03 12:33:39 UTC
Created attachment 390834 [details, diff]
glibc-2.20-do_ftell_wide-memleak.patch
Comment 4 Joerg Neikes 2014-12-03 12:34:40 UTC
Created attachment 390836 [details, diff]
glibc-2.20-getifaddrs_internal-segfault.patch
Comment 5 Joerg Neikes 2014-12-03 12:35:16 UTC
Created attachment 390838 [details, diff]
glibc-2.20-linux-3.16-additions.patch
Comment 6 Joerg Neikes 2014-12-03 12:36:52 UTC
Created attachment 390840 [details, diff]
glibc-2.20-blacklist_HLERTM_Haswell.patch
Comment 7 Joerg Neikes 2014-12-03 12:39:38 UTC
By the way update must be done because the origin sever has a MDraid with 32 bit gentoo.

The genkernel would not start with latest genkernel.
Now it seems the error could be the glibc Haswell and microcode updates.
Comment 8 Joerg Neikes 2014-12-03 12:41:42 UTC
All patches from arch are original the glibc-2.20-blacklist_HLERTM_Haswell.patch was included/fixed by me but not originaly from me.
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-03 12:41:57 UTC

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