This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PCH failures / ICE: Segmentation fault
- From: Mike Stump <mrs at apple dot com>
- To: Per Bothner <per at bothner dot com>
- Cc: Laurent GUERBY <laurent at guerby dot net>, gcc at gcc dot gnu dot org, Geoffrey Keating <geoffk at apple dot com>
- Date: Wed, 5 Nov 2003 15:30:42 -0800
- Subject: 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.