Y2038 Problem
#1
Y2038 Problem
Hey pals, I am curious I was just reading an article about all the crazy issues going on with y2k patches that broke this year with the 2020 rollover. [article here]. I am not sure why I did not think about the 2038 problem as it relates to my pretty little collection of SGI machines- but I am thinking about it now.

I am not at home and will have to fire some machines up and roll their clocks to see what breaks. Is there anything we should consider? With the OS being closed source if there is anything low level broken I guess we just wont be able to have accurate clocks anymore? Not sure what all this could break from a software and services standpoint. 

Thoughts? 

[Year 2038 Wiki Page with nice animation here]
CRM114
Indigo without the go

Trade Count: (0)
Posts: 3
Threads: 1
Joined: Aug 2018
Find Reply
01-08-2020, 10:24 PM
#2
RE: Y2038 Problem
IRIX is affected by the Y2038 issue AFAIK. There's no good solution to fixing legacy software that stores the time value:

SSL won't work
Old browsers and services won't work over SSL
Any commercial software using date codes will fail somehow
Kerberos, SSH and other services may be affected

There's no way to fix this issue other than if we rebuild the OS from FOSS parts, and either change the 32-bit signed value to unsigned (Will affect anything doing dating before 1970) or to a 64-bit signed. Even incrementing it to an odd value like 48 bits won't fix anything more effectively.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-09-2020, 12:27 AM
#3
RE: Y2038 Problem
(01-09-2020, 12:27 AM)Raion Wrote:  IRIX is affected by the Y2038 issue AFAIK.
Indeed, all IRIX versions use a 32-bit signed integer type for time_t, and will rollover in 2038.
miod
Grumpy Old Fart

Trade Count: (0)
Posts: 30
Threads: 0
Joined: May 2018
Find Reply
01-09-2020, 10:29 AM
#4
RE: Y2038 Problem
Well, that kind of adds motivation for a FOSS IRIX clone then huh.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-09-2020, 08:39 PM
#5
RE: Y2038 Problem
Hmm, I have read somewhere that IRIX64 is not affected by this issue.

SGI: Indigo 2, Origin 200(not currently working)
Sun: SS5, SS10, SS20, U5, U10, Ultra1 170E C3D, Blade 100, Blade 1500 Silver, Blade 2500 Silver, U45, E250, E450, T1000, T2000, M3000
sunray
Indigo2 R10000

Trade Count: (0)
Posts: 71
Threads: 8
Joined: Oct 2018
Location: Sweden
Find Reply
01-20-2020, 10:13 PM
#6
RE: Y2038 Problem
(01-20-2020, 10:13 PM)sunray Wrote:  Hmm, I have read somewhere that IRIX64 is not affected by this issue.

Wrong

Code:
janjaap@speedo:~$ uname -a

IRIX64 speedo 6.5 07202013 IP35


Code:
#include <stdio.h>
#include <time.h>

int main(void)
{
        printf("sizeof(time_t) = %ld\n", sizeof(time_t));
        return 0;
}


32 bit
Code:
janjaap@speedo:~$ cc -o hello hello.c
janjaap@speedo:~$ ./hello
sizeof(time_t) = 4

64bit

Code:
janjaap@speedo:~$ cc -64 -o hello hello.c
janjaap@speedo:~$ ./hello
sizeof(time_t) = 4
(01-09-2020, 08:39 PM)Raion Wrote:  Well, that kind of adds motivation for a FOSS IRIX clone then huh.

The problem is in the IRIX C library. As long as you don't use the time functions from the C library you're fine. You could for example relink your applications against a small static library with time functions based on a 64bit time_t. But first we'll have to see how many IRIX systems are still running in 2038.

FWIW: IRIX 4 isn't even Y2K compliant and that doesn't stop me from using on some of my systems.
jan-jaap
SGI Collector

Trade Count: (0)
Posts: 1,048
Threads: 37
Joined: Jun 2018
Location: Netherlands
Website Find Reply
01-21-2020, 08:19 AM
#7
RE: Y2038 Problem
(01-21-2020, 08:19 AM)jan-jaap Wrote:  
(01-20-2020, 10:13 PM)sunray Wrote:  Hmm, I have read somewhere that IRIX64 is not affected by this issue.

Wrong

Code:
janjaap@speedo:~$ uname -a

IRIX64 speedo 6.5 07202013 IP35


Code:
#include <stdio.h>
#include <time.h>

int main(void)
{
        printf("sizeof(time_t) = %ld\n", sizeof(time_t));
        return 0;
}


32 bit
Code:
janjaap@speedo:~$ cc -o hello hello.c
janjaap@speedo:~$ ./hello
sizeof(time_t) = 4

64bit

Code:
janjaap@speedo:~$ cc -64 -o hello hello.c
janjaap@speedo:~$ ./hello
sizeof(time_t) = 4
(01-09-2020, 08:39 PM)Raion Wrote:  Well, that kind of adds motivation for a FOSS IRIX clone then huh.

The problem is in the IRIX C library. As long as you don't use the time functions from the C library you're fine. You could for example relink your applications against a small static library with time functions based on a 64bit time_t. But first we'll have to see how many IRIX systems are still running in 2038.

FWIW: IRIX 4 isn't even Y2K compliant and that doesn't stop me from using on some of my systems.
Yepp, that speaks for itself, its a pity but it's a few years still to run for the machines and us Biggrin

SGI: Indigo 2, Origin 200(not currently working)
Sun: SS5, SS10, SS20, U5, U10, Ultra1 170E C3D, Blade 100, Blade 1500 Silver, Blade 2500 Silver, U45, E250, E450, T1000, T2000, M3000
sunray
Indigo2 R10000

Trade Count: (0)
Posts: 71
Threads: 8
Joined: Oct 2018
Location: Sweden
Find Reply
01-21-2020, 10:10 PM
#8
RE: Y2038 Problem
All it requires is for us to come together as a community for a FOSS version of IRIX from scratch.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,239
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
01-22-2020, 01:11 AM


Forum Jump:


Users browsing this thread: 2 Guest(s)