BZ #11: I have a problem compiling jc-1.4.6 with latest cacaoJVM ( 0.92)

Status fields:

creation_ts:2005-08-23 10:54
component:threads
version:unspecified
rep_platform:All
op_sys:Linux
bug_status:RESOLVED
resolution:FIXED
reporter:fithis2001@yahoo.com
When I export JAVA=/home/vanag/cacaoJVM/bin/java
(my installation prefix is /home/vanag/cacaoJVM ) and configure jc make works
fine. On making install , when generating ELF objects

*** Generating ELF objects in /home/vanag/billSRCS/cacao_jc/jcVM/lib/jc/obj
gcc -c -O2 -pipe -g -fno-common -w -Wall -Waggregate-return -Wcast-align
-Wcast-qual -Wchar-subscripts -Wcomment -Wformat -Wimplicit
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wno-long-long
-Wparentheses -Wpointer-arith -Wreturn-type -Wshadow -Wstrict-prototypes
-Wswitch -Wtrigraphs -Wuninitialized -Wunused -Wwrite-strings -Wa,-W
-I/home/vanag/billSRCS/cacao_jc/jcVM/include/jc
-I/home/vanag/billSRCS/cacao_jc/jcVM/share/jc/src -o
/home/vanag/billSRCS/cacao_jc/jcVM/lib/jc/obj/gnu/classpath/VMStackWalker.o
/home/vanag/billSRCS/cacao_jc/jcVM/share/jc/src/gnu/classpath/VMStackWalker.c
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!
LOG: [0x81f8d20] JNI-Call: DeleteLocalRef: IMPLEMENT ME!

and many logs like these which delay the compilation a lot. Actually it stays stuck.

Kaffe 1.1.5 and jdk_1.5.0.02 work fine . Even gcj but I installed it. I have
compile cacao with

./configure --prefix=/home/vanag/cacaoJVM
--with-external-classpath=/usr/local/classpath --with-x --enable-shared

I have classpath 0.17

Comment #1 by twisti@complang.tuwien.ac.at on 2005-08-23 12:29:20

Ok, i tried it on an i386 system. Running through gdb with -v cacao option, it
gave me after 2-3 runs:

[New Thread 1094712240 (LWP 13049)]
[New Thread 1103100848 (LWP 13050)]
LOG: [0x817ad20] Exception java.lang.IllegalMonitorStateException thrown in
java.lang.Object.notifyAll(NOSYNC)(0x41c00e10) at position 0x41c00e23
(Object.java:0)
LOG: [0x817ad20] Exception java.lang.IllegalMonitorStateException thrown in
java.lang.VMThread.run(NOSYNC)(0x4025b960) at position 0x4025baf1 (VMThread.java:0)
LOG: [0x817ad20] Exception java.lang.IllegalMonitorStateException thrown in
java.lang.VMThread.run(NOSYNC)(0x4025b960) at position 0x4025bac0 (VMThread.java:0)
LOG: [0x817ad20] Exception java.lang.IllegalMonitorStateException thrown in
call_java_method
LOG: [0x817ad20] Builtin exception thrown: java.lang.IllegalMonitorStateException
[Thread 1084607408 (LWP 13047) exited]

So it seems we have a thread-monitor issue here.

Comment #2 by twisti@complang.tuwien.ac.at on 2005-12-11 01:43:51

Sorry for the long delay, but this seems to be fixed.  I think that was
finalizer thread related.