From owner-freebsd-questions@FreeBSD.ORG Thu Dec 13 07:41:59 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4748316A417 for ; Thu, 13 Dec 2007 07:41:59 +0000 (UTC) (envelope-from wundram@beenic.net) Received: from mail.beenic.net (mail.beenic.net [83.246.72.40]) by mx1.freebsd.org (Postfix) with ESMTP id 1D7E313C468 for ; Thu, 13 Dec 2007 07:41:59 +0000 (UTC) (envelope-from wundram@beenic.net) Received: from [192.168.1.32] (a89-182-76-163.net-htp.de [89.182.76.163]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.beenic.net (Postfix) with ESMTP id 1FE0EA44529 for ; Thu, 13 Dec 2007 08:34:51 +0100 (CET) From: "Heiko Wundram (Beenic)" Organization: Beenic Networks GmbH To: freebsd-questions@freebsd.org Date: Thu, 13 Dec 2007 08:43:44 +0100 User-Agent: KMail/1.9.7 References: <200712120706.13428.dmw@unete.cl> <47604F54.6020204@web.de> In-Reply-To: <47604F54.6020204@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712130843.44831.wundram@beenic.net> Subject: Re: RELENG_7 and diablo-jdk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Dec 2007 07:41:59 -0000 Am Mittwoch, 12. Dezember 2007 22:15:00 schrieb Tino Engel: > for me, java apps always segfault under releng_7. > They never did under releng_6. > Have not found out yet why.. The JDK's hotspot compiler digs pretty deep into the system to compile Java code to machine code and run that dynamically. Because of the new operating system version (and changes it introduced), this simply doesn't work properly anymore without a recompile of the JDK for the current system (I haven't dug deeper into the actual cause of the "brokenness" yet, but the probable cause I could think of is some changes in the kernel system call interface between RELENG_6 and _7, which the JDK uses without going through libc as a wrapper shin which would hide the changes). The workaround is simply to install one of the Sun JDKs from sources directly, using the Diablo JDK only to get a working XSLT-processor (which comes bundled with any JDK and doesn't cause the Diablo JDK to segfault when run), which is required in the bootstrapping process of the compilation of a JDK. After building and installing one of the Sun JDKs, you're free to remove the Diablo JDK; the functionality of the two is equal (AFAICT). -- Heiko Wundram Product & Application Development