A
Adi
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.
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.