From danq at runbox.com Tue Jul 7 03:35:14 2009 From: danq at runbox.com (Daniel Quintiliani) Date: Mon, 06 Jul 2009 21:35:14 -0400 Subject: [Year 2038 Bug] Questions Message-ID: <4A52A652.5060104@runbox.com> Hi, I've known about the Y2038 bug for quite some time, but had some questions about your site: 1. Doesn't putting invalid values into variables (e.g. UNIX time being higher than INT_MAX) cause overflows/crashes rather than minimal Y2K "wrapping around" issues (or letters showing up in the case of Windows 3.1) you mention on the site? 2. Some time ago I tried setting the clock ahead on my computer. 32-bit Slackware Linux wouldn't even allow it, but 32-bit Windows XP SP3 was perfectly fine with years after 2038. 3. What's the highest UNIX time value/date for 64-bit systems/OSes? Thanks, -- -Dan Q www.danqrules.com "Truth is not determined by a majority vote" -Pope Benedict XVI "The current state of moral degeneration, social disintegration, and cultural rot is precisely the result of too much - and above all erroneous and misconceived - tolerance." -Hans Hermann-Hoppe v4sw7CJUhw4ln5pr7OSFPck2ma7u5Lw6DWXGm?l7Si852Ne6t2/4MAb9OMen6g5ATOCPa2Xs2r4/5p3/-3 hackerkey.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 258 bytes Desc: OpenPGP digital signature Url : http://2038bug.com/pipermail/general/attachments/20090706/744d3db7/attachment.bin From paulsheer at gmail.com Tue Jul 7 10:46:39 2009 From: paulsheer at gmail.com (Paul Sheer) Date: Tue, 7 Jul 2009 10:46:39 +0200 Subject: [Year 2038 Bug] Questions In-Reply-To: <4A52A652.5060104@runbox.com> References: <4A52A652.5060104@runbox.com> Message-ID: > > 1. Doesn't putting invalid values into variables (e.g. UNIX time being > higher than INT_MAX) cause overflows/crashes rather than minimal Y2K > "wrapping around" issues (or letters showing up in the case of Windows > 3.1) you mention on the site? each application is different. One application might just display the wrong time, another may do a "core dump" (= "Fatal Exception" on windows), another may just hang up and not respond. It all depends on the code the programmer has written. Unix is composed of hundreds of individual programs and libraries some interdependent some not, some safe, some not. Most will work fine once the underlying operating system has been corrected. > > 3. What's the highest UNIX time value/date for 64-bit systems/OSes? 2^(64-1) / (365.25 * 24 * 60 * 60) = 300 billion years -paul From neil at fnxweb.com Mon Jul 13 09:26:48 2009 From: neil at fnxweb.com (Neil Bird) Date: Mon, 13 Jul 2009 08:26:48 +0100 Subject: [Year 2038 Bug] Compiler warnings, FYI Message-ID: <4A5AE1B8.9050106@fnxweb.com> [ I think the post I made last week went AWOL in our IT systems, so I'm reposting; apologies if it comes through twice ] Compiling latest svn against gcc 4.4.0: gcc44 -Wall -ansi -pedantic -Wno-long-long -Wextra -Wdeclaration-after-statement -Wendif-labels -Wconversion -g -I. -c -o time64.o time64.c time64.c: In function ?timegm64?: time64.c:186: warning: conversion to ?int? from ?Year? may alter its value time64.c:191: warning: conversion to ?int? from ?Year? may alter its value time64.c: In function ?seconds_between_years?: time64.c:445: warning: conversion to ?int? from ?Year? may alter its value time64.c:450: warning: conversion to ?int? from ?Year? may alter its value time64.c: In function ?gmtime64_r?: time64.c:508: warning: conversion to ?time_t? from ?Time64_T? may alter its value time64.c:510: warning: implicit declaration of function ?gmtime_r? time64.c:598: warning: conversion to ?int? from ?Year? may alter its value time64.c: In function ?localtime64_r?: time64.c:633: warning: conversion to ?time_t? from ?Time64_T? may alter its value time64.c:637: warning: implicit declaration of function ?localtime_r? time64.c:660: warning: conversion to ?time_t? from ?Time64_T? may alter its value time64.c:661: warning: comparison between pointer and integer time64.c:668: warning: conversion to ?int? from ?Year? may alter its value There are a few more in the test building, but I've not captured those. -- [neil at fnx ~]# rm -f .signature [neil at fnx ~]# ls -l .signature ls: .signature: No such file or directory [neil at fnx ~]# exit From neil at fnxweb.com Fri Jul 10 12:14:03 2009 From: neil at fnxweb.com (Neil Bird) Date: Fri, 10 Jul 2009 11:14:03 +0100 Subject: [Year 2038 Bug] Compiler warnings, FYI Message-ID: <4A57146B.2080407@fnxweb.com> <<< No Message Collected >>>