Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Software glitch brings Y2K deja vu

Software glitch brings Y2K deja vu

Scheduled Pinned Locked Moved The Lounge
htmlcomannouncement
8 Posts 6 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Steve Mayfield
    wrote on last edited by
    #1

    "Software running on thousands of computers worldwide will become inoperable in a few weeks because of an obscure date-related glitch, and developers are rushing to create and apply patches." This affects some Unix systems. Full Story[^] Steve

    J T M 3 Replies Last reply
    0
    • S Steve Mayfield

      "Software running on thousands of computers worldwide will become inoperable in a few weeks because of an obscure date-related glitch, and developers are rushing to create and apply patches." This affects some Unix systems. Full Story[^] Steve

      J Offline
      J Offline
      Jorgen Sigvardsson
      wrote on last edited by
      #2

      There's a reason for ya to use unsigned every now and then.. :rolleyes: -- "We shall crush you down to the point, where there is no coming back, things will happen to you from which you could not recover if you lived a thousand years, a thousand years."

      T 1 Reply Last reply
      0
      • J Jorgen Sigvardsson

        There's a reason for ya to use unsigned every now and then.. :rolleyes: -- "We shall crush you down to the point, where there is no coming back, things will happen to you from which you could not recover if you lived a thousand years, a thousand years."

        T Offline
        T Offline
        Tim Smith
        wrote on last edited by
        #3

        *cough* time_t Tim Smith I'm going to patent thought. I have yet to see any prior art.

        1 Reply Last reply
        0
        • S Steve Mayfield

          "Software running on thousands of computers worldwide will become inoperable in a few weeks because of an obscure date-related glitch, and developers are rushing to create and apply patches." This affects some Unix systems. Full Story[^] Steve

          T Offline
          T Offline
          Terry ONolley
          wrote on last edited by
          #4

          I don't quite get it. i read the article and came across this line: The flaw involves the way the programs handle date entries, Gavaghan said. To be able to recognize dates, PTC programmers had to set a date for infinity. They chose 2 billion seconds since 1970 That number brings PTC software up to Jan. 10. After that, the software will be unable to recognize dates and will no longer operate. When I did the math, I only came up with 1073088000 seconds between Jan 1st, 1970 and Jan. 1st 2004. You wouldn't hit 2 billion until 2033. But they did offer this reassurance: It's not something where they would lose data," Gavaghan said. "The software just stops working.


          Have you answered an MTQ? Check out the stats!
          What's the latest butt-scratch count? Check it out!

          S A 2 Replies Last reply
          0
          • T Terry ONolley

            I don't quite get it. i read the article and came across this line: The flaw involves the way the programs handle date entries, Gavaghan said. To be able to recognize dates, PTC programmers had to set a date for infinity. They chose 2 billion seconds since 1970 That number brings PTC software up to Jan. 10. After that, the software will be unable to recognize dates and will no longer operate. When I did the math, I only came up with 1073088000 seconds between Jan 1st, 1970 and Jan. 1st 2004. You wouldn't hit 2 billion until 2033. But they did offer this reassurance: It's not something where they would lose data," Gavaghan said. "The software just stops working.


            Have you answered an MTQ? Check out the stats!
            What's the latest butt-scratch count? Check it out!

            S Offline
            S Offline
            Steve Mayfield
            wrote on last edited by
            #5

            I suspect they use a resolution of less than 1 second per unit - perhaps 500 ms per unit? Steve

            J 1 Reply Last reply
            0
            • S Steve Mayfield

              I suspect they use a resolution of less than 1 second per unit - perhaps 500 ms per unit? Steve

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #6

              Nope. The UNIX timestamp has a resolution of 1 second so that it is "portable". -- "We shall crush you down to the point, where there is no coming back, things will happen to you from which you could not recover if you lived a thousand years, a thousand years."

              1 Reply Last reply
              0
              • T Terry ONolley

                I don't quite get it. i read the article and came across this line: The flaw involves the way the programs handle date entries, Gavaghan said. To be able to recognize dates, PTC programmers had to set a date for infinity. They chose 2 billion seconds since 1970 That number brings PTC software up to Jan. 10. After that, the software will be unable to recognize dates and will no longer operate. When I did the math, I only came up with 1073088000 seconds between Jan 1st, 1970 and Jan. 1st 2004. You wouldn't hit 2 billion until 2033. But they did offer this reassurance: It's not something where they would lose data," Gavaghan said. "The software just stops working.


                Have you answered an MTQ? Check out the stats!
                What's the latest butt-scratch count? Check it out!

                A Offline
                A Offline
                Andy Hassall
                wrote on last edited by
                #7

                Probably just inaccurate reporting; it's unlikely to be 2 billion, it'll be 2^31-1 = 2147483647, i.e. max positive range of a signed 32-bit integer. Which represents the date when Unix times break, in 2038. Not 4 billion. One way to buy a few more years would be to make time_t unsigned so it would go up to 2^32-1 = 4294967295. Or go 64-bit which buys you considerably more time! They probably saw the 2 billion somewhere, then saw this company's software broke halfway to that and doubled instead of halving. 2^30-1 is 1073741823, which matches up.


                Andy Hassall (andy@andyh.co.uk) Space - disk usage analysis tool

                1 Reply Last reply
                0
                • S Steve Mayfield

                  "Software running on thousands of computers worldwide will become inoperable in a few weeks because of an obscure date-related glitch, and developers are rushing to create and apply patches." This affects some Unix systems. Full Story[^] Steve

                  M Offline
                  M Offline
                  Member 96
                  wrote on last edited by
                  #8

                  What a bunch of geniuses they must have had developing that original code, they couldn't forsee a problem using a date scheme that would only work for 6 more years?


                  I support two teams: the Canucks and whoever is playing the Leafs!

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups