Home > Archive > Unix Programming > April 2007 > excess allocation in heap segment of a process
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
excess allocation in heap segment of a process
|
|
| sam_cit@yahoo.co.in 2007-04-25, 10:03 pm |
| Hi Everyone,
We all know that when the stack segment overflows, we get a error
saying stack overflow and the program terminates. A main() calling
itself recursivley results in this,
What happens when the heap segment overflows? when we keep on
allocating dynamic memory in a loop...
Thanks in advance!!!
| |
| Bjørn Augestad 2007-04-25, 10:03 pm |
| sam_cit@yahoo.co.in wrote:
> Hi Everyone,
>
> We all know that when the stack segment overflows, we get a error
> saying stack overflow and the program terminates. A main() calling
> itself recursivley results in this,
>
> What happens when the heap segment overflows? when we keep on
> allocating dynamic memory in a loop...
>
We get an error message saying "Do your own homework" ?
| |
|
|
|
|
|