This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

2.95.1 compiles but output seg faults


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]