[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Floating Point Exception when compiling w/ gcc

On Tue, 22 Feb 2005, Georgi Mungov wrote:
I've received twice a floating point exception on a different virtual machines
during compilation. The first time it was with mysql, the second - kernel
2.6.0. After I ran "make" again the compilation finished without problems.

I found a floating-point bug in xen-unstable, which, since I don't know
what causes it, might also be present in xen 2.0.4. (See thread
"reproducable data corruption in xen-unstable".)

HOWEVER, I did create a workaround patch, which effectively solves the
problem for me. Remember to apply this patch both to xen0 and xenU
kernels. Here it is:

--- arch/xen/i386/kernel/process.c.orig 2005-02-12 03:39:44.000000000 +0000
+++ arch/xen/i386/kernel/process.c      2005-02-13 02:46:03.000000000 +0000
@@ -563,6 +563,8 @@
          if (prev_p->thread_info->status & TS_USEDFPU) {
+       } else {
+               stts ();


I'm using Xen 2.0.4 build from sources on kernel 2.6.10 installed on standard
slackware 9.1. The machine is PIII w/ 512MB ram running 4 VM, each with 64MB
ram. The two errors happened on different VM.

My machine is an Athlon XP, so this shows that it isn't some strange
AMD-only bug (unless of course you have found a _different_
floating-point bug). Thanks for the bug report!


SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.