This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Reg SEGV
Vivek Katakam writes:
>
> 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)
>
> I want to know what is wrong with the code.
We don't know because you didn't post the code. Post the code and
we'll tell you.
Andrew.