Summary: | sys-devel/gcc-4.4.4 miscompiles linux-2.6.35.2+ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Graham Murray <gmurray> |
Component: | [OLD] Core system | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | caster, david+gentoo.org |
Priority: | High | Keywords: | Inclusion |
Version: | 10.0 | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | http://gcc.gnu.org/PR45312 | ||
Whiteboard: | linux-2.6.35.2-regression | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 915000 | ||
Attachments: | Kernel configuration |
Description
Graham Murray
2010-08-24 11:42:12 UTC
Created attachment 244395 [details]
Kernel configuration
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. 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. 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 Confirming the problem (tested only -r[23] so far). Gonna try vanilla-sources-2.6.35.4 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. Assigning to gcc maintainers. Added to patchset. http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.4.4/gentoo/50_all_pr45312-kernel-miscompile.patch?rev=1.1&view=markup http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.1/gentoo/50_all_pr45312-kernel-miscompile.patch?rev=1.1&view=markup Fixed in 4.4.4-r2 and 4.5.1. |