For faster navigation, this Iframe is preloading the Wikiwand page for 程序错误.

程序错误

此条目需要补充更多来源。 (2015年3月21日)请协助补充多方面可靠来源改善这篇条目无法查证的内容可能会因为异议提出而被移除。致使用者:请搜索一下条目的标题(来源搜索:"程序错误"网页新闻书籍学术图像),以检查网络上是否存在该主题的更多可靠来源(判定指引)。
第一次发现导致电脑错误的飞蛾,也是第一个电脑程序错误。
贝尔尼十字架站的当机状态
广州地铁票务检验机弹出程序出错对话框

程序错误(英语:Bug),是程式设计术语,是指软件运行时因程序本身有错误而造成功能不正常、当机、数据丢失、非正常中断等现象。有些程序错误会造成电脑安全隐患,此时叫漏洞

一些有趣的隐错有时也会成为一种乐趣。在电脑游戏中,假如一些隐错不令游戏出现大错误的话,经常会变成一种玩游戏时的秘技(秘技有时是游戏设计者故意加入,用于检查程式设计,绕过不需要的步骤直接检验需要的地方时所使用的代码)。

有严重后果的错误会受到广泛关注。[1]修补、改正软件程序错误的过程称为调试

“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”——这样称呼那些微小错误和困难——展现出来。在明确到达商业成功或失败前必需数个月的密切关注、研究和劳动。

资讯工程与一般大众所知的起源

1947年9月9日,葛丽丝·霍普(Grace Hopper)发现了第一个电脑bug。有一次Mark II突然宕机,整队团队都搞不清电脑为何不能正常运作。经过大家深度挖掘,发现原来有飞蛾意外飞入一台电脑引起故障(如图所示)。团队很快排除错误,并在日志本记录这事。也因此,人们逐渐开始用“Bug”(原意“虫子”)来称呼电脑隐错。现在在华盛顿美国国家历史博物馆还可以看到这份遗稿。[3]

管理错误的常见用语

典型错误历史(GNU Classpath project数据)。由用户提交的错误是“未确认”(unconfirmed),一旦该错误由开发人员重现,即为“已确认”(confirmed)错误。此后已确认的错误会“修复”(fixed)。其他类别的错误(无法重现、不予解决等)通常不多见。
  • 处理进度
    • New:代表新回报错误
    • Resolved:代表错误已处理完(见下方“处理方式”)
    • Closed:处理完并已验证
  • 处理方式
    • Fixed:错误已修复
    • Later:必须到未来的版本才能解决。
    • Workaround:不能解决,但可用替代方法避开。
    • Duplicate:重复回报的错误
    • Severity:错误造成的严重度
    • Debugging(简称Debug):指解决错误的动作和过程(调试)。

参见

参考资料

  1. ^ 软件 Bug 引发的十次严重后果 - 文章 - 伯乐在线. [2017-02-04]. (原始内容存档于2017-02-05). 
  2. ^ Hughes, Thomas Parke. American Genesis: A Century of Invention and Technological Enthusiasm, 1870-1970. 1989: 75. ISBN 978-0-14-009741-2. 
  3. ^ Log Book With Computer Bug页面存档备份,存于互联网档案馆), National Museum of American History
{{bottomLinkPreText}} {{bottomLinkText}}
程序错误
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?