This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: dynamically loading libgcj (still) SEGFAULTS
- To: Jeff Sturm <jsturm at one-point dot com>
- Subject: Re: dynamically loading libgcj (still) SEGFAULTS
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Date: Mon, 24 Sep 2001 17:10:05 +1200
- CC: Johannes Zellner <johannes at zellner dot org>, java gcc <java at gcc dot gnu dot org>
- References: <Pine.LNX.4.10.10109240022400.9440-100000@mars.deadcafe.org>
Jeff Sturm wrote:
>
>On Mon, 24 Sep 2001, Johannes Zellner wrote:
>
>>(gdb) run
>>Starting program: /home/joze/fred
>>dlopen: loaded "libgcjgc.so"
>>dlopen: loaded "libz.so"
>>(no debugging symbols found)...(no debugging symbols found)...(no
>>debugging symbols found)...(no debugging symbols found)...
>>Program received signal SIGSEGV, Segmentation fault.
>>0x40158182 in GC_mark_from () from /home/joze/local/lib/libgcjgc.so
>>
>
>FWIW your test program works fine on my RH 6.2 box.
>
Interesting. It does still crash for me on RH 7.1. The problem here
seems to be that the GC crashes when it is invoked from a libgcj that is
in the process of being dlopen()ed. It is called from
_Jv_RegisterClasses and most of the other static initializers.
This issue came up a while back - see
http://gcc.gnu.org/ml/java/2001-01/msg00590.html
regards
Bryce.