Crash in garbage collector
Daniel Berlin
dberlin@dberlin.org
Tue Apr 20 15:25:00 GMT 2004
On Apr 20, 2004, at 9:40 AM, Jan Hoogerbrugge wrote:
>> Jan Hoogerbrugge wrote:
>>> I encounter segmentation faults in my port when the garbage
>>> collector becomes
>>> active, so I am in trouble. Can somebody give me hints on how I can
>>> debug this
>>> and what could be wrong.
>>
>> There is a --enable-checking=gcac configure option that will force a
>> garbage collect on every entry into the gc routines. This will
>> usually force an error shortly after the mistake, making it easier to
>> find the mistake. There are also other checking options that might
>> be useful. See the docs and the ggc code.
>
> Thanks.
>
> The --enable-checking=gcac option did not trigger the problem. After
> that
> I figured out that there are two garbage collectors: page and zone.
> When
> I configure gcc for zone the crashes disappear. Also, then I define
> COOKIE_CHECKING in ggc-zome.c, I see no crashes.
> Any idea why I have
> crashes with page and not with zone (I tested this on a large number of
> files)?
They are completely different in almost every way, so no.
> If not, I will keep on using zone.
>
Zone has some know problems in relation with ggc_free that i just
haven't gotten to fixing yet, so watch out.
--Dan
More information about the Gcc
mailing list