Computer bug

A computer bug is a fault in a computer program which prevents it from working correctly. Bugs arise from mistakes in either a program's source code or its design. It is said that there are bugs in all useful computer programs, but well-written programs contain relatively few bugs, and these bugs typically do not prevent the program from performing its task. Buggy programs are those which contain a large number of bugs, and/or bugs which seriously interfere with the program's functionality.

Table of contents
1 Overview
2 Etymology
3 Preventing bugs
4 Debugging
5 List of computer bugs
6 Common types of computer bugs
7 External links and References

Overview

Bugs can have a wide variety of effects, with varying levels of inconvenience to the user of the program. Some bugs have only a subtle effect on the program's functionality, and may thus lie undetected for a long time. More serious bugs may cause the program to crash or freeze. In some operating systems, such as Microsoft Windows, crashing or freezing programs may render the computer unusable until it is rebooted (see blue screen of death.) Other bugs lead to security problems; for example, a common type of bug called a buffer overflow may allow a malicious user to execute a new program that is normally not allowed to run.

The results of bugs may be extremely serious. In 1962, an omitted hyphen in a Fortran program led to the loss of the Mariner 1 Venus probe, which cost over $80 million; Arthur C. Clarke dubbed this "the most expensive hyphen in history". In 1996, the European Space Agency's prototype Ariane 5 rocket was destroyed less than a minute after launch due to a bug in the on-board guidance computer, costing over US$1 billion.

Etymology

The term "bug" derives from hardware engineering jargon, in which it refers to errors in hardware. The term is often (but erroneously) credited to Grace Hopper, through an anecdote where she determined the reason for a malfunction on an early electromechanical computer was an actual insect stuck between the contacts of the relays that drove the device:

In 1946, when Hopper was released from active duty, she joined the Harvard Faculty at the Computation Laboratory where she continued her work on the Mark II and Mark III. She traced an error in the Mark II to a moth trapped in a relay, coining the term bug. This bug was carefully removed and taped to the log book. Stemming from the first bug, today we call errors or glitch's in a program a bug. [1]

Despite the colourfulness of the above anecdote, it is known that the use of the word "bug" to describe defects in mechanical systems dates back to at least the 1870s. Thomas Edison, for one, used the term in his notebooks.

Preventing bugs

Bugs are a consequence of the nature of the programming task. Some bugs arise from simple oversights made when a computer programmer writes source code carelessly. Many off-by-one errors fall into this category. Other bugs arise from unintended interactions between different parts of a computer program. This happens because computer programs are often complex, so that programmers are unable to mentally keep track of every possible way in which different parts can interact. Many race condition bugs fall into this category.

The computer software industry has put a great deal of effort into finding methods for preventing programmers from inadvertently introducing bugs while writing software. These include:

  • Programming techniques. Bugs often create inconsistencies in the internal data of a running program. Programs can be written to check the consistency of their own internal data while running. If an inconsistency is encountered, the program can immediately halt, so that the bug can be located and fixed. Alternatively, the program can simply inform the user, attempt to correct the inconsistency, and continue running.
  • Development methodologies. There are several schemes for managing programmer activity, so that fewer bugs are produced. Many of these fall under the discipline of software engineering (which addresses software design issues as well.)
  • Programming language support. Programming languages often include features which help programmers deal with bugs, such as exception handling. In addition, many recently-invented languages have deliberately excluded features which can easily lead to bugs. For example, the Java programming language does not support pointer arithmetic.

There is also a great amount of efforts devoted to detecting bugs, mostly around the concepts of type systems and program verification.

Debugging

Finding and fixing bugs, or "debugging", has always been a major part of computer programming. Maurice Wilkes, an early computing pioneer, describes his realization in the late 1940s that much of the rest of his life would be spent finding mistakes in his own programs. As computer programs grow more complex, bugs become more common and difficult to fix. Often, programmers spend more time and effort finding and fixing bugs than writing new code.

Usually, the most difficult part of debugging is locating the erroneous part of the source code. Once the mistake is found, correcting it is usually easy. Programs known as debuggers exist to help programmers locate bugs. However, even with the aid of a debugger, locating bugs is something of an art.

Typically, the first step in locating a bug is finding a way to reproduce it easily. Once the bug is reproduced, the programmer can use a debugger or some other tool to monitor the execution of the program in the faulty region, and (eventually) find the problem. However, it is not always easy to reproduce bugs. Some bugs are triggered by inputs to the program which may be difficult for the programmer to re-create. Other bugs may disappear when the program is run with a debugger; these are heisenbugs (humorously named after the Heisenberg uncertainty principle.)

