Date: Thu, 15 Nov 2001 19:25:41 -0500 (EST) From: "Andrew Atrens" <atrens@nortelnetworks.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>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011115191406.M1158-100000>