Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6267140

PIT: AWT is broken on Motif toolkit on Solaris - VM crash when launching any AWT App

    Details

    • Subcomponent:
    • Resolved In Build:
      b38
    • CPU:
      sparc
    • OS:
      solaris_9
    • Verification:
      Verified

      Description

      I am getting a VM Crash when launching any AWT app on SolarisSparc with Motif Toolkit, on the following PIT build:

      java version "1.6.0-awt.pit-int-awt-blade"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-awt.pit-int-awt-blade-df153228_06_May_2005_08_56-b00)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b35, mixed mode)

      This is noticed on SolarisSparc9, Sparc10 with CDE as well as GNOME. Not reproducible on linux (Cinnabar, Linux AS). Not reproducible on Mustang-b35. Not reproducible with XToolkit.

      I have attached a sample test. Execute the sample test on SolSparc10-CDE with the flag '-Dawt.toolkit=sun.awt.motif.MToolkit'. If you see a VM crash, the bug is reproduced.

      Here is the VM Info:
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # SIGSEGV (0xb) at pc=0xff2ae620, pid=21177, tid=1
      #
      # Java VM: Java HotSpot(TM) Server VM (1.6.0-ea-b35 mixed mode)
      # Problematic frame:
      # C [libc.so.1+0x2e620] strcmp+0x160
      #

      --------------- T H R E A D ---------------

      Current thread (0x00034ac0): JavaThread "main" [_thread_in_native, id=1]

      siginfo:si_signo=11, si_errno=0, si_code=1, si_addr=0x01000000

      Registers:
       O0=0x01000000 O1=0xfb0d36fc O2=0x05f2c904 O3=0x00000000
       O4=0x80808080 O5=0x01010101 O6=0xffbfda90 O7=0xfb09cc2c
       G1=0x000a8000 G2=0x0000d2b0 G3=0xfef8277c G4=0x00000002
       G5=0xfef82784 G6=0x00000000 G7=0xff392000 Y=0x00000140
       PC=0xff2ae620 nPC=0xff2ae624


      Top of Stack: (sp=0xffbfda90)
      0xffbfda90: fb0e4000 ffbfdbb8 d4387154 00000106
      0xffbfdaa0: 0016c188 0016c17c 00000002 00000001
      0xffbfdab0: ffbfdba8 ffbfdb58 ffbfdb54 fb0d36fc
      0xffbfdac0: 01000000 ffbfdbbc ffbfdaf0 fb09cb74
      0xffbfdad0: 00063314 d4382b84 ffbfdb00 d431f92c
      0xffbfdae0: ffbfdb60 d431f4fc d426bfcc 00000001
      0xffbfdaf0: 00000001 00000000 00000000 00000000
      0xffbfdb00: 00000000 00000000 fb0e68cc fb0e4000

      Instructions: (pc=0xff2ae620)
      0xff2ae610: 02 bf ff f4 83 2a 20 18 81 c3 e0 08 90 10 00 00
      0xff2ae620: d6 02 40 0a 01 00 00 00 01 00 00 00 01 00 00 00

      Stack: [0xffb80000,0xffc00000), sp=0xffbfda90, free space=502k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [libc.so.1+0x2e620] strcmp+0x160
      C [libXt.so.4+0x1cb7c] XtVaSetValues+0x98
      C [libmawt.so+0x1f5d0] Java_sun_awt_motif_MWindowPeer_pShowModal+0x31c
      C [libmawt.so+0x1f29c] Java_sun_awt_motif_MWindowPeer_pShow+0x14
      j sun.awt.motif.MWindowPeer.pShow()V+-1421436784
      j sun.awt.motif.MWindowPeer.pShow()V+0
      j sun.awt.motif.MComponentPeer.setVisible(Z)V+29
      j sun.awt.motif.MWindowPeer.setVisible(Z)V+2
      j sun.awt.motif.MComponentPeer.show()V+2
      j java.awt.Component.show()V+29
      j java.awt.Window.show()V+35
      j java.awt.Component.show(Z)V+5
      j java.awt.Component.setVisible(Z)V+2
      j ButtonTest.<init>()V+50
      j ButtonTest.main([Ljava/lang/String;)V+4
      v ~StubRoutines::call_stub
      V [libjvm.so+0x173e9c]
      V [libjvm.so+0x2776d0]
      C [java+0x1c18] main+0x760

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j sun.awt.motif.MWindowPeer.pShow()V+0
      j sun.awt.motif.MComponentPeer.setVisible(Z)V+29
      j sun.awt.motif.MWindowPeer.setVisible(Z)V+2
      j sun.awt.motif.MComponentPeer.show()V+2
      j java.awt.Component.show()V+29
      j java.awt.Window.show()V+35
      j java.awt.Component.show(Z)V+5
      j java.awt.Component.setVisible(Z)V+2
      j ButtonTest.<init>()V+50
      j ButtonTest.main([Ljava/lang/String;)V+4
      v ~StubRoutines::call_stub

      --------------- P R O C E S S ---------------

      Java Threads: ( => current thread )
        0x001e5a58 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=15]
        0x001e4a38 JavaThread "AWT-Motif" daemon [_thread_blocked, id=14]
        0x001e4588 JavaThread "AWT-Shutdown" [_thread_blocked, id=13]
        0x00147d58 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=12]
        0x001062f0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=10]
        0x00104ad8 JavaThread "CompilerThread1" daemon [_thread_blocked, id=9]
        0x00103cb0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=8]
        0x00102a78 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=7]
        0x000f4a38 JavaThread "Finalizer" daemon [_thread_blocked, id=6]
        0x000f3d50 JavaThread "Reference Handler" daemon [_thread_blocked, id=5]
      =>0x00034ac0 JavaThread "main" [_thread_in_native, id=1]

      Other Threads:
        0x000effd8 VMThread [id=4]
        0x00107530 WatcherThread [id=11]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       PSYoungGen total 10752K, used 1106K [0xee000000, 0xeec00000, 0xf8c00000)
        eden space 9216K, 12% used [0xee000000,0xee1148a8,0xee900000)
        from space 1536K, 0% used [0xeea80000,0xeea80000,0xeec00000)
        to space 1536K, 0% used [0xee900000,0xee900000,0xeea80000)
       PSOldGen total 24576K, used 0K [0xd8800000, 0xda000000, 0xee000000)
        object space 24576K, 0% used [0xd8800000,0xd8800000,0xda000000)
       PSPermGen total 16384K, used 3955K [0xd4800000, 0xd5800000, 0xd8800000)
        object space 16384K, 24% used [0xd4800000,0xd4bdccd8,0xd5800000)

      Dynamic libraries:
      0x00010000 java
      0xff3f8000 /lib/libthread.so.1
      0xff3a0000 /lib/libdl.so.1
      0xff280000 /lib/libc.so.1
      0xff270000 /platform/SUNW,Sun-Blade-2500/lib/libc_psr.so.1
      0xfe800000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/server/libjvm.so
      0xff230000 /lib/libsocket.so.1
      0xff260000 /usr/lib/libsched.so.1
      0xff1f0000 /usr/lib/libCrun.so.1
      0xff1d0000 /lib/libm.so.1
      0xff1b0000 /lib/libdoor.so.1
      0xff080000 /lib/libnsl.so.1
      0xfe700000 /lib/libm.so.2
      0xff170000 /lib/libscf.so.1
      0xff150000 /lib/libuutil.so.1
      0xff060000 /lib/libmd5.so.1
      0xff040000 /platform/SUNW,Sun-Blade-2500/lib/libmd5_psr.so.1
      0xff020000 /lib/libmp.so.2
      0xfefe0000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/native_threads/libhpi.so
      0xfe7d0000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libverify.so
      0xfe6c0000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libjava.so
      0xfe6a0000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libzip.so
      0xfe2e0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.3
      0xd4580000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libawt.so
      0xd4400000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libmlib_image.so
      0xd4300000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/motif21/libmawt.so
      0xd4080000 /usr/dt/lib/libXm.so.4
      0xfbad0000 /usr/openwin/lib/libXp.so.1
      0xfb080000 /usr/openwin/lib/libXt.so.4
      0xfba90000 /usr/openwin/lib/libXext.so.0
      0xfb9d0000 /usr/openwin/lib/libXtst.so.1
      0xd3f80000 /usr/openwin/lib/libX11.so.4
      0xfb9a0000 /usr/openwin/lib/libSM.so.6
      0xfb840000 /usr/openwin/lib/libICE.so.6
      0xf8c80000 /net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/libfontmanager.so
      0xfe2c0000 /usr/openwin/lib/locale/common/xlibi18n.so.2
      0xfb820000 /usr/openwin/lib/locale/iso8859-1/xomEuro.so.2
      0xfb3e0000 /usr/lib//liblayout.so
      0xfb390000 /usr/openwin/lib/locale/common/ximlocal.so.2

      VM Arguments:
      jvm_args: -Dawt.toolkit=sun.awt.motif.MToolkit
      java_command: ButtonTest
      Launcher Type: generic

      Environment Variables:
      JAVA_HOME=/net/sqindia/export/disk01/jdk/1.4.2/beta/b18/binaries/solsparc
      PATH=/net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/bin:/usr/dist/share/devpro,v4.2/5.x-sparc/bin:/usr/dt/bin:/usr/openwin/bin:/usr/ccs/bin:/usr/dist/share/forte_dev,v6.2/SUNWspro/bin:/usr/bin:/usr/sbin:/sbin:/usr/ucb:/usr/dist/local/exe:/usr/sfw/bin:/usr/dist/exe:/usr/lib/lp/postscript:.
      LD_LIBRARY_PATH=/net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc/server:/net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/lib/sparc:/net/sqindia/export/disk11/awt/mustangbinaries/PIT.06.May.2005/solaris-sparc/jre/../lib/sparc
      SHELL=/bin/csh
      DISPLAY=divinemelody:0.0

      Signal Handlers:
      SIGSEGV: [libjvm.so+0x671084], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
      SIGBUS: [libjvm.so+0x671084], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
      SIGFPE: [libjvm.so+0x21abe8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
      SIGPIPE: [libjvm.so+0x21abe8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
      SIGILL: [libjvm.so+0x21abe8], sa_mask[0]=0xffbffeff, sa_flags=0x0000000c
      SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGUSR2: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
      SIGHUP: [libjvm.so+0x5ef658], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
      SIGINT: [libjvm.so+0x5ef658], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
      SIGQUIT: [libjvm.so+0x5ef658], sa_mask[0]=0xffbffeff, sa_flags=0x00000004
      SIGTERM: [libjvm.so+0x5ef658], sa_mask[0]=0xffbffeff, sa_flags=0x00000004


      --------------- S Y S T E M ---------------

      OS: Solaris 10 3/05 s10_74L2a SPARC
                 Copyright 2005 Sun Microsystems, Inc. All Rights Reserved.
                              Use is subject to license terms.
                                  Assembled 22 January 2005

      uname:SunOS 5.10 Generic sun4u (T2 libthread)
      rlimit: STACK 8192k, CORE infinity, NOFILE 65536, AS infinity
      load average:0.00 0.00 0.00

      CPU:total 2 has_v8, has_v9, has_vis1, has_vis2, is_ultra3

      Memory: 8k page, physical 2097152k(1323224k free)

      vm_info: Java HotSpot(TM) Server VM (1.6.0-ea-b35) for solaris-sparc, built on May 5 2005 02:05:55 by with unknown Workshop:0x570


      ###@###.### 2005-05-09 09:17:56 GMT

        Attachments

          Activity

            People

            • Assignee:
              art Artem Ananiev
              Reporter:
              pmohansunw Praveen Mohan (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: