This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: PCH failures / ICE: Segmentation fault


On Wednesday, November 5, 2003, at 01:43 PM, Per Bothner wrote:
It looks like different runs will allocate memory or addresses in different locations. I don't know what could cause this.

My only guess would be to add a line like fprintf(stderr, "binfo_member at %x, input_location at %x\n", &binfo_member, &input_location); }, say just inside main. If different values come out between building the PCH file and using it, then PCH will need a check at validation time that these addresses are fixed. I don't recall seeing such a validation check, but there might already be one.


If different ones do come out, then you will need to work with the OS people on ways to fix the addresses, let us know if you learn more, I'd be curious in knowing more about it.


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