[27062] in Athena Bugs

home help back first fref pref prev next nref lref last post

sun4 9.4.36: java 1.5.0_06's jdb

daemon@ATHENA.MIT.EDU (John Hawkinson)
Sat Mar 10 22:15:40 2007

Message-Id: <200703110315.l2B3FPMH011652@portnoy.mit.edu>
To: bugs@mit.edu
Date: Sat, 10 Mar 2007 22:15:25 -0500
From: John Hawkinson <jhawk@mit.edu>
X-Spam-Flag: NO
X-Spam-Score: 0.00
Errors-To: bugs-bounces@mit.edu

System name:		portnoy.mit.edu
Type and version:	Sun-Blade-1500 9.4.36 (with mkserv)
Display type:		jfb

Shell:			/bin/sh (/bin/athena/tcsh?)
Window manager:		unknown

What were you trying to do?
	Use jdb, the java debugger. I have this problem with
	both /usr/bin/jdb and /mit/java/bin/java_v1.5.0_06/bin/jdb.

What's wrong:
	In short, jdb exits when my application exits, and ignores
	breakpoints. For example:

[portnoy!jhawk] ~/jdbtest> which java javac jdb
/mit/java_v1.5.0_06/arch/sun4x_510/bin/java
/mit/java_v1.5.0_06/arch/sun4x_510/bin/javac
/mit/java_v1.5.0_06/arch/sun4x_510/bin/jdb
[portnoy!jhawk] ~/jdbtest> cat Test.java
public class Test {

  public static void main(String args[]) {
    System.out.println("This is a test message.");
  }

}
[portnoy!jhawk] ~/jdbtest> javac -g -Xlint:all Test.java
[portnoy!jhawk] ~/jdbtest> java Test
This is a test message.
[portnoy!jhawk] ~/jdbtest> jdb Test
Initializing jdb ...
> stop in System.out.println
Deferring breakpoint System.out.println.
It will be set after the class is loaded.
> run
run Test
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
> 
VM Started: This is a test message.

The application exited
[portnoy!jhawk] ~/jdbtest> 


What should have happened:
	jdb should have stopped at the breakpoint. It also should not
	have terminated when the app terminated.

	I see the same problem under Linux.

home help back first fref pref prev next nref lref last post