Bug

Every error, fault, or flaw in any computer program or a hardware system can be referred as a Computer Bug or a Software Bug.
These errors produce unexpected Outputs or can modify the behaviour of a system.
In brief, a Bug can be any type of behaviour or Output that a software or an hardware make but was unexpected or simply not designed to do that.

0101010101010101010101010101010101010101010101010101010101010101010101
0101010101010101010101010101010101010101010101010101001011010101010101
0101010101010101010101010101010101010101010101010101010101010101100101
Find the bugs Game!


The first Bug


Sep 9, 1947: A bug that was a bug!

The computer scientist Grace Hopper during the work on Mark II, she was in trouble with persistent errors delivering.
After the research team at Harvard University in Cambridge inspected the huge hardware to analyze and try to find out the source of the errors and they found a bug… a real bug.
They were surprised to find a real insect trapped in a relay and for resolve the problem they literally had to Debug the machine.
Read more on history of malware here!

First bug image

Ariane 5 Flight 501 Bug.


June 4th, 1996

After 37 seconds of the Ariane 5 departure away from the coast of French Guiana, the rocket starts to flip in the wrong direction, and just two seconds later, the aerodynamic forces tear the booster aside from the principal stage. Shortly after the rocket blew up and became in a gigantic fireball of liquid hydrogen
The backup computer of the first flight 501 freezes, followed 0.05 seconds later by a crash of the primary computer. As a result of these crashing computers, the rocket's main processor overrides the rocket's engines as well causes the rocket to disintegrate 40 seconds after launch.

The catastrophic bug

The problem was quickly found:
a Software bug in the system. The code of the rocket was used to calculate if it was aiming upside or downside.
The value of the horizontal base was represented by the algorithm by a 64-bit floating variable. The problem started when the algorithm tried to store a 64-bit variable into a 16-bit integer.

Initially, on the departure of the rocket, the rocket’s acceleration was low but still working but after that, the variable exceeding 65k values became too large to fit into the 16-bit variable. This is the point where all went wrong and the processor received an error that became a catastrophic fireball.

Ariane5 image

Debugging


What is debug

Debugging is the method of detecting and removing existing and potential bugs (errors) in a software code that may cause unexpected actions or crash of the same software.
To prevent incorrect operation of software, debugging is employed to search out and resolve bugs or defects.
To debug a program debugging , the user has to begin with a problem, insulate the code of the problem, and after that, fix it. When the problem is fixed and then the bug is vanished, the software is again ready to use.
Debugging tools, that are called debuggers, are used to detect bugs at various development steps.

Debug image

Bug

Nicolò Tafta

next article