Managing Bugs Flashcards

1
Q

What are 2 perspectives to consider when you find a bug? How are they related?

A

Developer: How should the program handle the errors?
Client: How should the bug be reported/ prioritized/ fixed
They are related as devs are interested in fixing the bug and the clients can enable that by reporting well

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

What should a program do when it detects an error?

A

Log, print, or report it

Fail gracefully, continuing if possible

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

What should error message contain?

A

what, why, where, and when it’s incorrect

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

A program error should report as much detail as possible without giving away _______ values

A

sensitive

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

What is the main reason to have good error messages?

A
Support bug reporting and management. This includes:
Reproduction steps
Finding an owner
Combining dupe reports
Identifying causes and effects
Prioritization
and creating a fix
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why is bad bug reporting and management worse than none?

A

It will create noise and waste developers time

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

How do we keep track of bugs and decide what to fix?

A

We use bug databases likes Bugzilla, Mantis, etc which allows centralized communication

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

Who is responsible for a bug?

A

Most knowledge about the module
Whose code exposed the bug (RIP)
Who worked with the code most recently

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

What are some ways to prioritize bugs?

A

Occurs frequently or many users see it
Have big risks
In the newest version

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

What should a bug report contain?

A

One line summary
What, when, and why it was unexpected
Steps to reproduce
Some other info like platform, version, possible dupes

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

What are some common problems in bug reports?

A

Incomplete info
Steps to reproduce not correct or too complicated
Expected behaviors not well defined

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

How can we minimize test cases? Like a very large file for example

A

Delta Debugging: Recursively subdivide and remove portions that do not exhibit buggy behavior

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