Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Java binaries from this summer loops on current



Hi,

I've run into what appears to be a lack of backwards compatibility in i386 
NetBSD current.

I periodically update my Java binaries (from wip/jdk16) using an older version 
of the package to bootstrap the build.  When I attempted this yesterday, I 
found that java, javac, and probably other programs in the java suite would 
eat CPU until interrupted -- apparently looping.  ktrace shows no system 
calls.

I bootstrapped wip/jdk16 using the Linux sun-jdk binaries and found that the 
problem is with the jre/lib/i386/client/libjvm.so shared library file.  If I 
substitute the new version of this file, the old programs work normally.  (The 
newly bootstrapped programs work as expected.)

The old version was compiled under NetBSD/i386 4.99.70 on 28 July 2008 and the 
new one with 5.99.4 this morning.

Since I have native Java working, I'm not sure if this is worth investigating 
further.  On the other hand, since it may indicate a backwards compatibility 
issue, I thought I should report it.

Thanks,
Sverre

PS

Running java from gdb and using kill to interrupt the looping program 
produces:

$ gdb /usr/pkg/java/jdk-1.6.0-/bin/java
...
(gdb) run
Starting program: /usr/pkg/java/jdk-1.6.0-/bin/java 
(no debugging symbols found)                        
...          

Program received signal SIGTRAP, Trace/breakpoint trap.
0xbbbf4730 in .rtld_start () from /usr/libexec/ld.elf_so
(gdb) c                                                 
Continuing.                                             
(no debugging symbols found)                            
...   

Program received signal SIGINT, Interrupt.
0xbbb0fff7 in _lwp_park () from /usr/lib/libc.so.12
(gdb) bt                                           
#0  0xbbb0fff7 in _lwp_park () from /usr/lib/libc.so.12
#1  0xbbbe282d in pthread_mutex_trylock () from /usr/lib/libpthread.so.0
#2  0x00000002 in ?? ()                                                 
#3  0xbb4de534 in ?? ()                                                 
   from /usr/pkg/java/jdk-1.6.0-/jre/lib/i386/client/libjvm.so          
#4  0xbbbe26c9 in pthread_mutex_trylock () from /usr/lib/libpthread.so.0
#5  0xbb3a0594 in Mutex::lock_without_safepoint_check ()                
   from /usr/pkg/java/jdk-1.6.0-/jre/lib/i386/client/libjvm.so          
#6  0xbb3b66da in java_start ()                                         
   from /usr/pkg/java/jdk-1.6.0-/jre/lib/i386/client/libjvm.so          
#7  0xbbbe5afb in pthread_create () from /usr/lib/libpthread.so.0       
#8  0xbbb32480 in swapcontext () from /usr/lib/libc.so.12               



Home | Main Index | Thread Index | Old Index