segmentation fault with printf
From: Adi (punter_pun_at_yahoo.com)
Date: 02/27/04
- Next message: Eric Sosman: "Re: segmentation fault with printf"
- Previous message: Toni Uusitalo: "Re: errno-like variables in threaded environments"
- Next in thread: Eric Sosman: "Re: segmentation fault with printf"
- Reply: Eric Sosman: "Re: segmentation fault with printf"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: segmentation fault with printf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Next message: Eric Sosman: "Re: segmentation fault with printf"
- Previous message: Toni Uusitalo: "Re: errno-like variables in threaded environments"
- Next in thread: Eric Sosman: "Re: segmentation fault with printf"
- Reply: Eric Sosman: "Re: segmentation fault with printf"
- Reply: Jens.Toerring_at_physik.fu-berlin.de: "Re: segmentation fault with printf"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]