New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
times() function overflows after 49.7 days (2**32 millisec) #13086
Comments
From kjohnstn@sbcglobal.netThis is a bug report for perl from kjohnstn@sbcglobal.net, Here is an extract from a log of a program that runs basically forever. #7 3 3 2 2 2 2 3 2 1 3 3 3 2 2 1 0 1 1 1 3 3 3 2 2 1 1 1 3 2 1 0 0 1 1 1 (If the lines get wrapped in mailing, every original line begins and Notice the last few "times" are all the same: 17637359757.92. That's an Everything is fine up to time 4293365.19, then all following timestamps Something is overflowing a 32 bit value: (2**32)millisec is I don't know for sure whether the overflow is in perl or in the OS, but Flags: This perlbug was built using Perl 5.12.4 in the Fedora build system. Site configuration information for perl 5.12.4: Configured by Red Hat, Inc. at Mon May 14 12:46:27 UTC 2012. Summary of my perl5 (revision 5 version 12 subversion 4) configuration: Platform: Locally applied patches: @INC for perl 5.12.4: Environment for perl 5.12.4: PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/real/RealPlayer:/home/tk/bin:/opt/real/RealPlayer |
From @cpansproutOn Fri Jul 05 19:21:55 2013, kjohnstn wrote:
The value returned by the OS is of type clock_t. pp_tms in pp_sys.c I don’t know enough about C to know whether that has anything to do with it. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @LeontOn Fri Jul 05 19:21:55 2013, kjohnstn wrote:
POSIX has a caveat that starts with «If the type clock_t is defined to That said, the 17637359757.92 value is strange. It's 2**44 milliseconds, Leon |
From @bulk88On Fri Jul 05 20:39:56 2013, sprout wrote:
Here is a infamous 50 day overflow time function (GetTickCount) in -- |
Migrated from rt.perl.org#118777 (status was 'open')
Searchable as RT118777$
The text was updated successfully, but these errors were encountered: