News for hackers. Stuff that matters.
Re:Some models of Airbus A350 airliners need to be hard-rebo... by hoseja on Thursday July 25, 2019 @09:08AM (#20525031)
That is 2^29 milliseconds. I dread to imagine the reasons leading to 28-bit millisecond time in an airplane.
Re:Some models of Airbus A350 airliners need to be hard-rebo... by srcmap on Thursday July 25, 2019 @09:28AM (#20525185)
I first encountered such bug way back in 1996 time frame. When I tested embedded system nonestop for ~25 days and system has issue. It is counter wrap around time for 2^31 if counting once every millisecond.

From that point on, I make sure test cover counter wrap around in 2^31, 2^32 etc. Until one day, someone told me the system I worked on, deploy in Comcast data center has issue after ~250 days......

I used hearing news about Newton, Win98, 777 etc has issue after 25 days, 49 days, etc. It is very easy to guess what the potential issues were.

Re:Some models of Airbus A350 airliners need to be hard-rebo... by pcl on Thursday July 25, 2019 @09:45AM (#20525281)
Presumably someone is using the high four bits for some other purpose. It wouldn't surprise me if parts of an A350's avionics software is old enough that those sorts of space optimizations made sense.
Re:Some models of Airbus A350 airliners need to be hard-rebo... by datenwolf on Thursday July 25, 2019 @10:50AM (#20525836)
It could also be a tagged value. These are quite common in code created by "high reliability" languages (Ada, OCaml). The high bits are used to carry some metadata.

E.g. you might want to set a certain bit if the value went outside the defined input range of a function (think for example far from the accepted numerical window of a Taylor series expansion). Instead of dealing error conditions at each and every step (thereby making the timing properties of the code unpredictable) you just collect all error conditions and at the end decide if you discard the value, or just use it partially (e.g. it might still be "good enough" to be used as a parametizing input of an adaptive filter, where it averages out with the rest).

Re:Some models of Airbus A350 airliners need to be hard-rebo... by K2L8M11N2 on Thursday July 25, 2019 @10:22AM (#20525569)
Maybe it’s counting in microseconds?
Re:Some models of Airbus A350 airliners need to be hard-rebo... by hoseja on Friday July 26, 2019 @01:31AM (#20532595)
Then it would be ~153 hours to be near a bit overflow.