This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: SIGFPE in CVS HEAD
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin-developers at cygwin dot com
- Date: Fri, 01 Apr 2011 06:37:34 -0500
- Subject: Re: SIGFPE in CVS HEAD
- References: <AANLkTikRFB6gnFcKzxa631guJc9YS=nnKfqzZDBuhvOk@mail.gmail.com> <20110330085640.GC28987@calimero.vinschen.de>
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