From owner-freebsd-java@FreeBSD.ORG Mon Mar 10 13:32:54 2008 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78C00106566B for ; Mon, 10 Mar 2008 13:32:54 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (cl-18.ewr-01.us.sixxs.net [IPv6:2001:4830:1200:11::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3D2498FC18 for ; Mon, 10 Mar 2008 13:32:53 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.14.1/8.13.4) with ESMTP id m2ADWc8P007915; Mon, 10 Mar 2008 09:32:38 -0400 (EDT) Received: from seraph.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.1/8.14.1) with ESMTP id m2ADWbPs021536; Mon, 10 Mar 2008 09:32:37 -0400 (EDT) Received: (from truk@localhost) by seraph.intricatesoftware.com (8.14.1/8.14.1/Submit) id m2ADWbVU028572; Mon, 10 Mar 2008 09:32:37 -0400 (EDT) X-Authentication-Warning: seraph.intricatesoftware.com: truk set sender to lists@intricatesoftware.com using -f From: Kurt Miller To: freebsd-java@freebsd.org Date: Mon, 10 Mar 2008 08:32:36 -0500 User-Agent: KMail/1.9.7 References: <20080309220029.GB93340@llama.fishballoon.org> In-Reply-To: <20080309220029.GB93340@llama.fishballoon.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200803100932.37017.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.6 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,BAYES_00 X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -4.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.9 X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: Scott Mitchell Subject: Re: jdk16 build failure on 7.0R/i386 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kurt@intricatesoftware.com List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Mar 2008 13:32:54 -0000 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] > > >