Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 245124 - sys-devel/binutils-2.19 fails tests due to pax patch
Summary: sys-devel/binutils-2.19 fails tests due to pax patch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-01 10:50 UTC by Alexis Ballier
Modified: 2010-03-08 04:44 UTC (History)
9 users (show)

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


Attachments
ld.log selected failures (fails.txt,207.59 KB, text/plain)
2008-11-27 03:13 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
( Partial ) Replacement for Listed PAX Patch (binutils-2.19-pax-test.patch,5.51 KB, text/plain)
2008-11-27 03:14 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details
Misc emerge/paludis --info datas (sysinfo,44.83 KB, text/plain)
2008-11-27 03:35 UTC, Kent Fredric (IRC: kent\n) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2008-11-01 10:50:12 UTC
Running /var/tmp/portage/sys-devel/binutils-2.19/work/binutils-2.19/ld/testsuite/ld-elf/elf.exp ...
FAIL: ld-elf/eh1
FAIL: ld-elf/eh2
FAIL: ld-elf/eh3
FAIL: ld-elf/eh6
FAIL: ld-elf/seg
[...]
Running /var/tmp/portage/sys-devel/binutils-2.19/work/binutils-2.19/ld/testsuite/ld-elfvsb/elfvsb.exp ...
FAIL: ld-elfvsb/hidden2
[...]
Running /var/tmp/portage/sys-devel/binutils-2.19/work/binutils-2.19/ld/testsuite/ld-i386/i386.exp ...
FAIL: TLS -fpic -shared transitions
FAIL: TLS descriptor -fpic -shared transitions
FAIL: TLS -fpic and -fno-pic exec transitions
FAIL: TLS descriptor -fpic and -fno-pic exec transitions
FAIL: TLS -fno-pic -shared
FAIL: TLS with global dynamic and descriptors
FAIL: Reloc section order
FAIL: --warn-shared-textrel --fatal-warnings
FAIL: ld-i386/hidden2
[...]
Running /var/tmp/portage/sys-devel/binutils-2.19/work/binutils-2.19/ld/testsuite/ld-scripts/empty-aligned.exp ...
FAIL: ld-scripts/empty-aligned
[...]
Running /var/tmp/portage/sys-devel/binutils-2.19/work/binutils-2.19/ld/testsuite/ld-x86-64/x86-64.exp ...
FAIL: TLS -fpic -shared transitions
FAIL: TLS descriptor -fpic -shared transitions
FAIL: TLS -fpic and -fno-pic exec transitions
FAIL: TLS descriptor -fpic and -fno-pic exec transitions
FAIL: TLS with global dynamic and descriptors
FAIL: ld-x86-64/hidden2
FAIL: ld-x86-64/protected3
[...]
		=== ld Summary ===

# of expected passes		424
# of unexpected failures	23
# of expected failures		57
/var/tmp/portage/sys-devel/binutils-2.19/work/build/ld/ld-new 2.19


