From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!Xl.tags.giganews.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!local2.nntp.dca.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 04 May 2015 08:28:04 -0500 From: Dennis Lee Bieber Newsgroups: comp.lang.ada Subject: Re: Boeing 787 integer overflow Date: Mon, 04 May 2015 09:28:05 -0400 Organization: IISS Elusive Unicorn Message-ID: References: <201505021834588468-rblove@airmailnet> <9f20f713-d65c-471d-ab7c-d314a14fdcd0@googlegroups.com> <3e8a4ac6-b0cd-445d-8e9c-82ce8f7f9fee@googlegroups.com> X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Usenet-Provider: http://www.giganews.com NNTP-Posting-Host: 108.68.176.228 X-Trace: sv3-U6FDG7kSFE1By20Jr0NXqUCy9J8tyu/8H2EMH6i5oqxn8laaeBJQTCJziDVq2dhVm1bLJBrs4wUXQAh!2GbKQqPJnxPyVgKjDiXGnBMkFcYPwqpaAxIoSxQHS6+U0hp2ayBABPIA3R//S0G9CZcSji40ygjK!RRFbsLWYQ4eZPhFoGywXQ5gHhIhH X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 3010 Xref: news.eternal-september.org comp.lang.ada:25728 Date: 2015-05-04T09:28:05-04:00 List-Id: On Mon, 04 May 2015 10:28:59 +0200, Georg Bauhaus declaimed the following: >On 04.05.15 01:54, robin.vowels@gmail.com wrote: >>> A software fix might be nice, such as increasing the counter to 64 bits to >>> >push the overflow time out to something ridiculous, >> That isn't the solution. >> The solution is to have an appropriate error handler. > >If the variable has system-wide effects, I think error >handling would require a little more than a few lines of >code for overflow. Also provided that detecting overflow can >be made fast enough in the first place. > >So, if the bit size could be increased without affecting >the system in other ways, this looks like a much cheaper >solution to me. Hardware changes are unlikely... Would probably entail a multiple man-year effort to design and certify a new processor board, along with new software on the board to handle the changes in the hardware... I wouldn't be overly surprised to find the actual flight operations don't care about the roll-over... It could be something as simple as a poorly written built-in test algorithm that gets run periodically (every 5 minutes say). Maybe a test for counter operation that relies upon "current value > previous value"; which, upon finding a current value suddenly less than the value the last time it ran, declares the unit faulty and shuts it down. The stop-gap directive seems to be to perform an action that resets the counter and the test values (since just restarting the software woud pick up the values that had been in play). -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/