Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433884 - sys-libs/glibc-2.15-r2 on AMD64 Xen-domU - .../work/build-amd64-x86_64-pc-linux-gnu-nptl/sunrpc/xbootparam_prot.stmp] Error 132
Summary: sys-libs/glibc-2.15-r2 on AMD64 Xen-domU - .../work/build-amd64-x86_64-pc-lin...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Xen Devs
URL:
Whiteboard:
Keywords:
: 424577 (view as bug list)
Depends on:
Blocks: 402753
  Show dependency tree
 
Reported: 2012-09-04 07:57 UTC by Marcel Pennewiß
Modified: 2012-10-05 12:50 UTC (History)
3 users (show)

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


Attachments
build.log (build.log.gz,516.99 KB, application/gzip)
2012-09-04 07:58 UTC, Marcel Pennewiß
Details
build.log with binutils-2.22-r1 (build-binutils-2.22.log.gz,473.32 KB, text/plain)
2012-09-04 08:41 UTC, Marcel Pennewiß
Details
glibc-2.15_avx1.patch (glibc-2.15_avx1.patch,2.06 KB, patch)
2012-09-11 09:59 UTC, Marcel Pennewiß
Details | Diff
glibc-2.15_avx2.patch (glibc-2.15_avx2.patch,6.20 KB, patch)
2012-09-11 10:00 UTC, Marcel Pennewiß
Details | Diff
glibc-2.15_avx3_fedora.patch (glibc-2.15_avx3_fedora.patch,526 bytes, patch)
2012-09-11 10:00 UTC, Marcel Pennewiß
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcel Pennewiß 2012-09-04 07:57:40 UTC
glibc-2.15-r2 failed to compile on a Xen-domU (amd64) running on a hostsystem with Intel Core i7. Maybe something related to #402753, #424577?

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-libs/glibc-2.15-r2



Portage 2.1.11.9 (default/linux/amd64/10.0, gcc-4.5.4, glibc-2.14.1-r3, 3.2.1-gentoo-r2-domU x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-domU-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.1
Timestamp of tree: Mon, 03 Sep 2012 00:15:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.6
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.4
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4-r2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo fem-overlay
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -mtune=generic -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mtune=generic -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo-portage.fem-net.de/mirror/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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/fem-overlay"
SYNC="rsync://gentoo-portage.fem-net.de/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp pam pcre pppd readline session sse sse2 ssl tcpd threads unicode zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Marcel Pennewiß 2012-09-04 07:58:06 UTC
Created attachment 322884 [details]
build.log
Comment 2 Marcel Pennewiß 2012-09-04 07:59:29 UTC
During compile in dmesg:

[8013168.555896] ld-linux-x86-64[26856] trap invalid opcode ip:2b993ba6ed45 sp:7ffffead9868 error:0 in libc.so[2b993b943000+1a1000]
[8013168.600450] ld-linux-x86-64[26869] trap invalid opcode ip:2ac5904e3d45 sp:7fffc2f7eec8 error:0 in libc.so[2ac5903b8000+1a1000]
[8013168.619496] ld-linux-x86-64[26873] trap invalid opcode ip:2b25dceacd45 sp:7fff402e75a8 error:0 in libc.so[2b25dcd81000+1a1000]
[8013168.624924] ld-linux-x86-64[26875] trap invalid opcode ip:2b7f4280ed45 sp:7ffffe1db698 error:0 in libc.so[2b7f426e3000+1a1000]
[8013168.648549] ld-linux-x86-64[26877] trap invalid opcode ip:2b00dacead45 sp:7fff2440afe8 error:0 in libc.so[2b00dabbf000+1a1000]
[8013168.659302] ld-linux-x86-64[26878] trap invalid opcode ip:2b6fea300d45 sp:7fffb1050898 error:0 in libc.so[2b6fea1d5000+1a1000]
[8013168.663380] ld-linux-x86-64[26879] trap invalid opcode ip:2acb9acaed45 sp:7fff533b2328 error:0 in libc.so[2acb9ab83000+1a1000]
[8013168.666616] ld-linux-x86-64[26880] trap invalid opcode ip:2b70abb8bd45 sp:7fff4a88a588 error:0 in libc.so[2b70aba60000+1a1000]
Comment 3 Marcel Pennewiß 2012-09-04 08:31:57 UTC
Upgrading binutils to 2.22-r1 results in segfaults in as :( Log follows...
Comment 4 Marcel Pennewiß 2012-09-04 08:41:58 UTC
Created attachment 322888 [details]
build.log with binutils-2.22-r1

[8014769.203096] as[16620]: segfault at ff10 ip 0000000000410878 sp 00007fff82b61270 error 4 in as[400000+51000]
Comment 5 Marcel Pennewiß 2012-09-04 09:07:11 UTC
sys-libs/glibc-2.16.0 builds fine... didn't test if it's working fine!
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2012-09-04 15:18:03 UTC
Looks like bug 336020 too.
Comment 7 Marcel Pennewiß 2012-09-04 19:13:49 UTC
(In reply to comment #6)
> Looks like bug 336020 too.

Rebuilding Toolchain like in 336020 tried before bugreport was filed. Didn't work!
Comment 8 Marcel Pennewiß 2012-09-11 09:58:23 UTC
Fedora fixes the problem, using AVX-Patches from glibc-2.16 and another patch. 

Using patch from https://bugzilla.redhat.com/show_bug.cgi?id=801650 and patches from glibc-git (attached version without patching Changelog/NEWS) seems to work. Test-VM builds glibc flawlessly (CFLAGS="-march=core2 -mtune=generic -O2 -pipe"), could be (re)booted without problems and "invalid opcode"-error messages are also gone in the virtual machine.
Comment 9 Marcel Pennewiß 2012-09-11 09:59:56 UTC
Created attachment 323490 [details, diff]
glibc-2.15_avx1.patch
Comment 10 Marcel Pennewiß 2012-09-11 10:00:20 UTC
Created attachment 323492 [details, diff]
glibc-2.15_avx2.patch
Comment 11 Marcel Pennewiß 2012-09-11 10:00:46 UTC
Created attachment 323494 [details, diff]
glibc-2.15_avx3_fedora.patch
Comment 12 Marcel Pennewiß 2012-09-24 08:41:39 UTC
I did not notice any problems in the last 13 days on productive systems...
Comment 13 SpanKY gentoo-dev 2012-09-25 19:45:02 UTC
i added a bunch of fixes from upstream to glibc-2.15-r3 that should fix this
Comment 14 SpanKY gentoo-dev 2012-09-25 19:45:09 UTC
*** Bug 424577 has been marked as a duplicate of this bug. ***