Bug
Segmentation Fault
-program try’s to access memory that is not available (outside accessible range)
Bus fault
-program tried to access misaligned data item
Illegal instruction
-try to execute an unassigned or privileged opcode
Bug classification
Blunder
Whose bug
Goes away when try to observe it
Bug detection
1: study the failure systems, add exception handler
2: read and re-read in error location, have someone else read code, or someone who will listen
3: experiment to find the simplest way to identify
4: try inserting, verifying of the code is working as it should
Crash dumps
Debugger helps discover where program crashed and why, inspect call stack, and values of vars
Static tools
Crash dump inspection
Dynamic tools
Debugger
Debugger monitoring facilities
Failure
Something visible to the programs user
Fault
The state of the program which leads to a failure
Error
The incorrect code fragment which leads to the fault and thus to the failure