List of computer bugs

The following is a list of famous computer bugs:

Space exploration

Medical

  • The Therac-25 accidents (1985-1987), quite possibly the most serious computer-related failure ever in terms of human life lost.

Computing

  • Pentium FDIV bug
  • The year 2000 problem, popularly known as the "Y2K bug", spawned fears of worldwide economic collapse and an industry of consultants providing last-minute fixes

Science fiction

Common types of computer bugs

External links and References

See also: Bugzilla, Bit rot


In the News

Messenger: Mercury Surface, Space Environment, Geochemistry, and Rangi
Information about the "NASA Discovery mission to conduct this orbital study of the innermost planet."Messenger launched in August 2004. It should be "in position to enter Mercury orbit in March 2011."The site provides a FAQ, an overview of the mission, status reports, facts about the planet Mercury, information for students and teachers, related links, and more. From John Hopkins University Applied Physics Laboratory (JHU/APL).

Traditional Values Coalition: Empowering People of Faith Through Knowl
This Christian lobbying organization "focuses upon issues such as education, homosexual advocacy, family tax relief, pornography, the right to life and religious freedom."The site features a definition of "traditional values"(including opposition to "all sexual behaviors outside of marriage between one man and one woman"), editorials, and reports on topics such as marriage protection amendments and abortion. Searchable.

Argon Conclusion: Researchers Reassess Theories On Formation Of Earth'
Geochemists are challenging commonly held ideas about how gases are expelled from the Earth. Their theory could change the way scientists view the formation of Earth's atmosphere and those of our distant neighbors, Mars and Venus. Their data throw into doubt the timing and mechanism of atmospheric formation on terrestrial plants.

Multiwavelength Images Of Distant Universe Now Available On Google Sky
A massive project to map a distant region of the Universe in multiple wavelengths--from x-rays through ultraviolet, visible, infrared, and radio waves--is releasing its data this week to both fellow scientists and the general public. In the objects seen by Chandra, X-ray radiation has been produced when gas is spiralling into a super massive black hole, like those believed to lie at the centre of almost every galaxy. Many of the X-ray emitting objects lie buried within otherwise normal-looking galaxies. In these X-ray images, the bluest objects are the ones most obscured by gas within their host galaxies.

Cheaters Spoil the Fun in Weblog Awards Voting
The Weblog Awards -- a competition where users vote up their favorite blogs -- have gone into a manual recount, as vote tallies in two popular categories are too close to call.

New Habanero Blasts Taste Buds -- And Pepper Pests
The super-hot, bright orange TigerPaw-NR habanero pepper offers extreme pungency for pepper aficionados, plus nematode resistance that will make it a hit with growers and home gardeners.

Neuroscientist Comments On Stem Cell Study's Success In Helping Primat
A neuroscientist reports that the cutting-edge research study of human stem cells in primates with Parkinson's disease is compelling on several fronts -- particularly how the transplanted cells did their job of easing disease symptoms. The study showed that only a small number of stem cells turned into dopamine-producing cells ?not enough to improve the primates?function by replacing missing neurons. Instead, some stem cells turned into astrocytes, a supportive brain cell that produces neuron-nourishing chemicals.

Infertility Researchers Identify One Gene's Critical Role In The Human
Why some embryos successfully attach to the endometrium and others do not continues to be a mystery because little is known about the molecular mechanisms involved in the human implantation process. Now, researchers at Cedars-Sinai Medical Center have investigated one gene's critical role in this process, thereby bringing them a step closer to finding methods to help the more than 6.1 million women in the United States who suffer from infertility.

Child Abuse, Neglect Rise Dramatically When Army Parents Deploy To Com
Confirmed incidents of child abuse and neglect among Army families increase significantly when a parent is deployed to a combat zone, according to a new study. The study compares the rates of child abuse and neglect among nearly 2,000 Army families with confirmed incidents of child abuse or neglect.

Diet Of Walnuts, Blueberries Improve Cognition; May Help Maintain Brai
Junk food junkies take notice. What you eat does more than influence your gut. It also may affect your brain. Increasing evidence shows that mom was right: You should eat your vegetables, and your blueberries and walnuts, too. Scientists are confirming that this age-old adage is worth following. And new studies show that diet may have implications for those who suffer from certain brain ailments.


MP3 Music Downloads

Preview songs, Download Free Music,Burn CDs at ITunes.com
iTunes_RGB_9mm

 


Google




InformationQuickFind.com - Find Information Fast

Links