# emerge --info
Portage 2.2_rc12 (default/linux/amd64/2008.0/developer, gcc-4.3.2, glibc-2.8_p20080602-r0, 2.6.27.4 x86_64)
=================================================================
System uname: Linux-2.6.27.4-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q9450_@_2.66GHz-with-glibc2.2.5
Timestamp of tree: Unknown
distcc 3.0 x86_64-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r4
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mssse3 -msse4.1 -g -ggdb  -Wno-pointer-sign"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -mssse3 -msse4.1 -g -ggdb"
DISTDIR="/share/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="buildpkg buildsyspkg collision-protect cvs distcc distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed -Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu"
LINGUAS="en fr en_US"
MAKEOPTS="-j8"
PKGDIR="/share/gentoo/packages"
PORTAGE_COMPRESS="lzma"
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_cvs/gentoo-x86"
PORTDIR_OVERLAY="/usr/local/portage /share/overlay /share/bsdoverlay/gentoo-bsd"
SYNC="cvs://aballier@cvs.gentoo.org:/var/cvsroot"
USE="X a52 aac aalib acl acpi alsa amd64 amr amrnb amrwb apache2 audiofile bash-completion berkdb bidi bluetooth bzip2 cairo caps cdaudio cdda cddb cdio cdparanoia cdr cegui chardet cjk cli clisp cpufreq cracklib crypt css cups curl cvs dbus devil dga dirac djvu doc dri dssi dts dv dvb dvd dvdr dvdread dvi emboss enca encode evo exif expat fam fame fbcon fbcondecor ffmpeg fftw firefox flac fluidsynth fontconfig fontforge fortran gd gdbm gif glep glib glitz glsa glut gmp gnomecanvas gnutls gpac gpg gpm graphviz gs gstreamer gtk hal hddtemp icecast iconv icu id3tag ieee1394 imagemagick imap imlib ipv6 isdnlog ithreads jack javascript jbig jpeg jpeg2k kdehiddenvisibility kpathsea ladspa lame lapack lash latex lcms libcaca libnotify libsamplerate live lm_sensors lua lv2 lzo mad mailwrapper matroska mbox md5sum midi mikmod mjpeg mmx mmxext mng modplug motif mp2 mp3 mp4 mpeg mudflap multilib musepack musicbrainz mysql ncurses network nls nntp nodrm nptl nptlonly nsplugin ocaml offensive ogg ogm openexr opengl openmp pam pcre pdf perl pgf png pnm pop portaudio postgres ppds pppd pstricks python qa qt3support qt4 quicktime radio rar readline reflection rle rtc rtsp rubberband ruby schroedinger scrobbler sdl session shorten shout slang smp smtp sndfile snmp soundtouch sox speex spell spl sqlite sqlite3 srt sse sse2 sse3 ssl ssse3 startup-notification subversion svg sysfs t1lib taglib tcl tcpd teletext test tga theora threads threadsafe tiff timidity tk truetype tse3 tta twolame unicode usb v4l v4l2 vamp vcd vim-syntax visibility vorbis wavpack wma wmf wxwindows x264 xcb xcomposite xft xine xml xorg xpm xspf xulrunner xv xvid xvmc zlib zvbi" 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 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" DVB_CARDS="usb-umt usb-dib0700 dibusb-usb2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr en_US" USERLAND="GNU" VIDEO_CARDS="vesa radeon radeonhd ati"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Maybe somes are my fault or ok to ignore; but 2.18-r4 was fine, thus i'm unsure I want to install it.
Comment 1 SpanKY gentoo-dev 2008-11-02 09:32:48 UTC
the pax patch needs test updating ... i totally dont feel like doing it atm
Comment 2 PaX Team 2008-11-05 21:47:48 UTC
(In reply to comment #1)
> the pax patch needs test updating ... i totally dont feel like doing it atm

something like http://pax.grsecurity.net/binutils-2.19-pt-pax-flags-200811041810.patch ?
Comment 3 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2008-11-27 03:13:02 UTC
Created attachment 173548 [details]
ld.log selected failures

Failures from LD.log 's test. ( after applying test-patches )
Comment 4 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2008-11-27 03:14:24 UTC
Created attachment 173550 [details]
( Partial ) Replacement for Listed PAX Patch
Comment 5 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2008-11-27 03:18:04 UTC
(In reply to comment #2) 
>> the pax patch needs test updating ... i totally dont feel like doing it atm
>
>something like
>http://pax.grsecurity.net/binutils-2.19-pt-pax-flags-200811041810.patch ?

It would appear the general gist of that patchset has already appeared in the codebase, however, the patches to the test have not been applied, so I hand replicated those changes and generated a patch ( attached ) that replicated those tests changes. 

However, they don't appear to have any bearing of the results of the tests. I have attached ( earlier ) a log from the test suite after applying the patch, and it would appear that there is much more wrong with it in things not affected by the patch. 

Comment 6 Kent Fredric (IRC: kent\n) (RETIRED) gentoo-dev 2008-11-27 03:35:56 UTC
Created attachment 173552 [details]
Misc emerge/paludis --info  datas

Attaching this diagnosis  because I find it intruiging how: 

1) We have similar processors
2) We have similar CFLAGS 
3) We have similar LDFLAGS

( Although you'll note, env data from the build says the cflags are stripped back to sane value )
Comment 7 SpanKY gentoo-dev 2008-11-28 04:44:04 UTC
pax guys: that patch includes fix ups for x86 only ... in the past i had to fixup the tests for every arch

the test changes in general should be much simpler than in the past as i changed upstream's regexes a bit to be more general
Comment 8 SpanKY gentoo-dev 2008-11-28 05:43:55 UTC
ive fixed most x86_64 failures and tweak the i386 tests

http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.19/63_all_binutils-2.19-pt-pax-flags-20081101.patch
Comment 9 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-12-21 03:13:34 UTC
(In reply to comment #8)
> ive fixed most x86_64 failures and tweak the i386 tests
> 
> http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.19/63_all_binutils-2.19-pt-pax-flags-20081101.patch
> 

With patch applied:
# of expected passes            427
# of unexpected failures        20
# of expected failures          57
Comment 10 Andrew Savchenko gentoo-dev 2009-08-18 22:06:36 UTC
The similar problem here:
2.19.1-r1 fails with 43 unexpected failures on two ~x86 boxes with glibc-2.10.1.

2.19.1-r1 doesn't build with USE="vanilla", but 2.19.51.0.14 build OK with USE="vanilla" and passes all tests successfully. Moreover, it compiles OK =x11-drivers/xf86-video-intel-2.8.0, while ld from 2.19.1-r1 segfaults at linking of intel video driver.
Comment 11 SpanKY gentoo-dev 2010-03-08 04:44:11 UTC
binutils-2.20-r1 and binutils-2.20.1 should pass all tests now.  if you hit a
failure after syncing, file a new report.