From owner-freebsd-java Thu Nov 15 16:24:43 2001 Delivered-To: freebsd-java@freebsd.org Received: from zcars0m9.nortelnetworks.com (zcars0m9.nortelnetworks.com [47.129.242.157]) by hub.freebsd.org (Postfix) with ESMTP id C541737B416 for ; Thu, 15 Nov 2001 16:24:40 -0800 (PST) Received: from zcars04f.ca.nortel.com (zcars04f.ca.nortel.com [47.129.242.57]) by zcars0m9.nortelnetworks.com (8.11.0/8.11.0) with ESMTP id fAG0NtS29481 for ; Thu, 15 Nov 2001 19:23:55 -0500 (EST) Received: from zcard00m.ca.nortel.com by zcars04f.ca.nortel.com; Thu, 15 Nov 2001 19:24:08 -0500 Received: from zcard0ka.ca.nortel.com ([47.129.242.162]) by zcard00m.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id W99N1WHJ; Thu, 15 Nov 2001 19:23:15 -0500 Received: from hcarp00g (hcarp00g.ca.nortel.com [47.196.31.114]) by zcard0ka.ca.nortel.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id PX30TH9L; Thu, 15 Nov 2001 19:23:18 -0500 Date: Thu, 15 Nov 2001 19:25:41 -0500 (EST) X-Sybari-Space: 00000000 00000000 00000000 From: "Andrew Atrens" X-X-Sender: atrens@hcarp00g.ca.nortel.com To: java@freebsd.org Subject: Small prog to demonstrate linux-jdk1.3.x signal handling problem. Message-ID: <20011115191406.M1158-100000@hcarp00g.ca.nortel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Orig: Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org All, Here is a small program which kills both (linux) Sun JDK 1.3.x/1.4.x Hotspot JVM, _and_ the (linux) IBM JDK 1.3.0 JVM. The Sun JVMs will SEGV. The IBM JVM 'runs away' and is unreponsive to anything but SIGKILL. Cheers, Andrew. import java.io.*; public class ClientOfDeath { static String s = null; public static void main(String[] args) throws IOException { for (;;) { s = null; try { s.compareTo(""); } catch (NullPointerException n) { s = ""; } } } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message