[Ilugc] C pgm - Recursive -segmentation fault

  • From: lokeswarab@xxxxxxxxxxx (ragesh kannan)
  • Date: Tue Sep 14 14:14:32 2004

Hi
   Its amazing, will you plz send me the full source code. Coz theres no way 
to escape from stack over flow theres nothing to do with gcc version.

  Regards,
-lok.

ps : If you want to write daemon  process use daemon(int,int) function with 
any loop

From: Kannan_Ranganathan <Kannan_Ranganathan@xxxxxxxxxx>
To: "'ragesh kannan'" <lokeswarab@xxxxxxxxxxx>,lug@xxxxxxxxxxxxxxxxxx, 
praveen@xxxxxxxxxxx
CC: ilugc@xxxxxxxxxxxxx
Subject: RE: [Ilugc] C pgm - Recursive -segmentation fault
Date: Tue, 14 Sep 2004 10:12:20 +0530

Hi

   I ran this program

void R()
{
    static int i =0;
    i++;
  /*  printf("%d\n",i);*/

    R();
}

int main()
{
    R();
}

in my Home ...the same program which was sent earlier.

This program is still running well above 12 hrs (running since last night
till I left for office this morning  ) ... My machine is a P2 /64 MB ram.

I am sure it would have run more than 52K times ...Any clues what's
happening here ??? No segmentation fault nothing .
Don't exactly remember gcc version..

Regards
Kannan

**************************************************************************
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************
_______________________________________________
To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
"unsubscribe <password> address"
in the subject or body of the message.
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

_________________________________________________________________
1 Paisa No Reserve Auctions.  
http://ads2.baazee.com/cgi-bin/banners/redirect.pl?id=2553 T-Shirts, Shirts, ;
Kurtas, Apparels.

Other related posts: