JDK-6310183 : regression: AMD64 JVM crashed on Solaris 10
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS:
    linux,linux_2.6,linux_redhat_2.1,linux_redhat_3.0,linux_redhat_4.0,linux_suse_sles_9,solaris_10 linux,linux_2.6,linux_redhat_2.1,linux_redhat_3.0,linux_redhat_4.0,linux_suse_sles_9,solaris_10
  • CPU: x86,sparc
  • Submitted: 2005-08-12
  • Updated: 2011-03-10
  • Resolved: 2005-11-09
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 b60Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Regression: YES, from build b42
Package: J2SE
Version: 1.6.0-ea-b46
Locale: C, DE.UTF8

Description: Regression: AMD64 JVM crashed on Solaris 10
  64bit JVM crashed in SwingSet2.jar demo with the error message:

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  SIGSEGV (0xb) at pc=0xfffffd7fee658bb9, pid=2204, tid=14
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.6.0-ea-b46 mixed mode)
# Problematic frame:
# C  [libgobject-2.0.so.0.400.1+0x38bb9]  g_object_steal_data+0x569
#
# An error report file with more information is saved as hs_err_pid2204.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#


  Full stdout and error file are attached. 

  32bit bit JVM works fine. Mustang b45, b43 and  b42 have the problem too, Mustang b38, b41 and TigerU5 b03 works fine.


Bundle tested:
  jdk-6_0-ea-bin-b46-solaris-amd64-04_aug_2005.sh
  jdk-6_0-ea-bin-b46-solaris-i586-04_aug_2005.sh
  jdk-6_0-ea-bin-b43-solaris-amd64-14_jul_2005.sh
  jdk-6_0-ea-bin-b43-solaris-i586-14_jul_2005.sh


Platform: Solaris 10 3/05 s10_74L2a X86

Configuration(s):  Sun V1101z (1x opteron) 

Reproduce Step(s):
  - run 'java -d64 -jar demo/jfc/SwingSet2/SwingSet2.jar'
  - change look&feel to 'GTK'
  - press the button with table 'JTable demo'
  -> VM crashed

Reproducible in previous build(s)? yes b43 

Reproducible in previous releases(s)?  no, 1.5.0_05 b05 works fine

Comments
EVALUATION Fix verified in b60 on RHAS4.0 AMD64 and Solaris10 UR1 AMD64. Bundles: jdk-6-rc-bin-b60-linux-amd64-10_nov_2005.bin jdk-6-rc-bin-b60-solaris-i586-10_nov_2005.sh jdk-6-rc-bin-b60-solaris-amd64-10_nov_2005.sh
11-11-2005

SUGGESTED FIX webrev: http://sa.sfbay.sun.com/projects/swing_data/mustang/6310183.0
26-10-2005

EVALUATION GTK has two methods for creating a horizontal slider: gtk_hscale_new(void*) and gtk_hscale_new_with_range(double, double, double). Our code fetches pointer to the first function from the library but passes arguments from the second one.
26-10-2005

EVALUATION by Phil's suggestion I removed "see also" bug 6310202 and changed subcategory from jvm_exact -> classes_2d. Looks like a GTK L&F issue. The console log says that it can't find Motiv-Engine in the module path and the hotspot dump shows: C [libgobject-2.0.so.0.400.1+0x38bb9] g_object_steal_data+0x569 C [libgobject-2.0.so.0.400.1+0x346ce] g_object_new_valist+0x63e C [libgobject-2.0.so.0.400.1+0x334ff] g_object_new+0x14f C [libgtk-x11-2.0.so.0.400.9+0x2b13e8] gtk_hscale_new+0x78 C [libmawt.so+0x32e21] getAwtLockFunctions+0x18c1 C [libmawt.so+0x34116] getAwtLockFunctions+0x2bb6 C [libmawt.so+0x3484c] Java_com_sun_java_swing_plaf_gtk_GTKNativeEngine_native_1paint_1slider+0x4c j com.sun.java.swing.plaf.gtk.GTKNativeEngine.native_paint_slider(IIILjava/lang/String;IIIII)V+0 j com.sun.java.swing.plaf.gtk.GTKNativeEngine.paintSlider(Ljava/awt/Graphics;Ljavax/swing/plaf/synth/SynthContext;Ljavax/swing/plaf/synth/Region;ILcom/sun/java/swing/plaf/gtk/GTKConstants$ShadowType;Ljava/lang/String;IIIILcom/sun/java/swing/plaf/gtk/GTKConstants$Orientation;)V+62 j com.sun.java.swing.plaf.gtk.GTKCachingPainter.paintSliderThumbBackground(Ljava/awt/Graphics;III)V+59 j com.sun.java.swing.plaf.gtk.GTKCachingPainter.paintToImage(Ljava/awt/Component;Ljava/awt/Image;Ljava/awt/Graphics;II[Ljava/lang/Object;)V+734 j sun.swing.CachedPainter.paint0(Ljava/awt/Component;Ljava/awt/Graphics;IIII[Ljava/lang/Object;)V+169
07-09-2005