程序错误
程序错误(英語:),是程序设计術語,是指软件运行時因程序本身有错误而造成功能不正常、死机、数据丢失、非正常中断等现象。有些程序错误会造成计算机安全隐患,此时叫漏洞。
![](../I/First_Computer_Bug%252C_1945.jpg.webp)
第一次发现导致计算机错误的飞蛾,也是第一个计算机程序错误。
![](../I/Software_bug_displayed_on_two_screens_at_La_Croix_de_Berny_station_in_France_-_2021-10-28.jpg.webp)
貝爾尼十字架站的當機狀態
![](../I/Guangzhou_metro_ticket_machine_failure_2014-01-25(1).jpg.webp)
广州地铁票务检验机弹出程序出错对话框
一些有趣的隐错有时也会成为一种乐趣。在电脑游戏中,假如一些隐错不令遊戲出現大錯誤的話,经常会变成一种玩游戏时的秘技(秘技有時是遊戲設計者故意加入,用於檢查程序設計,繞過不需要的步驟直接檢驗需要的地方時所使用的代碼)。
「Bug」的詞源
來自工程學
用bug來指工程錯誤這種用法大約出現在1870年代,早在電腦出現前就存在。目前最早找到的證據是愛迪生在1878年的信[2]
It has been just so in all of my inventions. The first step is an intuition, and comes with a burst, then difficulties arise—this thing gives out and [it is] then that "Bugs"—as such little faults and difficulties are called—show themselves and months of intense watching, study and labor are requisite before commercial success or failure is certainly reached.
中譯如下:
在我所有發明都如此。第一步是直覺,然後靈光一閃,然後出現困難——這事發生了,然後“Bug”——這樣稱呼那些微小錯誤和困難——展現出來。在明確到達商業成功或失敗前必需數個月的密切關注、研究和勞動。
管理錯誤的常見用語
![](../I/Classpath_bugs.png.webp)
典型錯誤歷史(GNU Classpath project數據)。由用戶提交的錯誤是「未確認」(unconfirmed),一旦該錯誤由開發人員重現,即為「已確認」(confirmed)錯誤。此後已確認的錯誤會「修復」(fixed)。其他類別的錯誤(無法重現、不予解決等)通常不多見。
- 處理進度
- New:代表新回報错误
- Resolved:代表错误已處理完(見下方「處理方式」)
- Closed:處理完並已驗證
- 處理方式
软件开发 |
---|
核心行动 |
范式与模式 |
方法论与框架 |
支持行为 |
实践 |
工具 |
标准与知识体系 |
参见
- 调试
- 2000年问题
- Therac-25案例
- 漏洞獎勵計劃
- Gotcha(编程)
- 軟體缺陷指標
参考资料
- . [2017-02-04]. (原始内容存档于2017-02-05).
- Hughes, Thomas Parke. . 1989: 75. ISBN 978-0-14-009741-2.
- Log Book With Computer Bug (页面存档备份,存于), National Museum of American History
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.