Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2008 08:32:36 -0500
From:      Kurt Miller <lists@intricatesoftware.com>
To:        freebsd-java@freebsd.org
Cc:        Scott Mitchell <scott+lists.freebsd@fishballoon.org>
Subject:   Re: jdk16 build failure on 7.0R/i386
Message-ID:  <200803100932.37017.lists@intricatesoftware.com>
In-Reply-To: <20080309220029.GB93340@llama.fishballoon.org>
References:  <20080309220029.GB93340@llama.fishballoon.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This look like another case of the jvm not being linked to a thread library.
At least the 'Dynamic libraries:' section of the crash report doesn't list a
thread library. What does ldd show?

ldd /var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/bin/java

Can you extract the portion of the build log that shows the link command
for the 'java' executable? It should look something like this:

Rebuilding /usr/ports/java/jdk16/work/control/build/bsd-amd64/bin/java because of /usr/ports/java/jdk16/work/contro
l/build/bsd-amd64/tmp/java/java/obj64/java.o /usr/ports/java/jdk16/work/control/build/bsd-amd64/tmp/java/java/obj64
/java_md.o /usr/ports/java/jdk16/work/control/build/bsd-amd64/tmp/java/java/obj64/splashscreen_stubs.o
/usr/bin/gcc  -o /usr/ports/java/jdk16/work/control/build/bsd-amd64/bin/java  -L/usr/ports/java/jdk16/work/control/
build/bsd-amd64/lib/amd64 -Wl,-soname=lib.so -static-libgcc -Wl,--whole-archive /usr/ports/java/jdk16/work/control/
build/bsd-amd64/tmp/java/jli/obj64/static/libjli.a -Wl,--no-whole-archive \
    /usr/ports/java/jdk16/work/control/build/bsd-amd64/tmp/java/java/obj64/java.o /usr/ports/java/jdk16/work/contro
l/build/bsd-amd64/tmp/java/java/obj64/java_md.o /usr/ports/java/jdk16/work/control/build/bsd-amd64/tmp/java/java/ob
j64/splashscreen_stubs.o -pthread   -pthread
gmake[4]: Leaving directory `/usr/ports/java/jdk16/work/j2se/make/java/main/java'

-Kurt

On Sunday 09 March 2008 6:00:30 pm Scott Mitchell wrote:
> I get the following trying to build java/jdk16 on i386, same result if I
> bootstrap with diablo-1.5.0_07 or linux-sun-jdk16.  Anyone else seen this,
> or know of a workaround?
> 
> Thanks,
> 
> 	Scott
> 
> ===== Port build output =====
> gmake[5]: Entering directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make/sun/javac/javac'
> /var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/bin/java -client -Xmx512m -Xms256m -classpath ../../../../make/tools/CompileProperties CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/gensrc/com/sun/tools/javac/resources/compiler.java
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  Internal Error (4F533F4253443F491418160E43505002C5), pid=13919, tid=0x28201400
> #
> # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-p4-root_09_mar_2008_21_01-b00 mixed mode, sharing)
> # An error report file with more information is saved as hs_err_pid13919.log
> #
> # Please submit bug reports to freebsd-java@FreeBSD.org
> #
> gmake[5]: *** [/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/gensrc/com/sun/tools/javac/resources/compiler.java] Abort trap: 6 (core dumped)
> gmake[5]: Leaving directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make/sun/javac/javac'
> gmake[4]: *** [all] Error 1
> gmake[4]: Leaving directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make/sun/javac'
> gmake[3]: *** [all] Error 1
> gmake[3]: Leaving directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make/java/javac'
> gmake[2]: *** [all] Error 1
> gmake[2]: Leaving directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make/java'
> gmake[1]: *** [all] Error 1
> gmake[1]: Leaving directory `/var/tmp/usr/ports/java/jdk16/work/j2se/make'
> gmake: *** [j2se-build] Error 2
> *** Error code 2
> 
> Stop in /usr/ports/java/jdk16.
> *** Error code 1
> 
> Stop in /usr/ports/java/jdk16.
> 
> ===== hs_err_pid13919.log =====
> #
> # An unexpected error has been detected by Java Runtime Environment:
> #
> #  Internal Error (4F533F4253443F491418160E43505002C5), pid=13919, tid=0x28201400
> #
> # Java VM: Java HotSpot(TM) Client VM (1.6.0_03-p4-root_09_mar_2008_21_01-b00 mixed mode, sharing)
> # Please submit bug reports to freebsd-java@FreeBSD.org
> #
> 
> ---------------  T H R E A D  ---------------
> 
> Current thread (0x2820b2f0):  
> [error occurred during error reporting, step 80, id 0xb]
> 
> Stack: [0x00000000,0x00000000)
> [error occurred during error reporting, step 110, id 0xb]
> 
> 
> [error occurred during error reporting, step 120, id 0xb]
> 
> 
> [error occurred during error reporting, step 130, id 0xb]
> 
> 
> [error occurred during error reporting, step 140, id 0xb]
> 
> 
> [error occurred during error reporting, step 150, id 0xb]
> 
> 
> ---------------  P R O C E S S  ---------------
> 
> Java Threads: ( => current thread )
> 
> Other Threads:
> 
> VM state:not at safepoint (not fully initilizated)
> 
> VM Mutex/Monitor currently owned by a thread: None
> 
> Heap
> 
> [error occurred during error reporting, step 190, id 0xb]
> 
> Dynamic libraries:
> 0x08048000 	/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/bin/java
> 0x280a0000 	/lib/libc.so.7
> 0x28300000 	/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/lib/i386/client/libjvm.so
> 0x28af0000 	/usr/lib/libstdc++.so.6
> 0x2819c000 	/lib/libm.so.5
> 0x281b1000 	/lib/libgcc_s.so.1
> 0x281bd000 	/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/lib/i386/native_threads/libhpi.so
> 0x28063000 	/libexec/ld-elf.so.1
> 
> VM Arguments:
> jvm_args: -Xmx512m -Xms256m
> java_command: CompileProperties ../../../../src/share/classes/com/sun/tools/javac/resources/compiler.properties /var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/gensrc/com/sun/tools/javac/resources/compiler.java
> Launcher Type: SUN_STANDARD
> 
> Environment Variables:
> JAVA_HOME=
> CLASSPATH=
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin
> LD_LIBRARY_PATH=/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/lib/i386/client:/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/lib/i386:/var/tmp/usr/ports/java/jdk16/work/control/build/bsd-i586/../lib/i386:
> SHELL=/bin/sh
> HOSTTYPE=FreeBSD
> OSTYPE=FreeBSD
> ARCH=i586
> MACHTYPE=i386
> 
> Signal Handlers:
> SIGSEGV: [libjvm.so+0x360020], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
> SIGBUS: [libjvm.so+0x360020], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
> SIGFPE: [libjvm.so+0x2a6230], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
> SIGPIPE: [libjvm.so+0x2a6230], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
> SIGILL: [libjvm.so+0x2a6230], sa_mask[0]=0xfffefeff, sa_flags=0x00000042
> SIGUSR1: SIG_DFL, sa_mask[0]=0x20000000, sa_flags=0x00000002
> SIGUSR2: [libjvm.so+0x2a8270], sa_mask[0]=0x00000000, sa_flags=0x00000042
> SIGHUP: SIG_DFL, sa_mask[0]=0x00000001, sa_flags=0x00000002
> SIGINT: SIG_DFL, sa_mask[0]=0x00000002, sa_flags=0x00000002
> SIGQUIT: SIG_DFL, sa_mask[0]=0x00000004, sa_flags=0x00000002
> SIGTERM: SIG_DFL, sa_mask[0]=0x00004000, sa_flags=0x00000002
> SIGUSR2: [libjvm.so+0x2a8270], sa_mask[0]=0x00000000, sa_flags=0x00000042
> 
> 
> ---------------  S Y S T E M  ---------------
> 
> OS:Bsd
> uname:FreeBSD 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
> rlimit: STACK 65536k, CORE infinity, NPROC 5446, NOFILE 10893
> CPU:total 1 
> 
> Memory: 4k page, physical 662564k(165641k free)
> 
> vm_info: Java HotSpot(TM) Client VM (1.6.0_03-p4-root_09_mar_2008_21_01-b00) for bsd-x86, built on Mar  9 2008 21:43:39 by "root" with gcc 4.2.1 20070719  [FreeBSD]
> 
> 
> 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803100932.37017.lists>