-
TsaniApani
-
RE: Segmentation fault
-
The notorious "Segmentation fault" is basically the default sink-state error message when no others can be found. Until some point you need to climb the massive learning curve of the GDB (GNU Debugger) you will have to debug the old-fashioned way:
printf( "1" );
char *mystr="Hi";
printf( "2" );
strcpy(mystr,"new value" ;
printf( "3" );
puts(mystr);
printf( "4" );
return 0;
-
25 Apr 10
The notorious "Segmentation fault" is basically the default sink-state error message when no others can be found. Until some point you need to climb the massive learning curve of the GDB (GNU Debugger) you will have to debug the old-fashioned way:
printf( "1" );
char *mystr="Hi";
printf( "2" );
strcpy(mystr,"new value" ;
printf( "3" );
puts(mystr);
printf( "4" );
return 0;