WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Floating Point Exception

Cody Jarrett, le Fri 11 Jul 2008 11:27:35 -0500, a écrit :
> It seems to happen randomly when executing the 'rpm' or 'yum'  
> commands. It happens on centos 5, 5.1, and 5.2 machines while using  
> the xen kernel and on 3 of my completely different servers. When it  
> does happen, all the strace outputs seem to be the same, encountering  
> the SIGFPE after the second gettimeofday. What should I provide to  
> help track this issue down?

Well, I had a look at the rpm code, and it's quite bogus: it uses
gettimeofday() to measure the time taken by nanosleep(20ms). There is
no way that can reliably work in all environments, virtualized or not,
since the resolution of gettimeofday may be >20ms (posix even says it is
unspecified). The attached patch should fix that, but I guess it'll be
hard to get it applied to all rpm-based distributions :/

Samuel

Attachment: patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>