Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Small prog to demonstrate linux-jdk1.3.x signal handling problem. (fwd)

1 view
Skip to first unread message

Andrew Atrens

unread,
Nov 20, 2001, 11:39:39 AM11/20/01
to

I originally sent this to -java, but it might be more suited here. This
pre-dates the email Ari sent earlier today.


---------- Forwarded message ----------
Date: Thu, 15 Nov 2001 19:25:41 -0500 (EST)
From: Andrew Atrens <atr...@nortelnetworks.com>
To: ja...@freebsd.org
Subject: Small prog to demonstrate linux-jdk1.3.x signal handling problem.


All,

Here is a small program which kills both (linux) Sun/Blackdown JDK
1.3.x/1.4.x Hotspot JVM, _and_ the (linux) IBM JDK 1.3.0 JVM.

The Sun/Blackdown 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 majo...@FreeBSD.org
with "unsubscribe freebsd-emulation" in the body of the message

0 new messages