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: Crash in garbage collector


"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>


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