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

JEditorPaneTest fails with VM crash on Solaris 64bit mode.

XMLWordPrintable

    • b30
    • sparc
    • solaris_9
    • Verified


      The VM crash occurs and aborts with JEditorPaneTest, if change font size for 2byte (Japanese) characters.
      This VM crash did not occur with 32bit mode, but occured with 64bit mode (-d64 option).
      I saw this VM crash on Sparc Solaris 64bit 8(Ultra1), 9(Ultra30), 10(Ultra30).
      This bug is not seen with jdk1.4.2.


      Reproduce step.
      1. sh run_gs.sh -d64 $i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JEditorPaneTest.java
      or compile attached JEditorPaneTest.java and execute with Tiger 64bit mode.

      2. open attached ja.txt file with JEditorPaneTest and select "Edit" -> "SelectAll".

      3. select "Style" -> "Font Size" -> "48".

      4. VM crash occurs and aborts.


      *attached ja.txt (2 byte characters text) is 2020byte file size. if open attached en.txt
       (1 byte characters text) 2020byte file size and do the operation
       from step at 2 that select "Edit" -> "SelectAll" above, JEditorPaneTest does not
       abort. This VM crash is seen with 2 byte (Japanese) specific.




      ---------Trace log of jtreg JEditorPaneTest.jtr on Soalris10---------

      Test Results (version 2)
      #Mon Nov 10 17:03:22 JST 2003
      #checksum:3ebc3fd87a3b1031
      #-----testdescription-----
      $file=/tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JEditorPaneTest.java
      $root=/tmp/i18n_tiger_ws/i18n/src/GS
      keywords=manual
      run=USER_SPECIFIED applet/manual=yesno JEditorPaneTest.html\n
      source=JEditorPaneTest.java
      title=Test case for class javax.swing.JEditorPaneTest

      #-----environment-----

      #-----testresult-----
      description=file:///tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JEditorPaneTest.java
      end=Mon Nov 10 17:03:22 JST 2003
      environment=regtest
      execStatus=Failed. Unexpected exit from test [exit code: 6]
      javatestOS=SunOS 5.10 (sparc)
      javatestVersion=2.1.5
      script=com.sun.javatest.regtest.RegressionScript
      sections=script_messages build compile applet
      start=Mon Nov 10 16:59:08 JST 2003
      status=Failed. Unexpected exit from test [exit code: 6]
      test=font-render/swing/three/JEditorPaneTest.java
      work=/tmp/i18n_tiger_ws/i18n/src/GS/JTwork/font-render/swing/three

      #section:script_messages
      ----------messages:(1/58)*----------
      JDK under test: /tmp/\u3058\u3083\u3070\u4e00\uff0e\u4e94

      #section:build
      ----------messages:(3/102)----------
      command: build JEditorPaneTest
      reason: Named class compiled on demand
      elapsed time (seconds): 18.336
      result: Passed. Compilation successful

      #section:compile
      ----------messages:(3/175)----------
      command: compile /tmp/i18n_tiger_ws/i18n/src/GS/font-render/swing/three/JEditorPaneTest.java
      reason: .class file out of date or does not exist
      elapsed time (seconds): 18.332
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:applet
      ----------messages:(3/146)----------
      command: applet JEditorPaneTest.html
      reason: User specified action: run applet/manual=yesno JEditorPaneTest.html
      elapsed time (seconds): 235.778
      ----------System.out:(15/509)----------
      ---read()
      ---read()
      com.sun.java.swing.plaf.motif.MotifLookAndFeel
      com.sun.java.swing.plaf.gtk.GTKLookAndFeel
      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # Internal Error (4E4D4554484F440E43505004F6 01), pid=2632, tid=17
      #
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-beta-b26 mixed mode)
      # An error report file with more information is saved as hs_err_pid2632.log
      #
      # If you would like to submit a bug report, please visit:
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      ----------System.err:(5/350)----------
      ../gtk-2.0-key/gtkrc:6: Binding specification is unsupported, ignoring
      ../gtk-2.0-key/gtkrc:14: Binding specification is unsupported, ignoring
      ../gtk-2.0-key/gtkrc:16: Binding assignment is unsupported, ignoring
      ../gtk-2.0-key/gtkrc:17: Binding assignment is unsupported, ignoring
      ../gtk-2.0-key/gtkrc:18: Binding assignment is unsupported, ignoring
      result: Failed. Unexpected exit from test [exit code: 6]


      test result: Failed. Unexpected exit from test [exit code: 6]


      --------------------------------------------------------------------------







      ----------VM hs_err log on Solaris10-----------------------------


      #
      # An unexpected error has been detected by HotSpot Virtual Machine:
      #
      # Internal Error (4E4D4554484F440E4350500519 01), pid=3144, tid=17
      #
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0-beta-b15 mixed mode)

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

      Current thread (0x00000001005feca0): JavaThread "AWT-EventQueue-0" [_thread_in_Java, id=17]

      Stack: [0xffffffff2ac00000,0xffffffff2ad00000), sp=0xffffffff2acfc3e0, free space=1008k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x62ead8]
      V [libjvm.so+0x400ef0]
      V [libjvm.so+0x59f238]
      V [libjvm.so+0x5e8f0c]
      V [libjvm.so+0x2a340c]
      C [libc.so.1+0xbcacc]
      C [libc.so.1+0xb24b0]
      C [libc.so.1+0xb26dc]
      J sun.font.FileFontStrike.getGlyphAdvance(I)F
      J sun.font.FontDesignMetrics.charWidth(C)I
      J javax.swing.text.Utilities.getTabbedTextWidth(Ljavax/swing/text/Segment;Ljava/awt/FontMetrics;ILjavax/swing/text/TabExpander;I)I
      v ~I2CAdapter
      j javax.swing.text.GlyphPainter1.getSpan(Ljavax/swing/text/GlyphView;IILjavax/swing/text/TabExpander;F)F+25
      j javax.swing.text.GlyphView.getPreferredSpan(I)F+68
      j javax.swing.text.FlowView$LogicalView.getPreferredSpan(I)F+32
      j javax.swing.text.FlowView.calculateMinorAxisRequirements(ILjavax/swing/SizeRequirements;)Ljavax/swing/SizeRequirements;+17
      j javax.swing.text.BoxView.checkRequests(I)V+86
      j javax.swing.text.BoxView.getMinimumSpan(I)F+2
      j javax.swing.text.BoxView.calculateMinorAxisRequirements(ILjavax/swing/SizeRequirements;)Ljavax/swing/SizeRequirements;+36
      j javax.swing.text.BoxView.checkRequests(I)V+86
      j javax.swing.text.BoxView.setSpanOnAxis(IF)V+101
      j javax.swing.text.BoxView.layout(II)V+4
      j javax.swing.text.BoxView.setSize(FF)V+29
      j javax.swing.plaf.basic.BasicTextUI$RootView.setSize(FF)V+13
      j javax.swing.plaf.basic.BasicTextUI.getPreferredSize(Ljavax/swing/JComponent;)Ljava/awt/Dimension;+103
      j javax.swing.JComponent.getPreferredSize()Ljava/awt/Dimension;+26
      j javax.swing.JEditorPane.getPreferredSize()Ljava/awt/Dimension;+1
      j javax.swing.ScrollPaneLayout.layoutContainer(Ljava/awt/Container;)V+428
      j java.awt.Container.layout()V+11
      j java.awt.Container.doLayout()V+1
      j java.awt.Container.validateTree()V+30
      j java.awt.Container.validate()V+61
      j javax.swing.RepaintManager.validateInvalidComponents()V+54
      j javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run()V+28
      j java.awt.event.InvocationEvent.dispatch()V+47
      j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+21
      j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+177
      j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
      j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
      j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
      j java.awt.EventDispatchThread.run()V+9
      v ~StubRoutines::call_stub
      V [libjvm.so+0x1efe9c]
      V [libjvm.so+0x1eff68]
      V [libjvm.so+0x2b91cc]
      V [libjvm.so+0x2c155c]
      V [libjvm.so+0x2d9e6c]
      V [libjvm.so+0x2d6f38]
      V [libjvm.so+0x2d1994]


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

      Java Threads: ( => current thread )
        0x00000001001121e0 JavaThread "DestroyJavaVM" [_thread_blocked, id=1]
        0x00000001002a7a30 JavaThread "TimerQueue" daemon [_thread_blocked, id=18]
      =>0x00000001005feca0 JavaThread "AWT-EventQueue-0" [_thread_in_Java, id=17]
        0x00000001005fe9c0 JavaThread "AWT-Shutdown" [_thread_blocked, id=16]
        0x000000010047b450 JavaThread "AWT-Motif" daemon [_thread_in_native, id=13]
        0x00000001003d76f0 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=11]
        0x000000010020ebf0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9]
        0x000000010020dff0 JavaThread "CompilerThread1" daemon [_thread_blocked, id=8]
        0x000000010020d310 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7]
        0x0000000100207e10 JavaThread "AdapterThread" daemon [_thread_blocked, id=6]
        0x0000000100207130 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=5]
        0x00000001001fc780 JavaThread "Finalizer" daemon [_thread_blocked, id=4]
        0x00000001001fc380 JavaThread "Reference Handler" daemon [_thread_blocked, id=3]

      Other Threads:
        0x00000001001fa1b0 VMThread [id=2]
        0x000000010020f7f0 WatcherThread [id=10]

      VM state:not at safepoint (normal execution)

      VM Mutex/Monitor currently owned by a thread: None

      Heap
       def new generation total 2496K, used 1854K [0xffffffff30000000, 0xffffffff30280000, 0xffffffff31550000)
        eden space 2432K, 73% used [0xffffffff30000000, 0xffffffff301c0f10, 0xffffffff30260000)
        from space 64K, 91% used [0xffffffff30270000, 0xffffffff3027e988, 0xffffffff30280000)
        to space 64K, 0% used [0xffffffff30260000, 0xffffffff30260000, 0xffffffff30270000)
       tenured generation total 5088K, used 3050K [0xffffffff31550000, 0xffffffff31a48000, 0xffffffff34000000)
         the space 5088K, 59% used [0xffffffff31550000, 0xffffffff3184a978, 0xffffffff3184aa00, 0xffffffff31a48000)
       compacting perm gen total 16384K, used 10073K [0xffffffff34000000, 0xffffffff35000000, 0xffffffff38000000)
         the space 16384K, 61% used [0xffffffff34000000, 0xffffffff349d66a8, 0xffffffff349d6800, 0xffffffff35000000)

      Dynamic libraries:
      0x0000000100000000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/bin/sparcv9/java
      0xffffffff7f300000 /lib/64/libthread.so.1
      0xffffffff7f500000 /lib/64/libdl.so.1
      0xffffffff7ef00000 /lib/64/libc.so.1
      0xffffffff7ee00000 /platform/SUNW,Ultra-30/lib/sparcv9/libc_psr.so.1
      0xffffffff7e400000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/server/libjvm.so
      0xffffffff7e200000 /usr/lib/64/libCrun.so.1
      0xffffffff7e000000 /lib/64/libsocket.so.1
      0xffffffff7de00000 /usr/lib/64/libm.so.1
      0xffffffff7f100000 /usr/lib/64/libsched.so.1
      0xffffffff7dc00000 /lib/64/libw.so.1
      0xffffffff7d900000 /lib/64/libnsl.so.1
      0xffffffff7d700000 /usr/lib/64/libm.so.2
      0xffffffff7d400000 /lib/64/libmd5.so.1
      0xffffffff7d200000 /platform/SUNW,Ultra-30/lib/sparcv9/libmd5_psr.so.1
      0xffffffff7d000000 /lib/64/libmp.so.2
      0xffffffff7c500000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/native_threads/libhpi.so
      0xffffffff7c200000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libverify.so
      0xffffffff7bf00000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libjava.so
      0xffffffff7bd00000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libzip.so
      0xffffffff2f900000 /usr/lib/locale/ja/sparcv9/ja.so.2
      0xffffffff2f600000 /usr/lib/locale/ja_JP.eucJP/sparcv9/methods_ja_JP.eucJP.so.2
      0xffffffff2d900000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libawt.so
      0xffffffff2d600000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libmlib_image.so
      0xffffffff2e100000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/motif21/libmawt.so
      0xffffffff2d100000 /usr/dt/lib/sparcv9/libXm.so.4
      0xffffffff2cf00000 /usr/openwin/lib/sparcv9/libXp.so.1
      0xffffffff2cc00000 /usr/openwin/lib/sparcv9/libXt.so.4
      0xffffffff2ca00000 /usr/openwin/lib/sparcv9/libXext.so.0
      0xffffffff2c800000 /usr/openwin/lib/sparcv9/libXtst.so.1
      0xffffffff2c600000 /usr/openwin/lib/sparcv9/libX11.so.4
      0xffffffff2c300000 /usr/openwin/lib/sparcv9/libSM.so.6
      0xffffffff2c100000 /usr/openwin/lib/sparcv9/libICE.so.6
      0xffffffff2bd00000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libfontmanager.so
      0xffffffff2b700000 /usr/openwin/lib/locale/ja/sparcv9/xlibi18n_ja.so.2
      0xffffffff2b400000 /usr/openwin/lib/locale/common/sparcv9/xomLTRTTB.so.2
      0xffffffff2b200000 /usr/lib/64/liblayout.so.1
      0xffffffff2af00000 /usr/openwin/lib/locale/common/sparcv9/ximp40.so.2
      0xffffffff2a500000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libnet.so
      0xffffffff2a300000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libnio.so
      0xffffffff2a000000 /lib/64/librt.so.1
      0xffffffff29e00000 /lib/64/libaio.so.1
      0xffffffff29c00000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libsunwjdga.so
      0xffffffff29900000 /usr/openwin/lib/sparcv9/libdga.so.1
      0xffffffff29700000 /net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/libjdgaSUNWffb.so

      VM Arguments:
      java_command: JEditorPaneTest

      Environment Variables:
      PATH=/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/dt/bin:/usr/ccs/bin:/usr/openwin/bin:/usr/dist/exe/:/net/kiosk/export/local/bin:/net/javasoft/opt/SUNWspro/SC4.2/bin:.
      LD_LIBRARY_PATH=/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9/server:/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparcv9:/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/../lib/sparcv9:/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparc/client:/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/lib/sparc:/net/mervyns/export/disk3/share/bin/jdk1.5.0/beta/b15/binaries/solaris-sparcv9/jre/../lib/sparc
      SHELL=/bin/csh
      DISPLAY=:0.0


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

      OS: Solaris 10 s10_46 SPARC
                 Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
                              Use is subject to license terms.
                                 Assembled 03 November 2003

      uname:SunOS 5.10 s10_46 sun4u (T2 libthread)
      rlimit: STACK 8192k, CORE 0k, NOFILE 65536, AS infinity
      load average:1.46 1.30 0.79

      CPU:total 1(active 1) has_v8, has_v9, has_vis1

      Memory: 8k page, physical 1048576k(579472k free)




      -------------------------------------------------------------------









            rasbold Chuck Rasbold
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: