This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


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

Re: dynamically loading libgcj (still) SEGFAULTS


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.



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