Error Detection Flashcards

1
Q

What is a seg fault?

A

An error that occurs when performing an undefined operation on memory. Usually, accesing non-existent memory or already allocated memory.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the most common forms of seg fault?

A
  • Modifying string literal
  • accessing freed address
  • Index out of bounds
  • Stack Overflow
  • Dereferenceing an uninitialized pointer.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are two tools used to assist with identifying seg faults?

A
  • Valgrind
  • GBD
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is Valgrind?

A

An open source Unix memory analysis tool

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does Valgrind do?

A

Identifies memory leaks and seg faults

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is GBD?

A

Gnu project Debugger. (only works on linux machines)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does GBD do?

A

It takes compiled code and gives debugging messaging. More helpful than Valgrind.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly