From: Robin Green Subject: Re: Floating Point Exception when compiling w/ gcc Date: Tue, 22 Feb 2005 14:26:32 -0500 (EST) Message-ID: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: xen-devel-admin@lists.sourceforge.net Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org On Tue, 22 Feb 2005, Georgi Mungov wrote: > Hi, > 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) { save_init_fpu(prev_p); queue_multicall0(__HYPERVISOR_fpu_taskswitch); + } 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! -- Robin ------------------------------------------------------- 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. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click