public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* fyi: gcc33-hammer crashes when compiling kvm emulate.c
@ 2010-10-26 12:38 Andi Kleen
  2010-10-26 16:34 ` H. Peter Anvin
  0 siblings, 1 reply; 10+ messages in thread
From: Andi Kleen @ 2010-10-26 12:38 UTC (permalink / raw)
  To: linux-kvm, avi, hpa; +Cc: linux-kernel

Hi,

While doing a test run with the minimum supported compiler
I found:

An old gcc 3.3-hammer segfaults when compiling the current KVM
emulate.c (or rather in x86_emulate_insns) on x86-64.

The compiler goes into an endless recursion in validate_rtx and then
eventually overflows the stack and dies.

I minimized a test case, but didn't find a workaround
(minimized test case http://halobates.de/emulate-min.i)

My guess it's related to some of the inline assembler uses.

This might be an excuse to bump the minimum compiler version again.

-andi

-- 
ak@linux.intel.com -- Speaking for myself only.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2010-10-27 17:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-26 12:38 fyi: gcc33-hammer crashes when compiling kvm emulate.c Andi Kleen
2010-10-26 16:34 ` H. Peter Anvin
2010-10-26 16:37   ` Andi Kleen
2010-10-26 16:46     ` H. Peter Anvin
2010-10-26 17:01       ` Andi Kleen
2010-10-26 18:19         ` H. Peter Anvin
2010-10-26 20:27           ` Andi Kleen
2010-10-26 20:37             ` H. Peter Anvin
2010-10-27 10:50               ` Avi Kivity
2010-10-27 17:00                 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox