This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Crash in garbage collector
- From: Geoff Keating <geoffk at geoffk dot org>
- To: <jbeniston at compxs dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 20 Nov 2003 16:56:51 -0800
- Subject: Re: Crash in garbage collector
- References: <008e01c3af93$9fc24c30$06bda8c0@Kindrogan>
"Jon Beniston" <jbeniston@compxs.com> writes:
> Hi all,
>
> I have been working on a port of GCC to a new architecture, which for
> the most part is compiling reasonably well. However, for a few files, I
> am seeing crashes in the garbage collector. The first time I had this
> problem, it disappeared when I changed:
>
> label = gen_rtx (LABEL_REF, VOIDmode, operands[0]);
>
> To
>
> label = gen_rtx_LABEL_REF (VOIDmode, operands[0]);
>
> in one of my machine specific source files. Can anyone explain how this
> might have effected things? Unfortunatly, this didn't fix all of the
> crashes I was seeing, and I have no more calls to gen_rtx. I have tried
> configuring with --enable-checking, but this hasn't shed any light on
> the subject so far.
>
> What are the typical porting errors that can cause this kind of failure
> (if there is such a thing)?
This usually means that you have (a) a missing GC root, or (b) some
random memory overwrite problem that just happens to be noticed or
triggered or somehow affected by GC.
I recommend using GDB on the compiler and debugging the problem.
--
- Geoffrey Keating <geoffk@geoffk.org>