Name: clC74495 Date: 06/02/99
I can get java.exe to crash 100% running a jdb session on a very simple Java program.
I have reduced the original program source to the bare minimum code that will show the
problem (so don't look for any sense in the code :-)
The problem only happens with Java 2 (1.1.X works fine). Compile the following class,
run jdb, step to the last line in main() and, while on the last line, ask jdb to show you the
local variables--crash! Same as with our debugger :-) The crash happens when the debugger
sends the VM a CMD_GET_STACK_VALUE for slot 3.
I'm using the jdb that is installed with Java 2 JDK (not the one that comes with JBug).
class TrivialApplication
{
static boolean flag = false;
public static void main(String args[])
{
int i = 1;
try
{
if (flag)
throw new NullPointerException();
}
catch (NullPointerException e)
{
e = null;
}
if (flag)
{
i = 1;
System.out.println("Hello");
}
int j = 1;
}
}
(Review ID: 83378)
======================================================================
- duplicates
-
JDK-4244598 JPDA: Bogus variable tables not handled gracefully
- Closed