[Bug libgcj/13212] JNI/CNI AttachCurrentThread does not register thread with garbage collector

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Mar 24 14:08:00 GMT 2006



------- Comment #26 from rguenth at gcc dot gnu dot org  2006-03-24 14:08 -------
Note that with the "fix" installed on the 4.1 branch programs linked against
libgcj.so get to use libgcjs pthread_create wrapper, but programs later opening
libgcj.so via dlopen, like OpenOffice, fail here.  LD_PRELOADing libgcj.so
from the 4.1 branch will not help either, because libgcj.so does not provide
the correct versioned symbol.  Fixing that reveals maybe another problem for
OpenOffice, namely we now crash like

Program received signal SIGSEGV, Segmentation fault.
0xb78bb7f3 in GC_is_black_listed () from /usr/lib/libgcj.so.7.0.0
(gdb) bt
#0  0xb78bb7f3 in GC_is_black_listed () from /usr/lib/libgcj.so.7.0.0
#1  0xb78b979d in GC_allochblk_nth () from /usr/lib/libgcj.so.7.0.0
#2  0xb78b9b62 in GC_allochblk () from /usr/lib/libgcj.so.7.0.0
#3  0xb78c527d in GC_new_hblk () from /usr/lib/libgcj.so.7.0.0
#4  0xb78bb581 in GC_allocobj () from /usr/lib/libgcj.so.7.0.0
#5  0xb78c00a8 in GC_generic_malloc_inner () from /usr/lib/libgcj.so.7.0.0
#6  0xb78c0511 in GC_generic_malloc_inner_ignore_off_page ()
   from /usr/lib/libgcj.so.7.0.0
#7  0xb78be3f7 in GC_grow_table () from /usr/lib/libgcj.so.7.0.0
#8  0xb78be61a in GC_register_finalizer_inner () from /usr/lib/libgcj.so.7.0.0
#9  0xb78be7c3 in GC_register_finalizer_no_order ()
   from /usr/lib/libgcj.so.7.0.0
#10 0xb72d9b2d in _Jv_RegisterFinalizer () from /usr/lib/libgcj.so.7.0.0
#11 0xb72d2052 in _Jv_NewStringUtf8Const () from /usr/lib/libgcj.so.7.0.0
#12 0xb72a5deb in _Jv_Linker::ensure_class_linked ()
   from /usr/lib/libgcj.so.7.0.0
#13 0xb72a5fbe in _Jv_Linker::wait_for_state () from /usr/lib/libgcj.so.7.0.0
#14 0xb72cc421 in java::lang::Class::initializeClass ()
   from /usr/lib/libgcj.so.7.0.0
#15 0xb72cc3c3 in java::lang::Class::initializeClass ()
   from /usr/lib/libgcj.so.7.0.0
#16 0xb7297417 in _Jv_CreateJavaVM () from /usr/lib/libgcj.so.7.0.0
#17 0xb729c58d in JNI_CreateJavaVM () from /usr/lib/libgcj.so.7.0.0
#18 0xacbf47fc in jfw_plugin_startJavaVirtualMachine ()
   from /usr/lib/ooo-2.0/program/sunjavaplugin.so
#19 0xb57df25e in jfw_startVM () from /usr/lib/ooo-2.0/program/libjvmfwk.so.3

See https://bugzilla.novell.com/show_bug.cgi?id=153386 - open the attached "A
sample .odb file" and click on 'Tables' on i686.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13212



More information about the Gcc-bugs mailing list