From owner-freebsd-java@FreeBSD.ORG Sat May 31 02:45:33 2003 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C42A37B401 for ; Sat, 31 May 2003 02:45:33 -0700 (PDT) Received: from gddsn.org.cn (mail.gddsn.org.cn [210.21.6.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id C159F43F85 for ; Sat, 31 May 2003 02:45:32 -0700 (PDT) (envelope-from huang@gddsn.org.cn) Received: from gddsn.org.cn (gw [210.21.6.34]) by gddsn.org.cn (Postfix) with ESMTP id 95E4438CB01; Sat, 31 May 2003 17:45:28 +0800 (CST) Message-ID: <3ED879B7.9070602@gddsn.org.cn> Date: Sat, 31 May 2003 17:45:27 +0800 From: Huang wen hui User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; zh-CN; rv:1.3) Gecko/20030424 X-Accept-Language: zh-cn, zh-tw, en-us MIME-Version: 1.0 To: java@freebsd.org, threads@freebsd.gddsn.org.cn Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 7bit Subject: Native jdk1.4.1 with libkse X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 May 2003 09:45:33 -0000 hi, This is sample code that can crash Native jdk1.41 with libkse. It works with libthr or libc_r. Is this the problem of signal handling ? #java -version java version "1.4.1-p3" Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-p3-root_07_mar_2003_10_47) Java HotSpot(TM) Client VM (build 1.4.1-p3-root_07_mar_2003_10_47, mixed mode) #java TestKSE Illegal instruction (core dumped) ----------------------------------------------------- public class TestKSE { private double[] sampData = null; public TestKSE(){ int len; try{ len = sampData.length; }catch(NullPointerException npe) { System.err.println("catch null"); } } public static void main(String[] args) { new TestKSE(); } } --hwh