Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 334269 (PR45312) - sys-devel/gcc-4.4.4 miscompiles linux-2.6.35.2+
Summary: sys-devel/gcc-4.4.4 miscompiles linux-2.6.35.2+
Status: RESOLVED FIXED
Alias: PR45312
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR45312
Whiteboard: linux-2.6.35.2-regression
Keywords: Inclusion
Depends on:
Blocks: 915000
  Show dependency tree
 
Reported: 2010-08-24 11:42 UTC by Graham Murray
Modified: 2023-10-01 06:05 UTC (History)
2 users (show)

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


Attachments
Kernel configuration (.config,66.21 KB, text/plain)
2010-08-24 11:43 UTC, Graham Murray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Murray 2010-08-24 11:42:12 UTC
With both 2.6.35-gentoo-r2 & 2.6.35-gentoo-r3, booting gets as far as displaying 'Freeing unused kernel memory', hangs for a while and reboots back to the BIOS and grub menu. Kernels 2.6.35-r1 and earlier boot and run with no problem. On upgrading, 'make oldconfig' only showed 1 difference 'CONFIG_CRYPTO_MANAGER_TESTS'. I tried setting this to both Y and N but this made no difference - the system rebooted in the same place.


Portage 2.2_rc68 (default/linux/x86/10.0/desktop/gnome, gcc-4.4.4, glibc-2.12.1-r1, 2.6.35-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.35-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_E8200_@_2.66GHz-with-gentoo-2.0.1
Timestamp of tree: Tue, 24 Aug 2010 09:05:01 +0000
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.2
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.5, 4.4.4-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.35 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -mtune=native -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/bind /var/lib/hsqldb"
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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/portage /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 -march=native -mtune=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests buildsyspkg distlocks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/ http://gentoo.tiscali.nl/ http://mirror.ovh.net/gentoo-distfiles/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.snt.utwente.nl/pub/os/linux/gentoo"
LANG="en_GB.UTF-8"
LC_ALL="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_GB en"
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="/var/lib/layman/sunrise /var/lib/layman/x11 /var/lib/layman/liquidx /usr/portage/local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 avahi bash-completion berkdb branding bzip2 cairo caps cdr cli consolekit cracklib crypt cups curl cvs cxx dbus doc dri dts dvd dvdr eds emacs emboss encode evo examples exif expat fam ffmpeg flac fortran gd gdbm gdu geoip gif gnome gnome-keyring gnutls gpm gstreamer gtk gtkhtml hal htmlhandbook iconv idn imagemagick imlib ipv6 java jpeg kde kdehiddenvisibility lcms ldap libnotify libsamplerate logrotate lzma lzo mad mikmod mmap mmx mng modules mono mp3 mp4 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit postgres ppds pppd pulseaudio python qt3support qt4 readline reflection samba sdl semantic-desktop session speex spell spl sqlite sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcl tcpd theora threads tiff tk truetype unicode usb vim-syntax vorbis x264 x86 xattr xcb xcomposite xml xorg xulrunner xv xvid zlib" ALSA_CARDS="intel-hda" 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nouveau" 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, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Graham Murray 2010-08-24 11:43:08 UTC
Created attachment 244395 [details]
Kernel configuration
Comment 2 Graham Murray 2010-08-25 08:09:42 UTC
I have now installed gentoo-sources-2.6.35-r4 and this fails to boot in the same was as -r2 & -r3. I have also done a git pull from the main Linus 2.6 tree and this (2.6.36-rc2-00203-g502adf5) boots with no problems.

Unfortunately, I do not think it is possible to use git-bisect on the gentoo-sources to find the patch causing the boot failure.
Comment 3 Mike Pagano gentoo-dev 2010-08-25 14:43:51 UTC
Can you do a git bisect between 2.6.35.1 and 2.6.35.2?

Maybe confirm first that .1 works and .2 does not.
Comment 4 Graham Murray 2010-08-26 09:15:22 UTC
I have bisected it. 

568132624386f53e87575195d868db9afb2e9316 is the first bad commit
commit 568132624386f53e87575195d868db9afb2e9316
Author: H. Peter Anvin <hpa@zytor.com>
Date:   Tue Jul 27 17:01:49 2010 -0700

    x86: Add memory modify constraints to xchg() and cmpxchg()
    
    commit 113fc5a6e8c2288619ff7e8187a6f556b7e0d372 upstream.
    
    xchg() and cmpxchg() modify their memory operands, not merely read
    them.  For some versions of gcc the "memory" clobber has apparently
    dealt with the situation, but not for all.
    
    Originally-by: Linus Torvalds <torvalds@linux-foundation.org>
    Signed-off-by: H. Peter Anvin <hpa@zytor.com>
    Cc: Glauber Costa <glommer@redhat.com>
    Cc: Avi Kivity <avi@redhat.com>
    Cc: Peter Palfrader <peter@palfrader.org>
    Cc: Greg KH <gregkh@suse.de>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Cc: Zachary Amsden <zamsden@redhat.com>
    Cc: Marcelo Tosatti <mtosatti@redhat.com>
    LKML-Reference: <4C4F7277.8050306@zytor.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

:040000 040000 4bbfbd009db6441b0b30297acc5a04732b9c215e dadbcfd4cb8cb59f0ef3bef9bfc57880eb926179 M	arch
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-08-27 16:33:17 UTC
Confirming the problem (tested only -r[23] so far). Gonna try vanilla-sources-2.6.35.4
Comment 6 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-08-27 16:54:55 UTC
Related:

https://bugzilla.kernel.org/show_bug.cgi?id=16612

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45312

Seems it's gcc-4.4.4 bug.
Comment 7 Mike Pagano gentoo-dev 2010-09-02 15:15:18 UTC
Assigning to gcc maintainers.

Comment 9 Ryan Hill (RETIRED) gentoo-dev 2010-09-16 04:49:41 UTC
Fixed in 4.4.4-r2 and 4.5.1.