Re: Need experts suggestion



On 26 May 2006 03:38:02 -0700, in comp.lang.c , "Gsec"
<Gaurav.Saikia@xxxxxxxxx> wrote:

Hi Pemb,

Thanks. Sorry that my question was not that clear before. Well let me
make the picture very clear. My question is from Stack overflow point
of view.If you write an infinite loop simply, it will crash after some
time. Similarly, if we call main() within main (),
it will crash after some time definitely due to stack overflow !

Thats not a loop, thats recursion. Infinite recursion is impossible
without infinite memory.

So, I think that the buffer overflow method will let me my program to
execute on an infinite way, with no SIGSEGV.

I don't know what on earth you mean by "buffer overflow method". If
you overflow a buffer, your programme may crash, work, or damage other
programmes or systems. This isn't a method.

I hope, now you can let me know more information on my query.

Explan what you are really trying to do, not what you think you need,
in order to achieve it.

If you want to climb a tall building, ask how to climb tall buildings,
don't ask whether nylon or hemp makes better ropes.
--
Mark McIntyre

"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.



Relevant Pages

  • Re: Stack overflow
    ... >infinite number of times. ... Any time you have a stack overflow, ... On-Site Training in C/C++, Java, Perl and Unix C++ users: download BD Software's free STL Error Message Decryptor at: www.bdsoft.com/tools/stlfilt.html ...
    (comp.lang.cpp)
  • Re: Stack overflow
    ... > is the pseudocode ... > infinite number of times. ... I get a stack overflow when executing this.I ... You can usually turn this off with e.g. the ...
    (comp.lang.c)
  • Re: Need experts suggestion
    ... it will crash after some time definitely due to stack overflow! ... I think you're confusing a recursive function call from an infinite ... The former will likely crash after sometime while the latter ... Buffer overflow has nothing to do with infinite loops. ...
    (comp.lang.c)
  • override Size property form a User Control?
    ... an infinite loop... ... I imagine since I get a stack overflow: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: CE 5.0 crashes in editor during "intellisense"
    ... window with the PC at the point of the crash. ... Michel Verhagen, eMVP ... occasional "pregnant pause" whenever I typed a left parenthesis. ... FEACP.DLL throws a "stack overflow" exception whenever I ...
    (microsoft.public.windowsce.platbuilder)