Reg SEGV

Vivek Katakam vivek1717@gmail.com
Fri May 12 14:44:00 GMT 2006


Hi all,

I am recieving segmentation fault at the following line :
 vfprintf(output_file, input_msg, allargs);

when run in gdb I am getting this:
 847             vfprintf(output_file, input_msg, allargs);
 (gdb) p output_file
 $1 = (FILE *) 0x504750
 (gdb)  p input_msg
 $2 = 0x2a9588fdc8 "schema to %s: %d %*s\n"
 (gdb) p allargs
 $3 = {{gp_offset = 48, fp_offset = 48, overflow_arg_area = 0x7fbffb2428,
 reg_save_area = 0x7fbffb2350}}
(gdb)

Regards,
 Vivek


I want to know what is wrong with the code.

Regards,
 Vivek



More information about the Gcc-help mailing list