SIGFPE in CVS HEAD

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Fri Apr 1 11:37:00 GMT 2011


On Wed, 2011-03-30 at 10:56 +0200, Corinna Vinschen wrote:
> The only possible cause for this line throwing an exception is if
> resolution is 0.  That should be impossible, unless the
> NtQueryTimerResolution function returns a resolution < 10000.  Since the
> function returns values in 100ns intervals, this would result in a
> resolution < 1 ms.  Since the resolution of the hires_ms class is in
> milliseconds, it would be 0.
> 
> Here's what NtQueryTimerResolution returns on my systems:
> 
> XP 32 bit: coarsest: 156250, finest: 10000, actual: 156250
> W7 32 bit: coarsest: 156001, finest: 5000, actual: 156000
> 
> XP 64 bit: coarsest: 156250, finest: 10000, actual: 156250
> W7 64 bit: coarsest: 156001, finest: 5000, actual: 10000

I'm running W7 x64, and this is what I saw as well.  But wouldn't the
"actual" number float, meaning that it could go as low as the "finest"
number?

> Anyway, I'll make sure that resolution is never < 1.

With that change, CVS HEAD is WFM again.

Thanks,


Yaakov




More information about the Cygwin-developers mailing list