КОНФЕРЕНЦІЇ ВНТУ електронні наукові видання, 
Молодь в науці: дослідження, проблеми, перспективи (МН-2027)

Розмір шрифта: 
СИСТЕМАТИЗАЦІЯ ПРИЧИН ПРОГРАМНИХ ЗБОЇВ, ПОВ’ЯЗАНИХ ІЗ ПОХИБКАМИ ЧИСЕЛЬНИХ ОБЧИСЛЕНЬ
Вікторія Анатоліївна Ременяк, Злата Василівна Бондаренко

Остання редакція: 2026-11-29

Анотація


У роботі розглянуто кілька відомих програмних збоїв, причиною яких стали похибки чисельних обчислень: аварію ракети-носія Ariane 5 під час першого запуску в 1996 році, невдале перехоплення ракети Scud системою Patriot у Дахрані в 1991 році та поступове помилкове зниження індексу Ванкуверської фондової біржі. Для кожного випадку описано технічний механізм збою: переповнення під час перетворення 64-розрядного числа з рухомою комою на 16-розрядне ціле, накопичення похибки через неточне двійкове подання числа 0,1 і відкидання розрядів замість округлення. Показано, що величину похибки в усіх випадках можна було оцінити заздалегідь, а до аварій призвели неперевірені припущення щодо діапазонів значень і тривалості роботи, повторне використання коду в нових умовах та недостатнє тестування. Запропоновано заходи, які дозволяють запобігати подібним помилкам.

 

SYSTEMATIZATION OF THE CAUSES OF SOFTWARE FAILURES RELATED TO NUMERICAL COMPUTATION ERRORS

Abstract: The paper considers several well-known software failures caused by numerical computation errors: the loss of the Ariane 5 launcher on its maiden flight in 1996, the failure of the Patriot system to intercept a Scud missile at Dhahran in 1991, and the gradual drift of the Vancouver Stock Exchange index. For each case, the technical mechanism of the failure is described: overflow when converting a 64-bit floating-point value to a 16-bit integer, accumulation of error caused by the inexact binary representation of 0.1, and truncation of digits instead of rounding. It is shown that in all cases the size of the error could have been estimated in advance, and the failures were caused by unchecked assumptions about value ranges and operating time, reuse of code under new conditions and insufficient testing. Measures to prevent such errors are proposed.



Ключові слова


чисельні обчислення; похибка округлення; Ariane 5; Patriot; надійність програмного забезпечення; numerical computation; rounding error; Ariane 5; Patriot; software reliability

Посилання


1.       Goldberg D. What Every Computer Scientist Should Know About Floating-Point Arithmetic / D. Goldberg // ACM Computing Surveys. – 1991. – Vol. 23, № 1. – P. 5–48. – Режим доступу: https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html

 

2.       Floating-Point Arithmetic: Issues and Limitations [Електронний ресурс] // Python Documentation. – Режим доступу: https://docs.python.org/3/tutorial/floatingpoint.html

 

3.       Lions J. L. ARIANE 5 Flight 501 Failure : Report by the Inquiry Board [Електронний ресурс] / J. L. Lions. – Paris, 1996. – Режим доступу: https://www-users.cse.umn.edu/~arnold/disasters/ariane5rep.html

 

4.       Ariane 501 – Presentation of Inquiry Board report : ESA Press Release № 33–1996 [Електронний ресурс]. – Paris : European Space Agency, 1996. – Режим доступу: https://www.esa.int/Newsroom/Press_Releases/Ariane_501_-_Presentation_of_Inquiry_Board_report

 

5.       Patriot Missile Defense: Software Problem Led to System Failure at Dhahran, Saudi Arabia : Report GAO/IMTEC-92-26 [Електронний ресурс]. – Washington : U.S. General Accounting Office, 1992. – Режим доступу: https://www.gao.gov/products/imtec-92-26

 

6.       Skeel R. Roundoff Error and the Patriot Missile / R. Skeel // SIAM News. – 1992. – Vol. 25, № 4. – P. 11. – Режим доступу: https://www-users.cse.umn.edu/~arnold/disasters/Patriot-dharan-skeel-siam.pdf

 

7.       McCullough B. D. The Numerical Reliability of Econometric Software / B. D. McCullough, H. D. Vinod // Journal of Economic Literature. – 1999. – Vol. 37, № 2. – P. 633–665. – Режим доступу: https://www.aeaweb.org/articles?id=10.1257/jel.37.2.633

 

8.       CWE-681: Incorrect Conversion between Numeric Types [Електронний ресурс] // Common Weakness Enumeration. – MITRE Corporation. – Режим доступу: https://cwe.mitre.org/data/definitions/681.html

 

9.       CWE-1339: Insufficient Precision or Accuracy of a Real Number [Електронний ресурс] // Common Weakness Enumeration. – MITRE Corporation. – Режим доступу: https://cwe.mitre.org/data/definitions/1339.html

 

10.     IEEE Standard for Floating-Point Arithmetic : IEEE Std 754-2019 [Електронний ресурс]. – New York : IEEE, 2019. – Режим доступу: https://standards.ieee.org/ieee/754/6210/


Повний текст: PDF