segmentation fault with printf

From: Adi (punter_pun_at_yahoo.com)
Date: 02/27/04


Date: 27 Feb 2004 08:18:40 -0800

hi guys,

i have a weird problem with printf statement. I have a function which
just prints a string literal. In my program this function will be
called > 2000 times. I get a segmentation fault after the function
has been called for ~ 1700 times.

But if i remove printf statement and just put any assignment
expression or any other expression, it works fine. Even if i put
fwrite(), it works fine.
Has std I/O got anything to do with stack overflow ?

void compute_stream_table(Addr data_addr)
{
        printf("into function\n");

       /* ................... */
}

Any ideas why it is happening ?

Thanks.