This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Hello world segfaults with -static
- To: "Boehm, Hans" <hans_boehm at hp dot com>
- Subject: Re: Hello world segfaults with -static
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Thu, 11 Oct 2001 12:43:27 +1300
- CC: "'martin dot kahlert at infineon dot com'" <martin dot kahlert at infineon dot com>, java at gcc dot gnu dot org
- References: <40700B4C02ABD5119F000090278766443BEC85@hplex1.hpl.hp.com>
Boehm, Hans wrote:
>That's a new one for me. And I don't have clue as to how that could happen.
>With only a single entry in the table, GC_next_exclusion should return
>either 0 or the address of the zeroth entry in GC_excl_table. It looks to
>me like next_index can be only 0 or 1.
>
>Can you build mark_rts.c unoptimized? If that still breaks, can you step
>through GC_exclude_static_roots to see where I'm wrong?
>
I noticed this a few weeks ago. It does appear to be an optimization bug
in GCC, since rebuilding the GC without -O fixed it.
regards
Bryce.