From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 01:06:23 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B541916A401 for ; Sun, 25 Feb 2007 01:06:23 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: from vfemail.net (dell.vfemail.net [216.170.248.236]) by mx1.freebsd.org (Postfix) with ESMTP id 02A6B13C442 for ; Sun, 25 Feb 2007 01:06:21 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: (qmail 33910 invoked by uid 89); 25 Feb 2007 00:39:35 -0000 Received: by simscan 1.1.0 ppid: 33882, pid: 33885, t: 8.5312s scanners: attach: 1.0.8 clamav: 0.80/m:28/d:614 spam: 3.0.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on antispam.vfemail.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ADDR_FREE,BAYES_00 autolearn=ham version=3.1.7 Received: from unknown (HELO inmail.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 Feb 2007 00:39:26 -0000 Received: (qmail 33877 invoked by uid 89); 25 Feb 2007 00:39:26 -0000 Received: from unknown (HELO vfemail.net) (vfemail@172.16.100.20) by 0 with SMTP; 25 Feb 2007 00:39:26 -0000 Received: (qmail 50634 invoked by uid 0); 25 Feb 2007 00:39:23 -0000 Received: by simscan 1.1.0 ppid: 50582, pid: 50628, t: 0.2179s scanners:none Received: from unknown (HELO ?82.3.149.179?) (freebsd@vfemail.net@216.170.248.235) by mail.vfemail.net with SMTP; 25 Feb 2007 00:39:23 -0000 Message-ID: <45E0DAB0.6010809@vfemail.net> Date: Sun, 25 Feb 2007 00:39:12 +0000 From: Free BSD User-Agent: Thunderbird 1.5.0.9 (X11/20070209) MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 01:06:23 -0000 Dear List Members and Maintainers I had been trying trying for nearly 15 days to build JDK1.5 in an AMD box with no luck at all. I tried to google around to see if others had the same problem, or if I can understand what is causing this problem -- and have failed. Every time the compiler would stop at the point /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_motif21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Choice21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/Xinerama.o | tsort -q` /usr/X11R6/lib/libXm.a -lXp -lXtst -lXext -lXt -lX11 -lmlib_image -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -lawt -lm -ljava -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -pthread /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/X11R6/lib/libXm.a: could not read symbols: Bad value gmake[4]: *** [/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 Stop in /usr/ports/java/jdk15. I have all the dependent packages installed (confirmed via pkg_info), and I believe the system is quite updated (I have build world and also build a new kernel, with all the pre-requisites, of course). My /etc/make.conf goes like below # added by use.perl 2007-02-08 02:16:42 PERL_VER=5.8.8 PERL_VERSION=5.8.8 # CPUTYPE=athlon64 LOADER_TFTP_SUPPORT= NO DOC_LANG= en_UK.ISO8859-1 # SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 # SENDMAIL_LDFLAGS=-L/usr/local/lib # SENDMAIL_LDADD=-lsasl2 # I'm truly at a loss. I have so far tried at least six times, and each time I did a. portsclean -CC b. cvsup the ports tree c. do a portsdb -uU before starting a new. Would appreciate if someone can please help. Thanks From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 02:15:11 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D063516A400 for ; Sun, 25 Feb 2007 02:15:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 92F7E13C442 for ; Sun, 25 Feb 2007 02:15:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HL8us-0002i9-C3; Sun, 25 Feb 2007 03:15:10 +0100 Date: Sun, 25 Feb 2007 03:15:10 +0100 (CET) From: "Arne H. Juul" To: Free BSD In-Reply-To: <45E0DAB0.6010809@vfemail.net> Message-ID: References: <45E0DAB0.6010809@vfemail.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 02:15:11 -0000 On Sun, 25 Feb 2007, Free BSD wrote: > /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation R_X86_64_32 can > not be used when making a shared object; recompile with -fPIC > /usr/X11R6/lib/libXm.a: could not read symbols: Bad value where does /usr/X11R6/lib/libXm.a come from? it needs to be compiled from /usr/ports/x11-toolkits/open-motif according to the jdk15/Makefile at least, and it should contain relocatable objects, like this: $ ar xv /usr/X11R6/lib/libXm.a CascadeB.o x - CascadeB.o $ file CascadeB.o CascadeB.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1 (FreeBSD), not stripped - Arne H. J. From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 17:02:30 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5B64816A402 for ; Sun, 25 Feb 2007 17:02:30 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: from vfemail.net (dell.vfemail.net [216.170.248.236]) by mx1.freebsd.org (Postfix) with ESMTP id A304B13C49D for ; Sun, 25 Feb 2007 17:02:25 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: (qmail 33603 invoked by uid 89); 25 Feb 2007 17:02:23 -0000 Received: by simscan 1.1.0 ppid: 33579, pid: 33583, t: 6.9490s scanners: attach: 1.0.8 clamav: 0.80/m:28/d:614 spam: 3.0.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on antispam.vfemail.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ADDR_FREE,BAYES_00 autolearn=unavailable version=3.1.7 Received: from unknown (HELO inmail.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 Feb 2007 17:02:16 -0000 Received: (qmail 33566 invoked by uid 89); 25 Feb 2007 17:02:15 -0000 Received: from unknown (HELO vfemail.net) (vfemail@172.16.100.20) by 0 with SMTP; 25 Feb 2007 17:02:15 -0000 Received: (qmail 41895 invoked by uid 0); 25 Feb 2007 17:02:14 -0000 Received: by simscan 1.1.0 ppid: 41861, pid: 41891, t: 0.3835s scanners:none Received: from unknown (HELO ?82.3.149.179?) (freebsd@vfemail.net@216.170.248.235) by mail.vfemail.net with SMTP; 25 Feb 2007 17:02:14 -0000 Message-ID: <45E1C10B.90403@vfemail.net> Date: Sun, 25 Feb 2007 17:02:03 +0000 From: Free BSD User-Agent: Thunderbird 1.5.0.9 (X11/20070209) MIME-Version: 1.0 To: "Arne H. Juul" References: <45E0DAB0.6010809@vfemail.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 17:02:30 -0000 Arne H. Juul wrote: > On Sun, 25 Feb 2007, Free BSD wrote: >> /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation >> R_X86_64_32 can not be used when making a shared object; recompile >> with -fPIC >> /usr/X11R6/lib/libXm.a: could not read symbols: Bad value > > where does /usr/X11R6/lib/libXm.a come from? it needs to be compiled > from /usr/ports/x11-toolkits/open-motif according to the jdk15/Makefile > at least, and it should contain relocatable objects, like this: > > $ ar xv /usr/X11R6/lib/libXm.a CascadeB.o > x - CascadeB.o > $ file CascadeB.o CascadeB.o: ELF 64-bit LSB relocatable, AMD x86-64, > version 1 (FreeBSD), > not stripped > Dear Arne thanks for your response. I checked the libXm.a, and it DID come from open-motif # pkg_which /usr/X11R6/lib/libXm.a open-motif-2.2.3_2 then I ran the commands you have shown, and the results are identical to yours. But still, the java is not compiling and getting stuck at the same point again and again. Please do let me know if I should do anything more or if any more information is required, and I'll try my best to supply those. Best regards, and thanks once again. From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 19:02:18 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D6E2416A406 for ; Sun, 25 Feb 2007 19:02:18 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from drone3.qsi.net.nz (drone3-svc-skyt.qsi.net.nz [202.89.128.3]) by mx1.freebsd.org (Postfix) with ESMTP id 540A113C471 for ; Sun, 25 Feb 2007 19:02:15 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: (qmail 14900 invoked by uid 0); 25 Feb 2007 18:35:35 -0000 Received: from unknown (HELO chen.org.nz) ([202.89.146.5]) (envelope-sender ) by 0 (qmail-ldap-1.03) with SMTP for ; 25 Feb 2007 18:35:34 -0000 Received: by chen.org.nz (Postfix, from userid 1000) id 463D47E861; Mon, 26 Feb 2007 07:35:34 +1300 (NZDT) Date: Mon, 26 Feb 2007 07:35:34 +1300 From: Jonathan Chen To: Free BSD Message-ID: <20070225183534.GC18421@osiris.chen.org.nz> References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45E1C10B.90403@vfemail.net> User-Agent: Mutt/1.4.2.2i Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 19:02:18 -0000 On Sun, Feb 25, 2007 at 05:02:03PM +0000, Free BSD wrote: [...] > thanks for your response. I checked the libXm.a, and it DID come from > open-motif > # pkg_which /usr/X11R6/lib/libXm.a > open-motif-2.2.3_2 > > then I ran the commands you have shown, and the results are identical to > yours. But still, the java is not compiling and getting stuck at the > same point again and again. Please do let me know if I should do > anything more or if any more information is required, and I'll try my > best to supply those. Try rebuilding open-motif. You have have a corrupt binary (due to reasons unknown). -- Jonathan Chen ---------------------------------------------------------------------- "If you wish your merit to be known, acknowledge that of other people" From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 20:30:29 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A67716A404 for ; Sun, 25 Feb 2007 20:30:29 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.freebsd.org (Postfix) with ESMTP id EEAD613C491 for ; Sun, 25 Feb 2007 20:30:28 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from pool-71-168-248-177.cmdnnj.east.verizon.net ([71.168.244.241]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JE1004FPCYGC4J0@vms044.mailsrvcs.net> for freebsd-java@FreeBSD.org; Sun, 25 Feb 2007 14:30:17 -0600 (CST) Date: Sun, 25 Feb 2007 15:30:00 -0500 From: Skip Ford In-reply-to: <20070225183534.GC18421@osiris.chen.org.nz> To: freebsd-java@FreeBSD.org Mail-followup-to: freebsd-java@FreeBSD.org Message-id: <20070225203000.GB717@heather.menantico.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> <20070225183534.GC18421@osiris.chen.org.nz> User-Agent: Mutt/1.4.2.2i Cc: Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 20:30:29 -0000 Jonathan Chen wrote: > On Sun, Feb 25, 2007 at 05:02:03PM +0000, Free BSD wrote: > > [...] > > thanks for your response. I checked the libXm.a, and it DID come from > > open-motif > > # pkg_which /usr/X11R6/lib/libXm.a > > open-motif-2.2.3_2 > > > > then I ran the commands you have shown, and the results are identical to > > yours. But still, the java is not compiling and getting stuck at the > > same point again and again. Please do let me know if I should do > > anything more or if any more information is required, and I'll try my > > best to supply those. > > Try rebuilding open-motif. You have have a corrupt binary (due to > reasons unknown). After the extract stage, grep the open-motif sources for 'objformat' to make sure this isn't more fallout from its removal. -- Skip From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 20:43:04 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A0A6C16A400 for ; Sun, 25 Feb 2007 20:43:04 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 6161613C442 for ; Sun, 25 Feb 2007 20:43:04 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLQD0-0005da-Mo; Sun, 25 Feb 2007 21:43:02 +0100 Date: Sun, 25 Feb 2007 21:43:02 +0100 (CET) From: "Arne H. Juul" To: Free BSD In-Reply-To: <45E1C10B.90403@vfemail.net> Message-ID: References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 20:43:04 -0000 On Sun, 25 Feb 2007, Free BSD wrote: >> $ ar xv /usr/X11R6/lib/libXm.a CascadeB.o >> x - CascadeB.o >> $ file CascadeB.o CascadeB.o: ELF 64-bit LSB relocatable, AMD x86-64, >> version 1 (FreeBSD), >> not stripped > thanks for your response. I checked the libXm.a, and it DID come from > open-motif > # pkg_which /usr/X11R6/lib/libXm.a > open-motif-2.2.3_2 > > then I ran the commands you have shown, and the results are identical to > yours. But still, the java is not compiling and getting stuck at the same > point again and again. Please do let me know if I should do anything more or > if any more information is required, and I'll try my best to supply those. hmf, so that wasn't a good test then. What about this one: objdump -r CascadeB.o | grep R_X86_64_32 on my system that gives no output at all. Maybe you have installed lesstif on top of open-motif, overwriting libXm.a with the lesstif version? - Arne H. J. From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 20:49:25 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3C3B716A400 for ; Sun, 25 Feb 2007 20:49:25 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id F312413C4AC for ; Sun, 25 Feb 2007 20:49:24 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLQJA-0006ov-2I; Sun, 25 Feb 2007 21:49:24 +0100 Date: Sun, 25 Feb 2007 21:49:24 +0100 (CET) From: "Arne H. Juul" To: Skip Ford In-Reply-To: <20070225203000.GB717@heather.menantico.com> Message-ID: References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> <20070225183534.GC18421@osiris.chen.org.nz> <20070225203000.GB717@heather.menantico.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 20:49:25 -0000 On Sun, 25 Feb 2007, Skip Ford wrote: >> Try rebuilding open-motif. You have have a corrupt binary (due to >> reasons unknown). > > After the extract stage, grep the open-motif sources for 'objformat' > to make sure this isn't more fallout from its removal. objformat removed? ouch. I should have asked the original poster for details about OS version etc, now this sounds like a good tip, since I see this code in work/openMotif-2.2.3/config/imake/imake.c: #ifdef __FreeBSD__ static void get_binary_format(FILE *inFile) { int mib[2]; size_t len; int osrel = 0; FILE *objprog = NULL; int iself = 0; char buf[10]; mib[0] = CTL_KERN; mib[1] = KERN_OSRELDATE; len = sizeof(osrel); sysctl(mib, 2, &osrel, &len, NULL, 0); if (osrel >= 300004 && (objprog = popen("objformat", "r")) != NULL && fgets(buf, sizeof(buf), objprog) != NULL && strncmp(buf, "elf", 3) == 0) iself = 1; if (objprog) pclose(objprog); fprintf(inFile, "#define DefaultToElfFormat %s\n", iself ? "YES" : "NO"); } #endif From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 21:04:13 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BBEEB16A403 for ; Sun, 25 Feb 2007 21:04:13 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF6F13C478 for ; Sun, 25 Feb 2007 21:04:13 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from pool-71-168-248-177.cmdnnj.east.verizon.net ([71.168.244.241]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JE100JS0EIHLFWD@vms048.mailsrvcs.net> for freebsd-java@FreeBSD.org; Sun, 25 Feb 2007 15:03:54 -0600 (CST) Date: Sun, 25 Feb 2007 16:03:38 -0500 From: Skip Ford In-reply-to: To: "Arne H. Juul" Mail-followup-to: "Arne H. Juul" , Skip Ford , freebsd-java@FreeBSD.org Message-id: <20070225210338.GC717@heather.menantico.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> <20070225183534.GC18421@osiris.chen.org.nz> <20070225203000.GB717@heather.menantico.com> User-Agent: Mutt/1.4.2.2i Cc: Skip Ford , freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 21:04:13 -0000 Arne H. Juul wrote: > On Sun, 25 Feb 2007, Skip Ford wrote: > >>Try rebuilding open-motif. You have have a corrupt binary (due to > >>reasons unknown). > > > >After the extract stage, grep the open-motif sources for 'objformat' > >to make sure this isn't more fallout from its removal. > > objformat removed? ouch. I should have asked the original poster for > details about OS version etc, now this sounds like a good tip, since I > see this code in work/openMotif-2.2.3/config/imake/imake.c: [snip] The imake in xorg just had to be patched too. Anyone who doesn't want to try to fix things correctly or just doesn't know how can create a shell script named "/usr/bin/objformat" that just echoes "elf" when invoked, unless you already have an 'objformat' of course. It's cheating, but it works until every affected port is corrected. Several have already been fixed. Alternatively, the port can be fixed correctly and solution shared via send-pr. -- Skip From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 21:10:18 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C79316A403 for ; Sun, 25 Feb 2007 21:10:18 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.freebsd.org (Postfix) with ESMTP id 2C8A913C48E for ; Sun, 25 Feb 2007 21:10:18 +0000 (UTC) (envelope-from skip.ford@verizon.net) Received: from pool-71-168-248-177.cmdnnj.east.verizon.net ([71.168.244.241]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JE100JZ7ESZKYKD@vms048.mailsrvcs.net> for freebsd-java@FreeBSD.org; Sun, 25 Feb 2007 15:10:12 -0600 (CST) Date: Sun, 25 Feb 2007 16:09:57 -0500 From: Skip Ford In-reply-to: <20070225210338.GC717@heather.menantico.com> To: "Arne H. Juul" , freebsd-java@FreeBSD.org Mail-followup-to: "Arne H. Juul" , freebsd-java@FreeBSD.org Message-id: <20070225210957.GD717@heather.menantico.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> <20070225183534.GC18421@osiris.chen.org.nz> <20070225203000.GB717@heather.menantico.com> <20070225210338.GC717@heather.menantico.com> User-Agent: Mutt/1.4.2.2i Cc: Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 21:10:18 -0000 Skip Ford wrote: > Arne H. Juul wrote: > > On Sun, 25 Feb 2007, Skip Ford wrote: > > >>Try rebuilding open-motif. You have have a corrupt binary (due to > > >>reasons unknown). > > > > > >After the extract stage, grep the open-motif sources for 'objformat' > > >to make sure this isn't more fallout from its removal. > > > > objformat removed? ouch. I should have asked the original poster for > > details about OS version etc, now this sounds like a good tip, since I > > see this code in work/openMotif-2.2.3/config/imake/imake.c: > [snip] > > The imake in xorg just had to be patched too. Then again, in this thread the OP indicated the format of his library matched yours, and your output showed "elf" so that must not be the problem here. -- Skip From owner-freebsd-java@FreeBSD.ORG Sun Feb 25 22:17:35 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C26BD16A400; Sun, 25 Feb 2007 22:17:35 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from smtp-out3.libero.it (smtp-out3.libero.it [212.52.84.43]) by mx1.freebsd.org (Postfix) with ESMTP id 57BCA13C428; Sun, 25 Feb 2007 22:17:35 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from localhost (172.31.0.43) by smtp-out3.libero.it (7.3.120) id 45D9985C006E83B9; Sun, 25 Feb 2007 22:52:21 +0100 X-Scanned: with antispam and antivirus automated system at libero.it X-Amavis-Alert: BAD HEADER MIME error: error: couldn't parse head; error near:; >; X-XaM3-API-Version: 4.3 (R1) (B3pl17); X-SenderIP: 82.49.197.26 Received: from smtp-out4.libero.it ([172.31.0.40]) by localhost (asav-out3.libero.it [192.168.32.31]) (amavisd-new, port 10024) with ESMTP id v+7-7B7EMq0d; Sun, 25 Feb 2007 22:52:20 +0100 (CET) Received: from libero.it (192.168.16.58) by smtp-out4.libero.it (7.3.120) id 45D99933002F20F6; Sun, 25 Feb 2007 22:52:20 +0100 Date: Sun, 25 Feb 2007 22:52:20 +0100 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "barbara" To: "freebsd-vuxml" , "security-team" , "secteam" Cc: freebsd-java Subject: portaudit and linux-sun-jdk15 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Feb 2007 22:17:35 -0000 > X-XaM3-API-Version: 4.3 (R1) (B3pl17) X-SenderIP: 82.49.197.26 I'm referring to the informations displayed on this page: http://www.vuxml.org/freebsd/18e5428f-ae7c-11d9-837d-000e0c2e438a.html Is the information about linux-sun-jdk15 correct? 1.5.* <=3D linux-sun-jdk <=3D 1.5.2.02,2 I think that the correct version should be 1.5.0.02,2 considering also th= at a 1.5 based version >=3D1.5.1 doesn't (yet) exist. The last jdk versions for linux is 1.5.0.11 and the port with that versio= n has been committed today, but portaudit is still complaining about this= vulnerability. Thank you. P.S. Sorry if I'm writing to too many people, but I'm not sure about who is re= sponsible for that problem. =0A=0A=0A------------------------------------------------------=0APassa a= Infostrada. ADSL e Telefono senza limiti e senza canone Telecom=0Ahttp:/= /click.libero.it/infostrada25feb07=0A From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 00:41:51 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6DAA716A402 for ; Mon, 26 Feb 2007 00:41:51 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: from vfemail.net (dell.vfemail.net [216.170.248.236]) by mx1.freebsd.org (Postfix) with ESMTP id D8C5F13C467 for ; Mon, 26 Feb 2007 00:41:50 +0000 (UTC) (envelope-from freebsd@vfemail.net) Received: (qmail 19435 invoked by uid 89); 26 Feb 2007 00:41:49 -0000 Received: by simscan 1.1.0 ppid: 19410, pid: 19413, t: 5.9471s scanners: attach: 1.0.8 clamav: 0.80/m:28/d:614 spam: 3.0.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on antispam.vfemail.net X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ADDR_FREE,AWL,BAYES_00 autolearn=unavailable version=3.1.7 Received: from unknown (HELO inmail.vfemail.net) (127.0.0.1) by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP; 26 Feb 2007 00:41:43 -0000 Received: (qmail 19400 invoked by uid 89); 26 Feb 2007 00:41:43 -0000 Received: from unknown (HELO vfemail.net) (vfemail@172.16.100.20) by 0 with SMTP; 26 Feb 2007 00:41:43 -0000 Received: (qmail 50383 invoked by uid 0); 26 Feb 2007 00:41:40 -0000 Received: by simscan 1.1.0 ppid: 50344, pid: 50379, t: 0.1521s scanners:none Received: from unknown (HELO ?82.3.149.179?) (freebsd@vfemail.net@216.170.248.235) by mail.vfemail.net with SMTP; 26 Feb 2007 00:41:40 -0000 Message-ID: <45E22CBB.6040105@vfemail.net> Date: Mon, 26 Feb 2007 00:41:31 +0000 From: Free BSD User-Agent: Thunderbird 1.5.0.9 (X11/20070209) MIME-Version: 1.0 To: "Arne H. Juul" References: <45E0DAB0.6010809@vfemail.net> <45E1C10B.90403@vfemail.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-java@FreeBSD.org Subject: Re: JDK 1.5 does not build on AMD-64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 00:41:51 -0000 > hmf, so that wasn't a good test then. What about this one: > objdump -r CascadeB.o | grep R_X86_64_32 > on my system that gives no output at all. > > Maybe you have installed lesstif on top o >> >> - Arne H. J. >> >> > f open-motif, overwriting > libXm.a with the lesstif version? Well, as I ran this command, I got some output objdump -r CascadeB.o | grep R_X86_64_32 0000000000000005 R_X86_64_32 _XmCascadeB_menubar_events 000000000000000f R_X86_64_32 _XmCascadeB_p_events 0000000000000052 R_X86_64_32 .data+0x00000000000004c0 00000000000026d1 R_X86_64_32 .text+0x0000000000002720 And as sujjested by Jonathan, I'll try re-building the open-motiff now thanks for all the response. Best regards From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 02:49:13 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 250C416A405 for ; Mon, 26 Feb 2007 02:49:13 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from mail1.intricatesoftware.com (static-64-115-215-92.isp.broadviewnet.net [64.115.215.92]) by mx1.freebsd.org (Postfix) with ESMTP id 4E7FF13C4B9 for ; Mon, 26 Feb 2007 02:49:12 +0000 (UTC) (envelope-from lists@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.13.8/8.13.4) with ESMTP id l1Q2cmad016884 for ; Sun, 25 Feb 2007 21:38:48 -0500 (EST) Received: from localhost.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.0/8.14.0) with ESMTP id l1Q2clbG006003 for ; Sun, 25 Feb 2007 21:38:48 -0500 (EST) From: Kurt Miller To: freebsd-java@freebsd.org Date: Sun, 25 Feb 2007 21:38:46 -0500 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702252138.46660.lists@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.4 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,SPF_HELO_PASS X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -1.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.3 X-Its-A-Nuisance: This is spam X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Subject: Re: patch: fix and re-enable curthread hash lookup 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, 26 Feb 2007 02:49:13 -0000 On Thursday 22 February 2007 6:10 pm, Arne H. Juul wrote: > I've analyzed the currently disabled code that implements a faster method > to find the current (Java) thread object by getting hold of the stack > pointer and doing a lookup in a hash table. This used to fail on thread > exit sometimes because the invalidation wasn't done properly; I've also > changed some of the parameters for the hash code and upped the size of the > hash table so it should be more optimal. > > Finally I've added a "near hit" feature that should make the lookup faster > when a thread is crossing back and forth over a stack page boundary; > earlier this would always trigger the slow path, but now it compares the > current stack pointer with the low and high stack boundaries and gets a > hit if the hash table entry still points at the right thread object. > > This patch is still experimental, so if people can take a look at it and > tell me about any problems they can spot that would be much appreciated. > > - Arne H. J. Hi, I tried to apply the diff but all parts were rejected. Can you send this again in unified format? I don't mind applying it manually but I only grock unified diffs. :-) -Kurt From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 06:12:12 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E8A2F16A400 for ; Mon, 26 Feb 2007 06:12:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 5900313C49D for ; Mon, 26 Feb 2007 06:12:11 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLZ5m-00013G-C5; Mon, 26 Feb 2007 07:12:10 +0100 Date: Mon, 26 Feb 2007 07:12:10 +0100 (CET) From: "Arne H. Juul" To: kurt@intricatesoftware.com In-Reply-To: <200702252138.46660.lists@intricatesoftware.com> Message-ID: References: <200702252138.46660.lists@intricatesoftware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@freebsd.org Subject: Re: patch: fix and re-enable curthread hash lookup X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 06:12:13 -0000 On Sun, 25 Feb 2007, Kurt Miller wrote: > On Thursday 22 February 2007 6:10 pm, Arne H. Juul wrote: >> This patch is still experimental, so if people can take a look at it and >> tell me about any problems they can spot that would be much appreciated. > > Hi, > > I tried to apply the diff but all parts were rejected. > Can you send this again in unified format? I don't mind > applying it manually but I only grock unified diffs. :-) actually I made unified diff first, and found that the important parts were too unreadable there, that's why I made a context diff... it *should* apply cleanly to 1.5.0 SCSL sources + BSD patchkit 4, here it is again in unified format: diff -ru jdk-1_5_0-scsl.b4/hotspot/src/os/bsd/vm/os_bsd.cpp jdk-1_5_0-scsl.b4.fct2/hotspot/src/os/bsd/vm/os_bsd.cpp --- jdk-1_5_0-scsl.b4/hotspot/src/os/bsd/vm/os_bsd.cpp 2007-01-24 11:12:39.000000000 +0100 +++ jdk-1_5_0-scsl.b4.fct2/hotspot/src/os/bsd/vm/os_bsd.cpp 2007-02-22 23:53:00.000000000 +0100 @@ -138,15 +138,39 @@ // thread value in thread local storage. #endif + uintptr_t raw = pd_raw_thread_id(); + int ix = pd_cache_index(raw); + + if (thread != NULL) { + // first make sure that nobody gets a cache collision pointing to + // this thread by updating its raw id + thread->_self_raw_id = raw; + // Store the new value before updating the cache to prevent a race // between get_thread_via_cache_slowly() and this store operation. os::thread_local_storage_at_put(ThreadLocalStorage::thread_index(), thread); - // Update thread cache with new thread if setting on thread create, - // or NO_CACHED_THREAD (zeroed) thread if resetting thread on exit. - uintptr_t raw = pd_raw_thread_id(); - int ix = pd_cache_index(raw); - _get_thread_cache[ix] = thread == NULL ? NO_CACHED_THREAD : thread; + // Update thread cache with new thread if setting on thread create + _get_thread_cache[ix] = thread; + } else { + // deleting current thread, must get old value first + Thread* was_thread = Thread::current(); + + // first make sure that nobody gets a cache collision pointing to + // the old thread data (soon to be free'd) by updating the raw id + was_thread->_self_raw_id = raw; + + // again, update the "real" value first: + os::thread_local_storage_at_put(ThreadLocalStorage::thread_index(), thread); + + // then invalidate all cache elements that pointed to this thread + // by setting them to NO_CACHED_THREAD (zeroed thread) + for (int ix = 0; ix < _pd_cache_size; ++ix) { + if (_get_thread_cache[ix] == was_thread) { + _get_thread_cache[ix] = NO_CACHED_THREAD; + } + } + } } void ThreadLocalStorage::pd_init() { @@ -1190,7 +1214,7 @@ // XXXBSD: hmm... really do not need? void os::free_thread_local_storage(int index) { // %%% don't think we need anything here - // if ( pthread_key_delete((pthread_key_t) tk) ) + // if ( pthread_key_delete((pthread_key_t) index) ) // fatal("os::free_thread_local_storage: pthread_key_delete failed"); } diff -ru jdk-1_5_0-scsl.b4/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp jdk-1_5_0-scsl.b4.fct2/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp --- jdk-1_5_0-scsl.b4/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp 2007-01-24 11:12:39.000000000 +0100 +++ jdk-1_5_0-scsl.b4.fct2/hotspot/src/os/bsd/vm/thread_bsd.inline.hpp 2007-02-22 23:53:00.000000000 +0100 @@ -19,18 +19,31 @@ uintptr_t raw = pd_raw_thread_id(); int ix = pd_cache_index(raw); -// XXXBSD: disable fast case. there is a race condition where the -// fast case returns a different thread from the slow case and has -// been seen on both OpenBSD and FreeBSD. +// XXXBSD: fast case. +// there was a race condition where the fast case returned a different +// thread from the slow case and has been seen on both OpenBSD and +// FreeBSD, but I think it's fixed, so enable it for now: #if 1 - return ThreadLocalStorage::get_thread_via_cache_slowly(raw, ix); -#else Thread *Candidate = ThreadLocalStorage::_get_thread_cache[ix]; + if (Candidate->_self_raw_id == raw) { - // hit + // direct hit return Candidate; - } else { - return ThreadLocalStorage::get_thread_via_cache_slowly(raw, ix); } + + address stacktop = Candidate->_stack_base; + address stackbot = Candidate->_stack_base - Candidate->_stack_size; + + address sp = pd_sp_address(); + + // is this still the right thread? Check if current stack pointer + // is within the thread's stack, if ok update it with current raw id. + if (stacktop > sp && stackbot <= sp ) { + Candidate->_self_raw_id = raw; + // indirect hit + return Candidate; + } + ix = pd_cache_index(raw); #endif + return ThreadLocalStorage::get_thread_via_cache_slowly(raw, ix); } diff -ru jdk-1_5_0-scsl.b4/hotspot/src/os_cpu/bsd_amd64/vm/threadLS_bsd_amd64.hpp jdk-1_5_0-scsl.b4.fct2/hotspot/src/os_cpu/bsd_amd64/vm/threadLS_bsd_amd64.hpp --- jdk-1_5_0-scsl.b4/hotspot/src/os_cpu/bsd_amd64/vm/threadLS_bsd_amd64.hpp 2007-01-24 11:12:39.000000000 +0100 +++ jdk-1_5_0-scsl.b4.fct2/hotspot/src/os_cpu/bsd_amd64/vm/threadLS_bsd_amd64.hpp 2007-02-22 23:53:00.000000000 +0100 @@ -9,7 +9,7 @@ // Processor dependent parts of ThreadLocalStorage private: - static Thread* _get_thread_cache[]; // index by [(raw_id>>9)^(raw_id>>20) % _pd_cache_size] + static Thread* _get_thread_cache[]; // index by [(raw_id^(raw_id>>10)) % _pd_cache_size] static Thread* get_thread_via_cache_slowly(uintptr_t raw_id, int index); NOT_PRODUCT(static int _tcacheHit;) @@ -20,8 +20,8 @@ static void print_statistics() PRODUCT_RETURN; enum Constants { - _pd_cache_size = 128*2, // projected typical # of threads * 2 - + // projected typical # of threads * 2 * typical active stack pages + _pd_cache_size = 128*2*4, _pd_min_page_size = 4*K, _pd_typical_stack_size = 512*K }; @@ -37,9 +37,8 @@ } static int pd_cache_index(uintptr_t sp_page) { - return ((sp_page / 2) /* pages tend to come in pairs */ - ^ (sp_page / (_pd_typical_stack_size/_pd_min_page_size))) - % _pd_cache_size; + // _pd_cache_size == 1<<10 + return (sp_page ^ (sp_page >> 10)) % _pd_cache_size; } // Java Thread diff -ru jdk-1_5_0-scsl.b4/hotspot/src/os_cpu/bsd_i486/vm/threadLS_bsd_i486.hpp jdk-1_5_0-scsl.b4.fct2/hotspot/src/os_cpu/bsd_i486/vm/threadLS_bsd_i486.hpp --- jdk-1_5_0-scsl.b4/hotspot/src/os_cpu/bsd_i486/vm/threadLS_bsd_i486.hpp 2007-01-24 11:12:39.000000000 +0100 +++ jdk-1_5_0-scsl.b4.fct2/hotspot/src/os_cpu/bsd_i486/vm/threadLS_bsd_i486.hpp 2007-02-22 23:53:00.000000000 +0100 @@ -9,7 +9,7 @@ // Processor dependent parts of ThreadLocalStorage private: - static Thread* _get_thread_cache[]; // index by [(raw_id>>9)^(raw_id>>20) % _pd_cache_size] + static Thread* _get_thread_cache[]; // index by [(raw_id^(raw_id>>10)) % _pd_cache_size] static Thread* get_thread_via_cache_slowly(uintptr_t raw_id, int index); NOT_PRODUCT(static int _tcacheHit;) @@ -20,26 +20,26 @@ static void print_statistics() PRODUCT_RETURN; enum Constants { - _pd_cache_size = 128*2, // projected typical # of threads * 2 - + // projected typical # of threads * typical active stack pages * 2 + _pd_cache_size = 128*2*4, _pd_min_page_size = 4*K, _pd_typical_stack_size = 512*K }; static address pd_sp_address() { - int junk; - return (address)&junk; + address sp; + __asm__ volatile ("movl %%esp, %0" : "=r" (sp)); + return sp; } static uintptr_t pd_raw_thread_id() { - address sp = pd_sp_address(); - return (unsigned int)sp / _pd_min_page_size; + // _pd_min_page_size == 1 << 12 + return ((unsigned int)pd_sp_address()) >> 12; } static int pd_cache_index(uintptr_t sp_page) { - return ((sp_page / 2) /* pages tend to come in pairs */ - ^ (sp_page / (_pd_typical_stack_size/_pd_min_page_size))) - % _pd_cache_size; + // _pd_cache_size == 1<<10 + return (sp_page ^ (sp_page >> 10)) % _pd_cache_size; } // Java Thread diff -ru jdk-1_5_0-scsl.b4/hotspot/src/share/vm/runtime/thread.cpp jdk-1_5_0-scsl.b4.fct2/hotspot/src/share/vm/runtime/thread.cpp --- jdk-1_5_0-scsl.b4/hotspot/src/share/vm/runtime/thread.cpp 2007-01-24 10:40:33.000000000 +0100 +++ jdk-1_5_0-scsl.b4.fct2/hotspot/src/share/vm/runtime/thread.cpp 2007-02-22 23:53:01.000000000 +0100 @@ -104,6 +104,11 @@ delete _SR_lock; + // to make sure nobody finds the deleted thread as a current thread + // in the cache (when comparing stack pointers) + set_stack_base(0); + set_stack_size(0); + // clear thread local storage if the Thread is deleting itself if (this == Thread::current()) { ThreadLocalStorage::set_thread(NULL); From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 08:11:39 2007 Return-Path: X-Original-To: java@freebsd.org Delivered-To: freebsd-java@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C781016A40A for ; Mon, 26 Feb 2007 08:11:39 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from mail.droso.net (koala.droso.net [193.88.12.38]) by mx1.freebsd.org (Postfix) with ESMTP id 9087A13C4A6 for ; Mon, 26 Feb 2007 08:11:39 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from localhost (localhost.droso.net [127.0.0.1]) by mail.droso.net (Postfix) with ESMTP id A88061CFC0 for ; Mon, 26 Feb 2007 09:11:38 +0100 (CET) Received: from koala.droso.net (localhost.droso.net [IPv6:::1]) by mail.droso.net (Postfix) with ESMTP id 871DA1CFA0 for ; Mon, 26 Feb 2007 09:11:38 +0100 (CET) From: linimon@FreeBSD.org To: java@freebsd.org Message-Id: <20070226081138.871DA1CFA0@mail.droso.net> Date: Mon, 26 Feb 2007 09:11:38 +0100 (CET) X-Virus-Scanned: by amavisd 0.1 Cc: Subject: FreeBSD ports that you maintain which are currently marked forbidden X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 08:11:39 -0000 Dear FreeBSD port maintainer: As part of an ongoing effort to reduce the number of problems in the FreeBSD ports system, we are attempting to notify maintainers of ports that are marked as "forbidden" in their Makefiles. Often, these ports are so marked due to security concerns, such as known exploits. An overview of the port, including errors seen on the build farm, is included below. portname: java/linux-blackdown-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=java&portname=linux-blackdown-jdk13 portname: java/linux-ibm-jdk13 forbidden because: Vulnerabilities in the browser plugin build errors: none. overview: http://portsmon.FreeBSD.org/portoverview.py?category=java&portname=linux-ibm-jdk13 If this problem is one that you are already aware of, please accept our apologies and ignore this message. On the other hand, if you no longer wish to maintain this port (or ports), please reply with a message stating that, and accept our thanks for your efforts in the past. Thanks for your efforts to help improve FreeBSD. From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 11:15:19 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E854016A410 for ; Mon, 26 Feb 2007 11:15:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id CD87413C4A8 for ; Mon, 26 Feb 2007 11:15:19 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1QBFJlt005466 for ; Mon, 26 Feb 2007 11:15:19 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1QBFE8M005461 for freebsd-java@FreeBSD.org; Mon, 26 Feb 2007 11:15:15 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 Feb 2007 11:15:15 GMT Message-Id: <200702261115.l1QBFE8M005461@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-java@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 11:15:20 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- s ports/60083 java Unsafe use of getaddrinfo in jvm 1.4.2-p5 o java/66151 java JBuilderX (sun jvm 1.4.1 builtin) crashes on 4.9 works f java/72151 java JVM crash on 5.2.1-R o java/76631 java any port linux-*-jdk12 will core dump if using linux_b o java/104627 java Makefile jdk14 broken o java/105369 java problem with port diablo-jdk15 o java/105482 java diablo-jdk1.5.0/jdk-1.5.0 java.nio.Selector bug 7 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- f ports/56928 java jce-aba port should install to $JAVA_HOME/jre/lib/ext f java/62837 java linux-sun-jdk14 executables hang with COMPAT_LINUX in o ports/84742 java make ports/java/jdk14 use dynamic Motif librarires f ports/91244 java Bad instruction on making process of jdk14 o java/97461 java Diablo JDK does not report Update level in a format su f ports/108070 java Update devel/apache-ant from 1.6.2 to 1.7.0 o ports/108406 java Offer for maintainership of devel/apache-ant 7 problems total. From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 12:03:26 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8385616A401 for ; Mon, 26 Feb 2007 12:03:26 +0000 (UTC) (envelope-from jurij.kovacic@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 0326613C4B4 for ; Mon, 26 Feb 2007 12:03:21 +0000 (UTC) (envelope-from jurij.kovacic@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1471763nfc for ; Mon, 26 Feb 2007 04:03:20 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Z4VLWIikshdhXdrVsJQODlKfR2aL0/c+xfy3EpDQpftSN+jKdUy4dXaHoPAtvVLxrjsvm15JqBqWx4pEdj11wDaO8n34kZ8/ArOUy702V12uOMYNRx1SefQufYuKi99xntd/skGAPOJCXDeTo817uy8GZptdvrIAxZHVgdAl1TI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=SBW4W7sQ1PUGScYEIX56NXG55DZX2osFOk3W/71/ExVulBd1hMjFLtf0q5TcDGEfqyavNsQdmHgCw/scN4X6bWEe65W9ELvdWXZedp2m4Qhlf6AWh8JPQGaZDKSOX9w0xDMWe6e7E/h+jeXLAoL9Gc/rCljxa0d1dxYtUfOwqvM= Received: by 10.49.91.6 with SMTP id t6mr8321423nfl.1172489947921; Mon, 26 Feb 2007 03:39:07 -0800 (PST) Received: from ?10.212.255.130? ( [85.10.21.193]) by mx.google.com with ESMTP id i5sm21679406mue.2007.02.26.03.39.07; Mon, 26 Feb 2007 03:39:07 -0800 (PST) Message-ID: <45E2C6D2.9080603@gmail.com> Date: Mon, 26 Feb 2007 12:38:58 +0100 From: Jurij Kovacic User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: freebsd-java@FreeBSD.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Java VM on diablo-jdk-1.5.0.07.01 crashing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 12:03:26 -0000 Hello! After our in-house application ("blobber") was upgradeded, we've been having problems with Java VM crashing every couple of days or so. If anyone has a suggestion or a an idea as to why this is happening it will be deeply appreciated. Thank you, Jurij Kovacic # # An unexpected error has been detected by HotSpot Virtual Machine: # # SIGSEGV (0xb) at pc=0x644b8ac7, pid=65793, tid=0x8bfe800 # # Java VM: Java HotSpot(TM) Server VM (diablo-1.5.0_07-b01 mixed mode) # Problematic frame: # V [libjvm.so+0x652ac7] # --------------- T H R E A D --------------- Current thread (0x08fe1400): JavaThread "ObservationManager" daemon [_thread_in_vm, id=146794496] siginfo:si_signo=11, si_errno=0, si_code=12, si_addr=0x00000008 Registers: EAX=0xaad9a1e0, EBX=0x64585088, ECX=0x00000000, EDX=0x6dedcd48 ESP=0xbe5b181c, EBP=0xbe5b1840, ESI=0x00000000, EDI=0x00000000 EIP=0x644b8ac7, EFLAGS=0x00010616 Top of Stack: (sp=0xbe5b181c) 0xbe5b181c: 64585088 00000000 08fe1400 be5b1858 0xbe5b182c: 6446ad8a 6a5e0438 64585088 00000000 0xbe5b183c: aad9a1e0 be5b18a0 64280ba8 6a5e0438 0xbe5b184c: 6dedcd48 00000000 aad9a1e0 00000000 0xbe5b185c: 00000012 08fe1400 be5b18c4 08fe1400 0xbe5b186c: 08fe1400 6a5e0438 00000010 08fe1400 0xbe5b187c: 6755f1a0 63d72694 be5b1894 63d64bed 0xbe5b188c: be5b18e8 6755f268 be5b18e8 6755f268 Instructions: (pc=0x644b8ac7) 0x644b8ab7: 08 8b 45 14 89 75 f0 8b 7d 18 8b 48 04 8b 75 10 0x644b8ac7: 8b 41 08 8d 51 08 52 ff 90 a4 00 00 00 83 c4 10 Stack: [0xbe572000,0xbe5b2000), sp=0xbe5b181c, free space=254k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) V [libjvm.so+0x652ac7] V [libjvm.so+0x41aba8] J java.lang.System.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J java.lang.System.arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V J java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/StringBuffer; v ~I2CAdapter j org.apache.jackrabbit.core.observation.ObservationDispatcher.run()V+42 j java.lang.Thread.run()V+11 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x0925f600 JavaThread "IndexMerger" daemon [_thread_blocked, id=152267776] 0x0903c800 JavaThread "ObservationManager" daemon [_thread_blocked, id=151563264] 0x0910be00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=151513088] 0x091d3600 JavaThread "IndexMerger" daemon [_thread_blocked, id=154340352] 0x083e0600 JavaThread "ObservationManager" daemon [_thread_blocked, id=154337280] 0x092a8e00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=152392704] 0x092a8a00 JavaThread "IndexMerger" daemon [_thread_blocked, id=154466304] 0x08f43e00 JavaThread "ObservationManager" daemon [_thread_blocked, id=153635840] 0x08e1a000 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=146170880] 0x0903ca00 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=154139648] 0x09413400 JavaThread "IndexMerger" daemon [_thread_blocked, id=152751104] 0x08f43200 JavaThread "ObservationManager" daemon [_thread_blocked, id=151700480] 0x0939da00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=155051008] 0x090fae00 JavaThread "IndexMerger" daemon [_thread_blocked, id=153954304] 0x090fa600 JavaThread "ObservationManager" daemon [_thread_blocked, id=153634816] 0x0923c000 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=152913920] 0x0925fe00 JavaThread "IndexMerger" daemon [_thread_blocked, id=153185280] 0x092a8800 JavaThread "ObservationManager" daemon [_thread_blocked, id=156919808] 0x094d3400 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=156918784] 0x09194800 JavaThread "IndexMerger" daemon [_thread_blocked, id=153560064] 0x090a1800 JavaThread "ObservationManager" daemon [_thread_blocked, id=151574528] 0x092a8400 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=153184256] 0x091b8c00 JavaThread "IndexMerger" daemon [_thread_blocked, id=151804928] 0x090f9a00 JavaThread "ObservationManager" daemon [_thread_blocked, id=153480192] 0x08e1ae00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=153387008] 0x09113e00 JavaThread "IndexMerger" daemon [_thread_blocked, id=153835520] 0x09098000 JavaThread "ObservationManager" daemon [_thread_blocked, id=151702528] 0x083b5a00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=151110656] 0x091c5800 JavaThread "Transient File Reaper" daemon [_thread_blocked, id=151802880] 0x0903c200 JavaThread "IndexMerger" daemon [_thread_blocked, id=149650432] 0x09168800 JavaThread "ObservationManager" daemon [_thread_blocked, id=149649408] 0x08dee200 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=151785472] 0x0910b400 JavaThread "TP-Processor16" daemon [_thread_in_native, id=151726080] 0x0910b200 JavaThread "TP-Processor15" daemon [_thread_in_native, id=152197120] 0x0910b000 JavaThread "TP-Processor14" daemon [_thread_blocked, id=150489088] 0x0909ae00 JavaThread "TP-Processor13" daemon [_thread_blocked, id=150480896] 0x09098a00 JavaThread "MultiThreadedHttpConnectionManager cleanup" daemon [_thread_blocked, id=152835072] 0x08e1a800 JavaThread "IndexMerger" daemon [_thread_blocked, id=149311488] 0x08e1a600 JavaThread "ObservationManager" daemon [_thread_blocked, id=147761152] 0x08cec800 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=147760128] 0x08fe1600 JavaThread "IndexMerger" daemon [_thread_blocked, id=146795520] =>0x08fe1400 JavaThread "ObservationManager" daemon [_thread_in_vm, id=146794496] 0x08fe1000 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=150795264] 0x08eb0e00 JavaThread "SecurityCacheInvalidationTimer" daemon [_thread_blocked, id=147703808] 0x083b5400 JavaThread "TP-Processor12" daemon [_thread_blocked, id=138117120] 0x083b5200 JavaThread "TP-Processor11" daemon [_thread_in_native, id=138109952] 0x083b5000 JavaThread "TP-Processor10" daemon [_thread_in_native, id=136649728] 0x089aee00 JavaThread "TP-Processor9" daemon [_thread_in_native, id=136648704] 0x0864f400 JavaThread "TP-Processor8" daemon [_thread_in_native, id=140840960] 0x0864f200 JavaThread "TP-Processor7" daemon [_thread_in_native, id=139094016] 0x0864f000 JavaThread "TP-Processor6" daemon [_thread_in_native, id=147794944] 0x0862e400 JavaThread "TP-Processor5" daemon [_thread_blocked, id=141462528] 0x08472c00 JavaThread "SystemStatusLogTimer" daemon [_thread_blocked, id=136180736] 0x08472200 JavaThread "Thread-30" [_thread_blocked, id=138237952] 0x081b8400 JavaThread "http-0.0.0.0-8080-1" daemon [_thread_blocked, id=151070720] 0x088d5000 JavaThread "TP-Monitor" daemon [_thread_blocked, id=143962112] 0x08f11e00 JavaThread "TP-Processor4" daemon [_thread_in_native, id=143365120] 0x08f11c00 JavaThread "TP-Processor3" daemon [_thread_blocked, id=141654016] 0x08f25e00 JavaThread "TP-Processor2" daemon [_thread_in_native, id=141652992] 0x084d0000 JavaThread "TP-Processor1" daemon [_thread_in_vm, id=150991872] 0x083e0c00 JavaThread "http-0.0.0.0-8080" daemon [_thread_in_native, id=151069696] 0x0898e000 JavaThread "JBossLifeThread" [_thread_blocked, id=137145344] 0x08f11400 JavaThread "QuartzScheduler_Cocoon-Fri_Feb_23_22:22:41_CET_2007_MisfireHandler" [_thread_blocked, id=150993920] 0x08f11200 JavaThread "QuartzScheduler_Cocoon-Fri_Feb_23_22:22:41_CET_2007_ClusterManager" [_thread_blocked, id=150992896] 0x08f11000 JavaThread "Cocoon_QuartzSchedulerThread" [_thread_blocked, id=150013952] 0x084d0e00 JavaThread "Store cocoon-ehcache-1 Spool Thread" daemon [_thread_blocked, id=149989376] 0x084d0800 JavaThread "Thread-20" daemon [_thread_blocked, id=150402048] 0x084d0600 JavaThread "Thread-19" [_thread_blocked, id=137227264] 0x08f25c00 JavaThread "SystemStatusDBLogTimer" [_thread_blocked, id=137225216] 0x08f25a00 JavaThread "LogPersistTimer" [_thread_blocked, id=137224192] 0x08f25800 JavaThread "Thread-16" daemon [_thread_blocked, id=150326272] 0x08df1800 JavaThread "Smack Listener Processor" daemon [_thread_blocked, id=138496000] 0x08df1600 JavaThread "Smack Packet Reader" daemon [_thread_in_native, id=138494976] 0x08df1400 JavaThread "Smack Packet Writer" daemon [_thread_blocked, id=138493952] 0x08df1200 JavaThread "blobber-SMS-reconfigurator" daemon [_thread_blocked, id=148224000] 0x087e3600 JavaThread "Timer-5" [_thread_blocked, id=142763008] 0x087e3400 JavaThread "IdleRemover" daemon [_thread_blocked, id=142736384] 0x088eba00 JavaThread "RMI TCP Accept-8099" daemon [_thread_in_native, id=146544640] 0x088eb400 JavaThread "RMI TCP Accept-0" daemon [_thread_in_native, id=139487232] 0x088eb000 JavaThread "WorkspaceJanitor" daemon [_thread_blocked, id=138254336] 0x08247e00 JavaThread "IndexMerger" daemon [_thread_blocked, id=138253312] 0x088eb200 JavaThread "Timer-4" daemon [_thread_blocked, id=138190848] 0x0866ea00 JavaThread "IndexMerger" daemon [_thread_blocked, id=138185728] 0x08247c00 JavaThread "ObservationManager" daemon [_thread_blocked, id=138184704] 0x0866ec00 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=144566272] 0x0866e600 JavaThread "derby.rawStoreDaemon" daemon [_thread_blocked, id=141002752] 0x0866e400 JavaThread "Timer-3" daemon [_thread_blocked, id=141001728] 0x08249e00 JavaThread "derby.antiGC" daemon [_thread_blocked, id=141000704] 0x088d6000 JavaThread "UILServerILService Accept Thread" [_thread_in_native, id=138338304] 0x08219e00 JavaThread "TimeoutFactory" daemon [_thread_blocked, id=138015744] 0x08219a00 JavaThread "JCA PoolFiller" [_thread_blocked, id=144019456] 0x08a44600 JavaThread "Timer-2" daemon [_thread_blocked, id=145391616] 0x08219600 JavaThread "HSQLDB Timer @9549af" daemon [_thread_blocked, id=143765504] 0x08a44200 JavaThread "WorkManager(2)-1" daemon [_thread_blocked, id=139578368] 0x0895b800 JavaThread "Thread-3" daemon [_thread_blocked, id=137796608] 0x0895b600 JavaThread "JBossMQ Cache Reference Softner" daemon [_thread_blocked, id=137287680] 0x08644000 JavaThread "ContainerBackgroundProcessor[StandardEngine[jboss.web]]" daemon [_thread_blocked, id=139515904] 0x084ea200 JavaThread "PooledInvokerAcceptor#0-4445" [_thread_in_native, id=139388928] 0x084ea000 JavaThread "RMI TCP Accept-4444" daemon [_thread_in_native, id=139367424] 0x082ffe00 JavaThread "JBoss System Threads(1)-2" daemon [_thread_in_native, id=138712064] 0x082ffc00 JavaThread "GC Daemon" daemon [_thread_blocked, id=138328064] 0x082ffa00 JavaThread "RMI Reaper" [_thread_blocked, id=138275840] 0x082ff000 JavaThread "Timer-1" daemon [_thread_blocked, id=138273792] 0x08610e00 JavaThread "RMI TCP Accept-1098" daemon [_thread_in_native, id=138272768] 0x082ff200 JavaThread "JBoss System Threads(1)-1" daemon [_thread_in_native, id=135683072] 0x08610800 JavaThread "ScannerThread" daemon [_thread_blocked, id=135681024] 0x08610200 JavaThread "Timer-0" daemon [_thread_blocked, id=140600320] 0x0807fa00 JavaThread "DestroyJavaVM" [_thread_blocked, id=134565888] 0x0819ac00 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=135996416] 0x0819aa00 JavaThread "CompilerThread1" daemon [_thread_blocked, id=135989248] 0x0819a800 JavaThread "CompilerThread0" daemon [_thread_blocked, id=135982080] 0x0819a600 JavaThread "AdapterThread" daemon [_thread_blocked, id=135979008] 0x0819a400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=135951360] 0x0819a200 JavaThread "Finalizer" daemon [_thread_blocked, id=135907328] 0x0819a000 JavaThread "Reference Handler" daemon [_thread_blocked, id=135905280] Other Threads: 0x0817b400 VMThread [id=135519232] 0x08080900 WatcherThread [id=136003584] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap PSYoungGen total 95360K, used 26090K [0xa9420000, 0xafda0000, 0xb05e0000) eden space 94592K, 27% used [0xa9420000,0xaad9a9e0,0xaf080000) from space 768K, 0% used [0xaf080000,0xaf080000,0xaf140000) to space 6720K, 0% used [0xaf710000,0xaf710000,0xafda0000) PSOldGen total 466048K, used 276661K [0x705e0000, 0x8cd00000, 0xa9420000) object space 466048K, 59% used [0x705e0000,0x8140d440,0x8cd00000) PSPermGen total 72576K, used 72400K [0x6a5e0000, 0x6ecc0000, 0x705e0000) object space 72576K, 99% used [0x6a5e0000,0x6ec94218,0x6ecc0000) Dynamic libraries: 0x08048000 /usr/local/diablo-jdk1.5.0/bin/java 0x63d4a000 /lib/libz.so.3 0x63d5a000 /usr/lib/libc_r.so.6 0x63d7c000 /lib/libc.so.6 0x63e66000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/server/libjvm.so 0x645a6000 /lib/libm.so.4 0x645c0000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/native_threads/libhpi.so 0x645d1000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libverify.so 0x645de000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libjava.so 0x645fd000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libzip.so 0xb18b9000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnet.so 0xb18ca000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libmanagement.so 0xb2c8d000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnio.so 0xb3ccd000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libawt.so 0xb3d69000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libmlib_image.so 0xb3e27000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/headless/libmawt.so 0xb374c000 /usr/local/blobber/main/product/deploy/blobber.ear/native/jug/libfreebsd_x86_EtherAddr.so 0xb609c000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libfontmanager.so 0xb6126000 /usr/lib/libstdc++.so.5 0xb61fc000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libdcpr.so 0xb6228000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libcmm.so 0xb62a4000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libjpeg.so 0x63d16000 /libexec/ld-elf.so.1 VM Arguments: jvm_args: -Djava.awt.headless=true -Xms512m -Xmx1024m -XX:MaxPermSize=96m java_command: org.jboss.Main -c blobber Launcher Type: SUN_STANDARD Environment Variables: PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin LD_LIBRARY_PATH=/usr/local/diablo-jdk1.5.0/jre/lib/i386/server:/usr/local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/jre/../lib/i386 SHELL=/bin/csh HOSTTYPE=FreeBSD OSTYPE=FreeBSD MACHTYPE=i386 Signal Handlers: SIGSEGV: [libjvm.so+0x678090], sa_mask[0]=0xffffffff, sa_flags=0x00000002 SIGBUS: [libjvm.so+0x678090], sa_mask[0]=0xffffffff, sa_flags=0x00000002 SIGFPE: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, sa_flags=0x00000042 SIGPIPE: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, sa_flags=0x00000042 SIGILL: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, sa_flags=0x00000042 SIGUSR1: [libjvm.so+0x59bd30], sa_mask[0]=0x00000000, sa_flags=0x00000040 SIGUSR2: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, sa_flags=0x00000042 SIGHUP: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, sa_flags=0x00000002 SIGINT: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, sa_flags=0x00000002 SIGQUIT: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, sa_flags=0x00000002 SIGTERM: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, sa_flags=0x00000002 --------------- S Y S T E M --------------- OS:FreeBSD uname:6.1-RELEASE-p10 #0: Mon Oct 2 01:16:26 CEST 2006 root@machine:/usr/obj/usr/src/sys/SMP i386 rlimit: STACK 65536k, CORE infinity, NOFILE 11095 CPU:total 2 family 15, cmov, cx8, fxsr, mmx Memory: 4k page, physical 3885400k vm_info: Java HotSpot(TM) Server VM (diablo-1.5.0_07-b01) for freebsd-x86, built on Sep 24 2006 16:09:01 by root with gcc 3.4.4 [FreeBSD] 20050518 From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 16:52:23 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F0F8A16A402 for ; Mon, 26 Feb 2007 16:52:23 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from mail1.intricatesoftware.com (static-64-115-215-92.isp.broadviewnet.net [64.115.215.92]) by mx1.freebsd.org (Postfix) with ESMTP id 98C2713C48E for ; Mon, 26 Feb 2007 16:52:23 +0000 (UTC) (envelope-from kurt@intricatesoftware.com) Received: from seraph.intricatesoftware.com (relay@localhost.intricatesoftware.com [IPv6:::1]) by mail1.intricatesoftware.com (8.13.8/8.13.4) with ESMTP id l1QGfkLd008050; Mon, 26 Feb 2007 11:41:48 -0500 (EST) Received: from localhost.intricatesoftware.com (truk@localhost.intricatesoftware.com [127.0.0.1]) by seraph.intricatesoftware.com (8.14.0/8.14.0) with ESMTP id l1QGfhDo018514; Mon, 26 Feb 2007 11:41:44 -0500 (EST) From: Kurt Miller To: freebsd-java@freebsd.org Date: Mon, 26 Feb 2007 11:41:41 -0500 User-Agent: KMail/1.9.5 References: <200702252138.46660.lists@intricatesoftware.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200702261141.42579.kurt@intricatesoftware.com> X-SMTP-Vilter-Version: 1.3.4 X-SMTP-Vilter-Virus-Backend: clamd X-SMTP-Vilter-Status: clean X-SMTP-Vilter-clamd-Virus-Status: clean X-Spamd-Symbols: ALL_TRUSTED,SPF_HELO_PASS X-SMTP-Vilter-Spam-Backend: spamd X-Spam-Score: -1.4 X-Spam-Threshold: 5.0 X-Spam-Probability: -0.3 X-Its-A-Nuisance: This is spam X-SMTP-Vilter-Unwanted-Backend: attachment X-SMTP-Vilter-attachment-Unwanted-Status: clean Cc: "Arne H. Juul" Subject: Re: patch: fix and re-enable curthread hash lookup X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 16:52:24 -0000 On Monday 26 February 2007 1:12 am, Arne H. Juul wrote: > On Sun, 25 Feb 2007, Kurt Miller wrote: > > On Thursday 22 February 2007 6:10 pm, Arne H. Juul wrote: > >> This patch is still experimental, so if people can take a look at it and > >> tell me about any problems they can spot that would be much appreciated. > > > > Hi, > > > > I tried to apply the diff but all parts were rejected. > > Can you send this again in unified format? I don't mind > > applying it manually but I only grock unified diffs. :-) > > actually I made unified diff first, and found that the important > parts were too unreadable there, that's why I made a context diff... > > it *should* apply cleanly to 1.5.0 SCSL sources + BSD patchkit 4, > here it is again in unified format: Ahh I see what's going on. Your MUA is converting tabs to spaces (or perhaps you copied and pasted the diffs in and that converted tabs to spaces). Even applying the diff with -l I had rejects. I've applied the rejects manually but if you make the diff available on your web site it will allow others to test it easily. -Kurt From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 17:30:06 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3DE6F16A400 for ; Mon, 26 Feb 2007 17:30:06 +0000 (UTC) (envelope-from chad.brubaker@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.freebsd.org (Postfix) with ESMTP id B47EC13C461 for ; Mon, 26 Feb 2007 17:30:05 +0000 (UTC) (envelope-from chad.brubaker@gmail.com) Received: by py-out-1112.google.com with SMTP id f47so766565pye for ; Mon, 26 Feb 2007 09:30:05 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=IyozhFr+s4AxLHl4ltDFw2qpGGZxC5AFTE7WWdVUWjAOw2/yL0lT63latuIN+IDyZYx5zhF+3VoaikbD8Jm1KkQ+ClXJOKT/BpLkYadWLZMoi0eKW4WK4k7DDfO5W0aSlC6giPshiWS4wzD97ZT9gAo7Kl9gOmn4OKZFEOYoPdM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:from:subject:date:to:x-mailer; b=ixs1/BSApgFwPcaHPkw6495hEIeOY5oBBLFyzixnKdQ6HzuNHqZZkjjMkku4wGZ9kbM1+EjD8gWjE1gzA6DxO8Jy2xrvtoBaMIrf4mDgEBMfckYIkZDqYsbXUYv/A2b0dWB6lZUU7kc+NeRRT+yCz59RR2cWXbbF0TgT/xdMd0c= Received: by 10.35.60.15 with SMTP id n15mr12454182pyk.1172509504164; Mon, 26 Feb 2007 09:05:04 -0800 (PST) Received: from ?192.168.1.122? ( [68.122.77.202]) by mx.google.com with ESMTP id 38sm6029189nzf.2007.02.26.09.04.59; Mon, 26 Feb 2007 09:05:01 -0800 (PST) In-Reply-To: <45E2C6D2.9080603@gmail.com> References: <45E2C6D2.9080603@gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Message-Id: <67CC5792-0BD2-48C4-9340-7170903AA62C@gmail.com> From: Chad Brubaker Date: Mon, 26 Feb 2007 09:05:01 -0800 To: Jurij Kovacic X-Mailer: Apple Mail (2.752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-java@FreeBSD.org Subject: Re: Java VM on diablo-jdk-1.5.0.07.01 crashing X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 17:30:06 -0000 I had a similar situation that baffled me for some time - it ended up that our application was simply too resource heavy. Changing the heap size that the VM uses fixed everything. Add this to your env: JAVA_OPTS "-Xms512M -Xmx1024M" or a variant of those sizes that makes sense for your machine. Chad Brubaker E. Mochila, Inc. (866) 340-5652 www.emochila.com On Feb 26, 2007, at 3:38 AM, Jurij Kovacic wrote: > Hello! > > After our in-house application ("blobber") was upgradeded, we've > been having problems with Java VM crashing every couple of days or so. > > If anyone has a suggestion or a an idea as to why this is happening > it will be deeply appreciated. > > Thank you, > Jurij Kovacic > > > # > # An unexpected error has been detected by HotSpot Virtual Machine: > # > # SIGSEGV (0xb) at pc=0x644b8ac7, pid=65793, tid=0x8bfe800 > # > # Java VM: Java HotSpot(TM) Server VM (diablo-1.5.0_07-b01 mixed mode) > # Problematic frame: > # V [libjvm.so+0x652ac7] > # > > --------------- T H R E A D --------------- > > Current thread (0x08fe1400): JavaThread "ObservationManager" > daemon [_thread_in_vm, id=146794496] > > siginfo:si_signo=11, si_errno=0, si_code=12, si_addr=0x00000008 > > Registers: > EAX=0xaad9a1e0, EBX=0x64585088, ECX=0x00000000, EDX=0x6dedcd48 > ESP=0xbe5b181c, EBP=0xbe5b1840, ESI=0x00000000, EDI=0x00000000 > EIP=0x644b8ac7, EFLAGS=0x00010616 > > Top of Stack: (sp=0xbe5b181c) > 0xbe5b181c: 64585088 00000000 08fe1400 be5b1858 > 0xbe5b182c: 6446ad8a 6a5e0438 64585088 00000000 > 0xbe5b183c: aad9a1e0 be5b18a0 64280ba8 6a5e0438 > 0xbe5b184c: 6dedcd48 00000000 aad9a1e0 00000000 > 0xbe5b185c: 00000012 08fe1400 be5b18c4 08fe1400 > 0xbe5b186c: 08fe1400 6a5e0438 00000010 08fe1400 > 0xbe5b187c: 6755f1a0 63d72694 be5b1894 63d64bed > 0xbe5b188c: be5b18e8 6755f268 be5b18e8 6755f268 > > Instructions: (pc=0x644b8ac7) > 0x644b8ab7: 08 8b 45 14 89 75 f0 8b 7d 18 8b 48 04 8b 75 10 > 0x644b8ac7: 8b 41 08 8d 51 08 52 ff 90 a4 00 00 00 83 c4 10 > > Stack: [0xbe572000,0xbe5b2000), sp=0xbe5b181c, free space=254k > Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, > C=native code) > V [libjvm.so+0x652ac7] > V [libjvm.so+0x41aba8] > J java.lang.System.arraycopy(Ljava/lang/Object;ILjava/lang/ > Object;II)V > > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > J java.lang.System.arraycopy(Ljava/lang/Object;ILjava/lang/ > Object;II)V > J java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/ > StringBuffer; > v ~I2CAdapter > j org.apache.jackrabbit.core.observation.ObservationDispatcher.run > ()V+42 > j java.lang.Thread.run()V+11 > v ~StubRoutines::call_stub > > --------------- P R O C E S S --------------- > > Java Threads: ( => current thread ) > 0x0925f600 JavaThread "IndexMerger" daemon [_thread_blocked, > id=152267776] > 0x0903c800 JavaThread "ObservationManager" daemon > [_thread_blocked, id=151563264] > 0x0910be00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=151513088] > 0x091d3600 JavaThread "IndexMerger" daemon [_thread_blocked, > id=154340352] > 0x083e0600 JavaThread "ObservationManager" daemon > [_thread_blocked, id=154337280] > 0x092a8e00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=152392704] > 0x092a8a00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=154466304] > 0x08f43e00 JavaThread "ObservationManager" daemon > [_thread_blocked, id=153635840] > 0x08e1a000 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=146170880] > 0x0903ca00 JavaThread "Java2D Disposer" daemon [_thread_blocked, > id=154139648] > 0x09413400 JavaThread "IndexMerger" daemon [_thread_blocked, > id=152751104] > 0x08f43200 JavaThread "ObservationManager" daemon > [_thread_blocked, id=151700480] > 0x0939da00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=155051008] > 0x090fae00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=153954304] > 0x090fa600 JavaThread "ObservationManager" daemon > [_thread_blocked, id=153634816] > 0x0923c000 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=152913920] > 0x0925fe00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=153185280] > 0x092a8800 JavaThread "ObservationManager" daemon > [_thread_blocked, id=156919808] > 0x094d3400 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=156918784] > 0x09194800 JavaThread "IndexMerger" daemon [_thread_blocked, > id=153560064] > 0x090a1800 JavaThread "ObservationManager" daemon > [_thread_blocked, id=151574528] > 0x092a8400 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=153184256] > 0x091b8c00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=151804928] > 0x090f9a00 JavaThread "ObservationManager" daemon > [_thread_blocked, id=153480192] > 0x08e1ae00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=153387008] > 0x09113e00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=153835520] > 0x09098000 JavaThread "ObservationManager" daemon > [_thread_blocked, id=151702528] > 0x083b5a00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=151110656] > 0x091c5800 JavaThread "Transient File Reaper" daemon > [_thread_blocked, id=151802880] > 0x0903c200 JavaThread "IndexMerger" daemon [_thread_blocked, > id=149650432] > 0x09168800 JavaThread "ObservationManager" daemon > [_thread_blocked, id=149649408] > 0x08dee200 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=151785472] > 0x0910b400 JavaThread "TP-Processor16" daemon [_thread_in_native, > id=151726080] > 0x0910b200 JavaThread "TP-Processor15" daemon [_thread_in_native, > id=152197120] > 0x0910b000 JavaThread "TP-Processor14" daemon [_thread_blocked, > id=150489088] > 0x0909ae00 JavaThread "TP-Processor13" daemon [_thread_blocked, > id=150480896] > 0x09098a00 JavaThread "MultiThreadedHttpConnectionManager cleanup" > daemon [_thread_blocked, id=152835072] > 0x08e1a800 JavaThread "IndexMerger" daemon [_thread_blocked, > id=149311488] > 0x08e1a600 JavaThread "ObservationManager" daemon > [_thread_blocked, id=147761152] > 0x08cec800 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=147760128] > 0x08fe1600 JavaThread "IndexMerger" daemon [_thread_blocked, > id=146795520] > =>0x08fe1400 JavaThread "ObservationManager" daemon [_thread_in_vm, > id=146794496] > 0x08fe1000 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=150795264] > 0x08eb0e00 JavaThread "SecurityCacheInvalidationTimer" daemon > [_thread_blocked, id=147703808] > 0x083b5400 JavaThread "TP-Processor12" daemon [_thread_blocked, > id=138117120] > 0x083b5200 JavaThread "TP-Processor11" daemon [_thread_in_native, > id=138109952] > 0x083b5000 JavaThread "TP-Processor10" daemon [_thread_in_native, > id=136649728] > 0x089aee00 JavaThread "TP-Processor9" daemon [_thread_in_native, > id=136648704] > 0x0864f400 JavaThread "TP-Processor8" daemon [_thread_in_native, > id=140840960] > 0x0864f200 JavaThread "TP-Processor7" daemon [_thread_in_native, > id=139094016] > 0x0864f000 JavaThread "TP-Processor6" daemon [_thread_in_native, > id=147794944] > 0x0862e400 JavaThread "TP-Processor5" daemon [_thread_blocked, > id=141462528] > 0x08472c00 JavaThread "SystemStatusLogTimer" daemon > [_thread_blocked, id=136180736] > 0x08472200 JavaThread "Thread-30" [_thread_blocked, id=138237952] > 0x081b8400 JavaThread "http-0.0.0.0-8080-1" daemon > [_thread_blocked, id=151070720] > 0x088d5000 JavaThread "TP-Monitor" daemon [_thread_blocked, > id=143962112] > 0x08f11e00 JavaThread "TP-Processor4" daemon [_thread_in_native, > id=143365120] > 0x08f11c00 JavaThread "TP-Processor3" daemon [_thread_blocked, > id=141654016] > 0x08f25e00 JavaThread "TP-Processor2" daemon [_thread_in_native, > id=141652992] > 0x084d0000 JavaThread "TP-Processor1" daemon [_thread_in_vm, > id=150991872] > 0x083e0c00 JavaThread "http-0.0.0.0-8080" daemon > [_thread_in_native, id=151069696] > 0x0898e000 JavaThread "JBossLifeThread" [_thread_blocked, > id=137145344] > 0x08f11400 JavaThread "QuartzScheduler_Cocoon- > Fri_Feb_23_22:22:41_CET_2007_MisfireHandler" [_thread_blocked, > id=150993920] > 0x08f11200 JavaThread "QuartzScheduler_Cocoon- > Fri_Feb_23_22:22:41_CET_2007_ClusterManager" [_thread_blocked, > id=150992896] > 0x08f11000 JavaThread > "Cocoon_QuartzSchedulerThread" [_thread_blocked, id=150013952] > 0x084d0e00 JavaThread "Store cocoon-ehcache-1 Spool Thread" daemon > [_thread_blocked, id=149989376] > 0x084d0800 JavaThread "Thread-20" daemon [_thread_blocked, > id=150402048] > 0x084d0600 JavaThread "Thread-19" [_thread_blocked, id=137227264] > 0x08f25c00 JavaThread "SystemStatusDBLogTimer" [_thread_blocked, > id=137225216] > 0x08f25a00 JavaThread "LogPersistTimer" [_thread_blocked, > id=137224192] > 0x08f25800 JavaThread "Thread-16" daemon [_thread_blocked, > id=150326272] > 0x08df1800 JavaThread "Smack Listener Processor" daemon > [_thread_blocked, id=138496000] > 0x08df1600 JavaThread "Smack Packet Reader" daemon > [_thread_in_native, id=138494976] > 0x08df1400 JavaThread "Smack Packet Writer" daemon > [_thread_blocked, id=138493952] > 0x08df1200 JavaThread "blobber-SMS-reconfigurator" daemon > [_thread_blocked, id=148224000] > 0x087e3600 JavaThread "Timer-5" [_thread_blocked, id=142763008] > 0x087e3400 JavaThread "IdleRemover" daemon [_thread_blocked, > id=142736384] > 0x088eba00 JavaThread "RMI TCP Accept-8099" daemon > [_thread_in_native, id=146544640] > 0x088eb400 JavaThread "RMI TCP Accept-0" daemon > [_thread_in_native, id=139487232] > 0x088eb000 JavaThread "WorkspaceJanitor" daemon [_thread_blocked, > id=138254336] > 0x08247e00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=138253312] > 0x088eb200 JavaThread "Timer-4" daemon [_thread_blocked, > id=138190848] > 0x0866ea00 JavaThread "IndexMerger" daemon [_thread_blocked, > id=138185728] > 0x08247c00 JavaThread "ObservationManager" daemon > [_thread_blocked, id=138184704] > 0x0866ec00 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=144566272] > 0x0866e600 JavaThread "derby.rawStoreDaemon" daemon > [_thread_blocked, id=141002752] > 0x0866e400 JavaThread "Timer-3" daemon [_thread_blocked, > id=141001728] > 0x08249e00 JavaThread "derby.antiGC" daemon [_thread_blocked, > id=141000704] > 0x088d6000 JavaThread "UILServerILService Accept > Thread" [_thread_in_native, id=138338304] > 0x08219e00 JavaThread "TimeoutFactory" daemon [_thread_blocked, > id=138015744] > 0x08219a00 JavaThread "JCA PoolFiller" [_thread_blocked, > id=144019456] > 0x08a44600 JavaThread "Timer-2" daemon [_thread_blocked, > id=145391616] > 0x08219600 JavaThread "HSQLDB Timer @9549af" daemon > [_thread_blocked, id=143765504] > 0x08a44200 JavaThread "WorkManager(2)-1" daemon [_thread_blocked, > id=139578368] > 0x0895b800 JavaThread "Thread-3" daemon [_thread_blocked, > id=137796608] > 0x0895b600 JavaThread "JBossMQ Cache Reference Softner" daemon > [_thread_blocked, id=137287680] > 0x08644000 JavaThread "ContainerBackgroundProcessor[StandardEngine > [jboss.web]]" daemon [_thread_blocked, id=139515904] > 0x084ea200 JavaThread > "PooledInvokerAcceptor#0-4445" [_thread_in_native, id=139388928] > 0x084ea000 JavaThread "RMI TCP Accept-4444" daemon > [_thread_in_native, id=139367424] > 0x082ffe00 JavaThread "JBoss System Threads(1)-2" daemon > [_thread_in_native, id=138712064] > 0x082ffc00 JavaThread "GC Daemon" daemon [_thread_blocked, > id=138328064] > 0x082ffa00 JavaThread "RMI Reaper" [_thread_blocked, id=138275840] > 0x082ff000 JavaThread "Timer-1" daemon [_thread_blocked, > id=138273792] > 0x08610e00 JavaThread "RMI TCP Accept-1098" daemon > [_thread_in_native, id=138272768] > 0x082ff200 JavaThread "JBoss System Threads(1)-1" daemon > [_thread_in_native, id=135683072] > 0x08610800 JavaThread "ScannerThread" daemon [_thread_blocked, > id=135681024] > 0x08610200 JavaThread "Timer-0" daemon [_thread_blocked, > id=140600320] > 0x0807fa00 JavaThread "DestroyJavaVM" [_thread_blocked, id=134565888] > 0x0819ac00 JavaThread "Low Memory Detector" daemon > [_thread_blocked, id=135996416] > 0x0819aa00 JavaThread "CompilerThread1" daemon [_thread_blocked, > id=135989248] > 0x0819a800 JavaThread "CompilerThread0" daemon [_thread_blocked, > id=135982080] > 0x0819a600 JavaThread "AdapterThread" daemon [_thread_blocked, > id=135979008] > 0x0819a400 JavaThread "Signal Dispatcher" daemon [_thread_blocked, > id=135951360] > 0x0819a200 JavaThread "Finalizer" daemon [_thread_blocked, > id=135907328] > 0x0819a000 JavaThread "Reference Handler" daemon [_thread_blocked, > id=135905280] > > Other Threads: > 0x0817b400 VMThread [id=135519232] > 0x08080900 WatcherThread [id=136003584] > > VM state:not at safepoint (normal execution) > > VM Mutex/Monitor currently owned by a thread: None > > Heap > PSYoungGen total 95360K, used 26090K [0xa9420000, 0xafda0000, > 0xb05e0000) > eden space 94592K, 27% used [0xa9420000,0xaad9a9e0,0xaf080000) > from space 768K, 0% used [0xaf080000,0xaf080000,0xaf140000) > to space 6720K, 0% used [0xaf710000,0xaf710000,0xafda0000) > PSOldGen total 466048K, used 276661K [0x705e0000, > 0x8cd00000, 0xa9420000) > object space 466048K, 59% used [0x705e0000,0x8140d440,0x8cd00000) > PSPermGen total 72576K, used 72400K [0x6a5e0000, 0x6ecc0000, > 0x705e0000) > object space 72576K, 99% used [0x6a5e0000,0x6ec94218,0x6ecc0000) > > Dynamic libraries: > 0x08048000 /usr/local/diablo-jdk1.5.0/bin/java > 0x63d4a000 /lib/libz.so.3 > 0x63d5a000 /usr/lib/libc_r.so.6 > 0x63d7c000 /lib/libc.so.6 > 0x63e66000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/server/ > libjvm.so > 0x645a6000 /lib/libm.so.4 > 0x645c0000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/ > native_threads/libhpi.so > 0x645d1000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libverify.so > 0x645de000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libjava.so > 0x645fd000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libzip.so > 0xb18b9000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnet.so > 0xb18ca000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/ > libmanagement.so > 0xb2c8d000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libnio.so > 0xb3ccd000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libawt.so > 0xb3d69000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/ > libmlib_image.so > 0xb3e27000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/headless/ > libmawt.so > 0xb374c000 /usr/local/blobber/main/product/deploy/blobber.ear/ > native/jug/libfreebsd_x86_EtherAddr.so > 0xb609c000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/ > libfontmanager.so > 0xb6126000 /usr/lib/libstdc++.so.5 > 0xb61fc000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libdcpr.so > 0xb6228000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libcmm.so > 0xb62a4000 /usr/local/diablo-jdk1.5.0/jre/lib/i386/libjpeg.so > 0x63d16000 /libexec/ld-elf.so.1 > > VM Arguments: > jvm_args: -Djava.awt.headless=true -Xms512m -Xmx1024m - > XX:MaxPermSize=96m > java_command: org.jboss.Main -c blobber > Launcher Type: SUN_STANDARD > > Environment Variables: > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/ > local/bin:/usr/X11R6/bin:/root/bin > LD_LIBRARY_PATH=/usr/local/diablo-jdk1.5.0/jre/lib/i386/server:/usr/ > local/diablo-jdk1.5.0/jre/lib/i386:/usr/local/diablo-jdk1.5.0/ > jre/../lib/i386 > SHELL=/bin/csh > HOSTTYPE=FreeBSD > OSTYPE=FreeBSD > MACHTYPE=i386 > > Signal Handlers: > SIGSEGV: [libjvm.so+0x678090], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > SIGBUS: [libjvm.so+0x678090], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > SIGFPE: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, > sa_flags=0x00000042 > SIGPIPE: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, > sa_flags=0x00000042 > SIGILL: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, > sa_flags=0x00000042 > SIGUSR1: [libjvm.so+0x59bd30], sa_mask[0]=0x00000000, > sa_flags=0x00000040 > SIGUSR2: [libjvm.so+0x59bc60], sa_mask[0]=0xffffffff, > sa_flags=0x00000042 > SIGHUP: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > SIGINT: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > SIGQUIT: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > SIGTERM: [libjvm.so+0x59a4c0], sa_mask[0]=0xffffffff, > sa_flags=0x00000002 > > > --------------- S Y S T E M --------------- > > OS:FreeBSD > uname:6.1-RELEASE-p10 #0: Mon Oct 2 01:16:26 CEST 2006 > root@machine:/usr/obj/usr/src/sys/SMP i386 > rlimit: STACK 65536k, CORE infinity, NOFILE 11095 > CPU:total 2 family 15, cmov, cx8, fxsr, mmx > > Memory: 4k page, physical 3885400k > > vm_info: Java HotSpot(TM) Server VM (diablo-1.5.0_07-b01) for > freebsd-x86, built on Sep 24 2006 16:09:01 by root with gcc 3.4.4 > [FreeBSD] 20050518 > > > > > _______________________________________________ > freebsd-java@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-java > To unsubscribe, send any mail to "freebsd-java- > unsubscribe@freebsd.org" From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 19:11:59 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 271D416A408 for ; Mon, 26 Feb 2007 19:11:59 +0000 (UTC) (envelope-from hkawakat@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.229]) by mx1.freebsd.org (Postfix) with ESMTP id CACB013C4B4 for ; Mon, 26 Feb 2007 19:11:58 +0000 (UTC) (envelope-from hkawakat@gmail.com) Received: by nz-out-0506.google.com with SMTP id r28so465826nza for ; Mon, 26 Feb 2007 11:11:58 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=haChhUKguo7MJ5UQSaTZA68F8tlgcOa7hJGYE23OPDDoARoiUmJuUhqqPBAqiyvAz7vq/gImcXSFWGghM4oOnm2Q5tN0JrmEz8jbi1l2r7bIdcc0pLygPTOeZYqPXTBOggUM6KDV4ClGSKR/ST8vjRpq3veaXZYdZ8IAq24yJLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QFn0oClyPPH+5S+qsPTi506EjWJx/MEZq7pg7TU/VWBYdI5VsdbBpz1gNf9HjDSQUYftTbJOSA0M4BBAug8EanUAKh5YzgDLNN65Ip+yY+/oCxZNMFJXP/IckZicSwRFa+lu07GJmQFuYSal6yqHsgKvJ8YEA5AQR/DHZ/tILj4= Received: by 10.114.60.19 with SMTP id i19mr788200waa.1172515533274; Mon, 26 Feb 2007 10:45:33 -0800 (PST) Received: by 10.115.47.15 with HTTP; Mon, 26 Feb 2007 10:45:33 -0800 (PST) Message-ID: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> Date: Mon, 26 Feb 2007 18:45:33 +0000 From: "Hiroyuki Kawakatsu" To: freebsd-java@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: cannot update jdk15 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 19:11:59 -0000 Hi, When updating jdk15 (via portmanager -u -f -l) I am getting /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/X11R6/lib/libXm.a: could not read symbols: Bad value gmake[4]: *** [/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so] Error 1 This is the same error as reported in http://lists.freebsd.org/pipermail/freebsd-java/2005-June/003970.html except that this is on FreeBSD 6.2-RELEASE. I have successfully installed jdk15 with patches-3 but the update with patches-4 is giving the error above. ls -FG /usr/X11R6/lib/libXm* gives /usr/X11R6/lib/libXm.a /usr/X11R6/lib/libXmu.a /usr/X11R6/lib/libXmuu.so@ /usr/X11R6/lib/libXm.la* /usr/X11R6/lib/libXmu.so@ /usr/X11R6/lib/libXmuu.so.1* /usr/X11R6/lib/libXm.so@ /usr/X11R6/lib/libXmu.so.6* /usr/X11R6/lib/libXm.so.3* /usr/X11R6/lib/libXmuu.a The "recompile with -fPIC" message appears to be a symptom of some problem with my static libraries rather than really having to do so. Any suggestions of where to look for problems? What additional information would you need to diagnose the problem? If I do need to recompile with -fPIC, where am I supposed to put/add this flag? Thanks in advance, h. --- Rebuilding /usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so because of /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_AWTEvent.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Button.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Canvas.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Checkbox.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Component.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Cursor.o ... /usr/bin/gcc -fno-strict-aliasing -fPIC -W -Wall -Wno-unused -Wno-parentheses -pipe -fno-omit-frame-pointer -DMLIB_NO_LIBSUNMATH -DMOTIF_VERSION=2 -DXMSTRINGDEFINES=1 -DMOTIF_VERSION=2 -Damd64 -DARCH='"amd64"' -DRELEASE='"1.5.0-p4"' -DFULL_VERSION='"1.5.0-p4-root_13_feb_2007_07_14"' -D_GNU_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_ALLBSD_SOURCE -D_LP64=1 -I. -I/usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/CC [snipped] d64/tmp/sun/sun.awt/motif21/obj64/OGLMaskBlit.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/OGLMaskFill.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/OGLRenderer.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/OGLSurfaceData.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/OGLTextRenderer_md.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/GLXContext.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/GLXGraphicsConfig.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/GLXSurfaceData.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/AccelGlyphCache.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/CUPSfuncs.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_motif21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/awt_Choice21.o /usr/ports/java/jdk15/work/control/build/bsd-amd64/tmp/sun/sun.awt/motif21/obj64/Xinerama.o | tsort -q` /usr/X11R6/lib/libXm.a -lXp -lXtst -lXext -lXt -lX11 -lmlib_image -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -lawt -lm -ljava -L/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/server -ljvm -pthread /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC /usr/X11R6/lib/libXm.a: could not read symbols: Bad value gmake[4]: *** [/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so] Error 1 gmake[4]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[3]: *** [optimized] Error 2 gmake[3]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun/motif21' gmake[2]: *** [all] Error 1 gmake[2]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make/sun' gmake[1]: *** [all] Error 1 gmake[1]: Leaving directory `/usr/ports/java/jdk15/work/j2se/make' gmake: *** [j2se-build] Error 2 *** Error code 2 -- ---------------------------------- Hiroyuki Kawakatsu Business School Dublin City University Dublin 9, Ireland Tel +353 (0)1 700 7496 From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 21:32:15 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9CC9E16A543 for ; Mon, 26 Feb 2007 21:32:15 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 9B79813C4B5 for ; Mon, 26 Feb 2007 21:32:12 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLnS7-0006wl-Hu; Mon, 26 Feb 2007 22:32:11 +0100 Date: Mon, 26 Feb 2007 22:32:11 +0100 (CET) From: "Arne H. Juul" To: Kurt Miller In-Reply-To: <200702261141.42579.kurt@intricatesoftware.com> Message-ID: References: <200702252138.46660.lists@intricatesoftware.com> <200702261141.42579.kurt@intricatesoftware.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-java@freebsd.org Subject: Re: patch: fix and re-enable curthread hash lookup X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 21:32:15 -0000 On Mon, 26 Feb 2007, Kurt Miller wrote: >>> On Thursday 22 February 2007 6:10 pm, Arne H. Juul wrote: >>>> This patch is still experimental, so if people can take a look at it and >>>> tell me about any problems they can spot that would be much appreciated. > > Ahh I see what's going on. Your MUA is converting tabs to > spaces (or perhaps you copied and pasted the diffs in and > that converted tabs to spaces). Even applying the diff > with -l I had rejects. I've applied the rejects manually > but if you make the diff available on your web site it > will allow others to test it easily. ouch, my bad. I've put it on http://www.pvv.org/~arnej/java/patch.thread.txt now, and also my earlier patch for auto datasegment limit: http://www.pvv.org/~arnej/java/patch.auto-ulimit.txt in case that has the same problem. - Arne H. J. From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 22:27:29 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8C26216A401 for ; Mon, 26 Feb 2007 22:27:29 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from decibel.pvv.ntnu.no (decibel.pvv.ntnu.no [129.241.210.179]) by mx1.freebsd.org (Postfix) with ESMTP id 194FD13C4E7 for ; Mon, 26 Feb 2007 22:27:28 +0000 (UTC) (envelope-from arnej@pvv.ntnu.no) Received: from arnej by decibel.pvv.ntnu.no with local (Exim 4.60) (envelope-from ) id 1HLoJb-0000g5-9E; Mon, 26 Feb 2007 23:27:27 +0100 Date: Mon, 26 Feb 2007 23:27:27 +0100 (CET) From: "Arne H. Juul" To: Hiroyuki Kawakatsu In-Reply-To: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> Message-ID: References: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: kris@freebsd.org, freebsd@vfemail.net, freebsd-java@freebsd.org Subject: Re: cannot update jdk15 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 22:27:29 -0000 On Mon, 26 Feb 2007, Hiroyuki Kawakatsu wrote: > When updating jdk15 (via portmanager -u -f -l) I am getting > > /usr/bin/ld: /usr/X11R6/lib/libXm.a(CascadeB.o): relocation > R_X86_64_32 can not be used when making a shared object; recompile > with -fPIC > /usr/X11R6/lib/libXm.a: could not read symbols: Bad value > gmake[4]: *** > [/usr/ports/java/jdk15/work/control/build/bsd-amd64/lib/amd64/motif21/libmawt.so] > Error 1 > > This is the same error as reported in > http://lists.freebsd.org/pipermail/freebsd-java/2005-June/003970.html > except that this is on FreeBSD 6.2-RELEASE. Ok, I found it now; I was confused because I have the same version number of open-motif as was reported earlier (2.2.3_2) but my version works. It's all because of this change to x11-toolkits/open-motif/Makefile: revision 1.40 date: 2007/02/01 02:42:04; author: kris; state: Exp; lines: +1 -0 Use libtool port instead of included version to avoid objformat a.out botch note that the PORTREVISION wasn't bumped in this change (but should have been). The old version would compile all object files with -fPIC, also those going into libXm.a; the new libtool change makes libXm.a unusable for linking into .so files, at least on amd64 platforms. > The "recompile with -fPIC" message appears to be a symptom of some > problem with my static libraries rather than really having to do so. It means what it says, the CascadeB.o inside /usr/X11R6/lib/libXm.a needs to be compiled with -fPIC but wasn't. It looks like it was by conscious plan that libXm.a used to be compiled with -fPIC: revision 1.33 date: 2004/12/24 06:34:45; author: phantom; state: Exp; lines: +4 -0 While building on amd64 add -fPIC to CFLAGS so something may need to be done to restore that behaviour with new libtool. Or alternately, java must stop using the static motif library and link with the shared library instead. A quick fix for those currently stuck should be: cd /usr/ports/x11-toolkits/open-motif cvs update -D 2007-01-30 rm -rf work make make deinstall make reinstall cd /usr/ports/java/jdk15 make (not tested yet, still compiling :-) - Arne H. J. From owner-freebsd-java@FreeBSD.ORG Mon Feb 26 23:19:49 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E25F816A402; Mon, 26 Feb 2007 23:19:49 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id D110F13C474; Mon, 26 Feb 2007 23:19:49 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 05A381A3C1A; Mon, 26 Feb 2007 15:19:49 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 4562A51873; Mon, 26 Feb 2007 18:19:46 -0500 (EST) Date: Mon, 26 Feb 2007 18:19:45 -0500 From: Kris Kennaway To: "Arne H. Juul" Message-ID: <20070226231945.GA17707@xor.obsecurity.org> References: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: kris@freebsd.org, Hiroyuki Kawakatsu , freebsd@vfemail.net, freebsd-java@freebsd.org Subject: Re: cannot update jdk15 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 23:19:50 -0000 On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul wrote: > revision 1.33 > date: 2004/12/24 06:34:45; author: phantom; state: Exp; lines: +4 -0 > While building on amd64 add -fPIC to CFLAGS > > so something may need to be done to restore that behaviour with new > libtool. Or alternately, java must stop using the static motif library > and link with the shared library instead. The latter (or make a libXm_pic.a); the earlier change was bogus since .a libraries are not supposed to be PIC. Kris From owner-freebsd-java@FreeBSD.ORG Tue Feb 27 23:05:34 2007 Return-Path: X-Original-To: freebsd-java@hub.freebsd.org Delivered-To: freebsd-java@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1297216A405; Tue, 27 Feb 2007 23:05:34 +0000 (UTC) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id DC93C13C4AC; Tue, 27 Feb 2007 23:05:33 +0000 (UTC) (envelope-from hq@FreeBSD.org) Received: from freefall.freebsd.org (hq@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1RN5XnY059751; Tue, 27 Feb 2007 23:05:33 GMT (envelope-from hq@freefall.freebsd.org) Received: (from hq@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1RN5XDR059747; Tue, 27 Feb 2007 23:05:33 GMT (envelope-from hq) Date: Tue, 27 Feb 2007 23:05:33 GMT From: Herve Quiroz Message-Id: <200702272305.l1RN5XDR059747@freefall.freebsd.org> To: ketralnis@ketralnis.com, hq@FreeBSD.org, freebsd-java@FreeBSD.org, hq@FreeBSD.org Cc: Subject: Re: ports/108070: Update devel/apache-ant from 1.6.2 to 1.7.0 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Feb 2007 23:05:34 -0000 Synopsis: Update devel/apache-ant from 1.6.2 to 1.7.0 State-Changed-From-To: feedback->open State-Changed-By: hq State-Changed-When: Tue Feb 27 23:04:38 UTC 2007 State-Changed-Why: Feedback received Responsible-Changed-From-To: freebsd-java->hq Responsible-Changed-By: hq Responsible-Changed-When: Tue Feb 27 23:04:38 UTC 2007 Responsible-Changed-Why: I'll handle this. http://www.freebsd.org/cgi/query-pr.cgi?pr=108070 From owner-freebsd-java@FreeBSD.ORG Wed Feb 28 04:19:32 2007 Return-Path: X-Original-To: freebsd-java@FreeBSD.org Delivered-To: freebsd-java@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 229EC16D5F7 for ; Wed, 28 Feb 2007 04:19:32 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (gerbercreations.com [71.39.140.16]) by mx1.freebsd.org (Postfix) with ESMTP id DDEE213C441 for ; Wed, 28 Feb 2007 04:19:31 +0000 (UTC) (envelope-from glewis@eyesbeyond.com) Received: from misty.eyesbeyond.com (localhost.eyesbeyond.com [127.0.0.1]) by misty.eyesbeyond.com (8.13.1/8.13.3) with ESMTP id l1S4JTVQ061237; Tue, 27 Feb 2007 20:19:30 -0800 (PST) (envelope-from glewis@eyesbeyond.com) Received: (from glewis@localhost) by misty.eyesbeyond.com (8.13.1/8.13.3/Submit) id l1S4JSGc061236; Tue, 27 Feb 2007 20:19:28 -0800 (PST) (envelope-from glewis@eyesbeyond.com) X-Authentication-Warning: misty.eyesbeyond.com: glewis set sender to glewis@eyesbeyond.com using -f Date: Tue, 27 Feb 2007 20:19:27 -0800 From: Greg Lewis To: "Arne H. Juul" Message-ID: <20070228041927.GA61217@misty.eyesbeyond.com> References: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Cc: kris@FreeBSD.org, freebsd-java@FreeBSD.org, Hiroyuki Kawakatsu , freebsd@vfemail.net Subject: Re: cannot update jdk15 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 04:19:32 -0000 On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul wrote: > so something may need to be done to restore that behaviour with new > libtool. Or alternately, java must stop using the static motif library > and link with the shared library instead. The latter would be easy to test. Just set STATIC_MOTIF to false in j2se/make/common/Defs-bsd.gmk. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org From owner-freebsd-java@FreeBSD.ORG Wed Feb 28 10:24:25 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9DCD516A400 for ; Wed, 28 Feb 2007 10:24:25 +0000 (UTC) (envelope-from hkawakat@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.224]) by mx1.freebsd.org (Postfix) with ESMTP id 5B11813C441 for ; Wed, 28 Feb 2007 10:24:25 +0000 (UTC) (envelope-from hkawakat@gmail.com) Received: by wr-out-0506.google.com with SMTP id 71so132025wri for ; Wed, 28 Feb 2007 02:24:24 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Myw7zXXegkSbVEnxWQjqZJ/ShAeUS8puFAlo/yGsRo1q98t3WLciD2PiNtUUwmR10O3TCvop+JQVvUVQCUwnV6gnSbt5Gg9fMjNW7QPCnUTw+OtWp+ySpzYq9C0cOzRexwk7nz9MWMvR1/bJ1+6CjSq2RGkwccfSl70uxDMmf80= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=skwUHSXxL/OUFNwi1HG4E3aNBZ/5bwizFMJiLBlQ14a6KDl287zxee8oy5PsKJJREWfp12wJcEBHTNMLXZUWPAhoXR6g9XzSFWVGl9BrWyz6tOja95yOgSY/GPMu2JhknS8+G1K6WrJAINU3yx/MYXcU1xoHLEruF1iyxBA3PRw= Received: by 10.114.168.1 with SMTP id q1mr630275wae.1172658262630; Wed, 28 Feb 2007 02:24:22 -0800 (PST) Received: by 10.115.47.15 with HTTP; Wed, 28 Feb 2007 02:24:22 -0800 (PST) Message-ID: <307b90470702280224je4c0095nc4d23d2433258cd@mail.gmail.com> Date: Wed, 28 Feb 2007 10:24:22 +0000 From: "Hiroyuki Kawakatsu" To: "Greg Lewis" In-Reply-To: <20070228041927.GA61217@misty.eyesbeyond.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <307b90470702261045j1a812168y702c2dedd7e64bd8@mail.gmail.com> <20070228041927.GA61217@misty.eyesbeyond.com> Cc: kris@freebsd.org, "Arne H. Juul" , freebsd@vfemail.net, freebsd-java@freebsd.org Subject: Re: cannot update jdk15 on amd64 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Feb 2007 10:24:25 -0000 On 2/28/07, Greg Lewis wrote: > On Mon, Feb 26, 2007 at 11:27:27PM +0100, Arne H. Juul wrote: > > so something may need to be done to restore that behaviour with new > > libtool. Or alternately, java must stop using the static motif library > > and link with the shared library instead. > > The latter would be easy to test. Just set STATIC_MOTIF to false in > j2se/make/common/Defs-bsd.gmk. that appears to work (i.e. make didn't complain). many thanks for the tip. h. -- ---------------------------------- Hiroyuki Kawakatsu Business School Dublin City University Dublin 9, Ireland Tel +353 (0)1 700 7496 From owner-freebsd-java@FreeBSD.ORG Sat Mar 3 23:32:13 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 264F816A403 for ; Sat, 3 Mar 2007 23:32:13 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.freebsd.org (Postfix) with ESMTP id 1133A13C4B2 for ; Sat, 3 Mar 2007 23:32:13 +0000 (UTC) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.51) id 1HNdEF-0001nj-RJ for freebsd-java@freebsd.org; Sat, 03 Mar 2007 16:01:27 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-java@freebsd.org From: Chad Leigh -- Shire.Net LLC Date: Sat, 3 Mar 2007 16:01:20 -0700 X-Mailer: Apple Mail (2.752.2) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Subject: building jdk15 in a jail -- __mb_cur_max Undefined Symbol X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2007 23:32:13 -0000 Hi I am trying to build jdk15 inside my jail with PREFIX set to /usr/ public (At one time I successfully got jdk 1.4 to build after much hacking) I have the option for builing inside a jail set. We get to the point where the linux java is installed and it is actually building the jdk # Start of jdk build /libexec/ld-elf.so.1: /usr/local/lib/libiconv.so.3: Undefined symbol "__mb_cur_max" *** Error code 1 Stop in /usr/ports/java/jdk15. # I am not exactly sure what it is doing at this point in order to hack round it. libiconv a fresh install from ports Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net From owner-freebsd-java@FreeBSD.ORG Sat Mar 3 23:38:38 2007 Return-Path: X-Original-To: freebsd-java@freebsd.org Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6514D16A402 for ; Sat, 3 Mar 2007 23:38:38 +0000 (UTC) (envelope-from chad@shire.net) Received: from hobbiton.shire.net (mail.shire.net [166.70.252.250]) by mx1.freebsd.org (Postfix) with ESMTP id 4B69A13C428 for ; Sat, 3 Mar 2007 23:38:38 +0000 (UTC) (envelope-from chad@shire.net) Received: from [67.171.127.191] (helo=[192.168.99.68]) by hobbiton.shire.net with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.51) id 1HNdoD-0003HZ-Ox; Sat, 03 Mar 2007 16:38:37 -0700 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9BDC76ED-A186-40CA-850D-09BF77A395DF@shire.net> Content-Transfer-Encoding: 7bit From: "Chad Leigh -- Shire.Net LLC" Date: Sat, 3 Mar 2007 16:38:36 -0700 To: freebsd-java@freebsd.org, User Questions X-Mailer: Apple Mail (2.752.2) X-SA-Exim-Connect-IP: 67.171.127.191 X-SA-Exim-Mail-From: chad@shire.net X-SA-Exim-Scanned: No (on hobbiton.shire.net); SAEximRunCond expanded to false Cc: "Chad Leigh -- Shire.Net LLC" Subject: Re: building jdk15 in a jail -- __mb_cur_max Undefined Symbol X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2007 23:38:38 -0000 On Mar 3, 2007, at 4:01 PM, Chad Leigh -- Shire.Net LLC wrote: > Hi > > I am trying to build jdk15 inside my jail with PREFIX set to /usr/ > public (At one time I successfully got jdk 1.4 to build after much > hacking) > > I have the option for builing inside a jail set. We get to the > point where the linux java is installed and it is actually building > the jdk > > # Start of jdk build > /libexec/ld-elf.so.1: /usr/local/lib/libiconv.so.3: Undefined > symbol "__mb_cur_max" > *** Error code 1 > > Stop in /usr/ports/java/jdk15. > # > > I am not exactly sure what it is doing at this point in order to > hack round it. libiconv a fresh install from ports > Turns out that the issue is that gmake cannot run. I have not figured out why yet, having removed and reinstalled libiconv and gmake and getting the same error. But it is not java related. I'll redirect this to -questions If anyone has an idea on why gmake would fail as above on a fresh install, 6.2-RELEASE from a day or two ago, I would appreciate it. Please CC me as I am not currently subscribed to -questions, though I am on -java Sorry Chad --- Chad Leigh -- Shire.Net LLC Your Web App and Email hosting provider chad at shire.net