1.★ Final term Spring 2006Lecture 43
Following is the list of bugs’ symptoms; identify the bug classes in each case.
a) System slowdowns.
b) The program doesn't crash, but the flow of the program takes odd branches through the code.
c) If your program simply locks up, repeatedly displays the same data over and over, or infinitely displays the same message box.
Show answerJawab dekhein
a) Memory leak (memory is allocated and not freed, so the system slows down). b) Logical error. c) Loop error (an infinite or improperly ended loop).
2.★ Final term Spring 2010Lecture 43
Memory over-runs and their symptoms
Show answerJawab dekhein
A memory overrun is using memory that does not belong to you, e.g. writing past an array's end or copying a string longer than its buffer.
Symptoms: the program crashes regularly after a particular routine is called; if that routine looks correct, an earlier routine in the call sequence has probably already trashed variables or memory; the trace log of routines leading up to the failure often reveals it.
3.★ Final term Spring 2011Lecture 433 marks
Memory and resource leak symptoms
Show answerJawab dekhein
Memory and resource leaks happen when memory or resources (files, handles) are allocated and never released.
Symptoms: system slowdowns, and crashes that occur 'randomly' over a long period of time.