This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
2.95.1 compiles but output seg faults
- To: help-gcc at gnu dot org
- Subject: 2.95.1 compiles but output seg faults
- From: Andy Freeman <anamax at earthlink dot net>
- Date: Tue, 12 Oct 1999 17:32:52 GMT
- Newsgroups: gnu.gcc.help
- Organization: Deja.com - Before you buy.
- Xref: wodc7nx0 gnu.gcc.help:1380
I downloaded 2.91.1 from egcs.cygnus.com and according to the
build and install scripts, everything is "working" (compiled
with 2.7.2.3). However, I get a segmentation fault on the
SECOND printf/fprintf (or cout << "test") in every program
compiled, such as the following.
Any ideas? What information could I collect that would help?
thanks,
-andy
#include <stdio.h>
int main(int argv, char **argc)
{
printf("hi * there\n");
printf(""); /* seg fault in _IO_vfprintf around vprintf.c:1029 */
fprintf(stderr, "hi there\n");
}
Sent via Deja.com http://www.deja.com/
Before you buy.