Study/compile/run debugit.c. It should be able to run "forever" without crashing. However in its current version it crashes after several iterations of the loop (the exact number is system dependent). Find out why the memory allocation error occurs and fix it so that the program will run "forever" (in which case the user needs to type CTRL C to abort it).
number of malloc()'s:
1
2
3
4
5
6
7
memory allocation error: data