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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7e8cebf09cf80560,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!k15g2000prk.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Elias_Salom=E3o_Helou_Neto?= Newsgroups: comp.lang.ada Subject: How would Ariane 5 have behaved if overflow checking were not turned off? Date: Mon, 14 Mar 2011 08:49:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 189.103.24.251 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1300117750 23342 127.0.0.1 (14 Mar 2011 15:49:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 14 Mar 2011 15:49:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k15g2000prk.googlegroups.com; posting-host=189.103.24.251; posting-account=8auP9QoAAACkSx2qxJhP83KA6-tg78E8 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.8 SUSE/7.0.528.0 (KHTML, like Gecko) Chrome/7.0.528.0 Safari/534.8,gzip(gfe) Xref: g2news1.google.com comp.lang.ada:18175 Date: 2011-03-14T08:49:10-07:00 List-Id: I have followed the (quite lenghty) on a topic, IIRC, about bitwise operators, which eventually lead to people mentioning the Ariane 5 case. Since then I have been wondering. If compiler checking where actually turned on, what would have happened? How could it avoid the disaster? Right now I think of three possibilities, the two former seem very unlikely to me. a) It would, even if the problem went undetected during testing, have made the developers actually develop code handling this exceptional possibility. b) The compiler default action for unhandled overflows have saved the day; c) Developers would probably ignore the exceptional flow path and the disaster would happen anyway. Which one, if any, is close to reality?