JDK-6305099 : ./javaws -viewer throws error and exits when launched on SuSE 9.3/GNOME
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS:
    linux,linux_redhat_4.0,linux_suse_sles_8.2,linux_suse_sles_9 linux,linux_redhat_4.0,linux_suse_sles_8.2,linux_suse_sles_9
  • CPU: x86
  • Submitted: 2005-08-02
  • Updated: 2012-03-23
  • Resolved: 2005-09-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b53Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
JDK-Info:
---------
java version "1.6.0-ea"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b45)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b45, mixed mode)


System-Info:
------------ 
SuSE Linux 9.3 (i586) with GNOME
VERSION = 9.3


Steps to Reproduce:
-------------------
1) Install JDK
2) Clean cache
3) Launch Cache viewer (./javaws -viewer)
            (or)
Launch ControlPanel and click on "View..." button

Cache viewer Launches and throws the following error and exits:
hs_err_pid4359.log file attached

# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0x43942f74, pid=4359, tid=1142696880
#
# Java VM: Java HotSpot(TM) Client VM (1.6.0-ea-b45 mixed mode, sharing)
# Problematic frame:
# C  [libgdk-x11-2.0.so.0+0x13f74]  gdk_draw_line+0x64
#
# An error report file with more information is saved as hs_err_pid4359.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


This behavior is seen since mustang b42. Cache viewer gets launched without any error on RHAS4.0

Comments
EVALUATION The crash happens under Industrial theme which has a bug. Look, they use an uninitialized variable (industrial_style.c:1624): } else if (DETAIL("trough") || DETAIL("menu") || DETAIL("dockitem_bin") || DETAIL("handlebox_bin") || DETAIL("toolbar") || DETAIL("dockitem") || WIDGET_TYPE_NAME("PanelAppletFrame")) { GdkGC *bg_gc = NULL; GdkGC *fg_gc; ... if (fill) { ... } draw_rounded_rect_one_pixel (window, bg_gc, fg_gc, corner_gc, area, x, y, width, height); If fill is FALSE, fg_gc is never initialized. That Industrial doesn't crash here means that this code is never called. Experiments with native apps show that they pass either "scrolled_window" or "frame" as the detail, and have another code path executed. We pass "handlebox_bin" which is probably wrong. Let's use "frame" instead. GtkFrame is a border similar to Swing's TitledBorder which seems appropriate for toolbar.
29-08-2005