Subject: pkg/20085: JDK14 hanging on trivial swing apps
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@cjones.org>
List: netbsd-bugs
Date: 01/27/2003 15:16:36
>Number:         20085
>Category:       pkg
>Synopsis:       JDK14 hanging on trivial swing apps
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 27 14:17:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Chris Jones
>Release:        NetBSD 1.6
>Organization:
chris@mt.sri.com -----------------------------------------------------
Chris Jones                                    SRI International, Inc.
www.mt.sri.com                                             www.sri.com
>Environment:
	
	
System: NetBSD legolas.mt.sri.com 1.6 NetBSD 1.6 (LEGOLAS) #0: Wed Sep 18 11:01:00 MDT 2002 chris@legolas.mt.sri.com:/usr/src/sys/arch/i386/compile/LEGOLAS i386
Architecture: i386
Machine: i386

legolas$ pkg_info | grep -i sun-j
sun-jre14-0nb1      Sun's Java(tm) Runtime Environment 1.4.0
sun-jdk14-0nb1      Sun's Java(tm) Development Kit 1.4.0

>Description:
Running a trivial swing application, the java process consumes over
90% CPU time and doesn't respond to SIGTERM.

>How-To-Repeat:
Compile and run the following Java program:

======================================================================
import javax.swing.*;

public class HelloWorldSwing {
  public static void main(String[] args) {
    JFrame frame = new JFrame("HelloWorldSwing");
    final JLabel label = new JLabel("Hello World");
    frame.getContentPane().add(label);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
  }
}
======================================================================

>Fix:
Unknown.  I also tried installing JDK1.4.1_01 and running that, but it
exhibited the same symptoms.
>Release-Note:
>Audit-Trail:
>Unformatted: