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

JCK13a 13 tests failed with "native code outside the VM" error on headless test

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_7

      Description

      The following tests filed with "native code outside the VM" error and core file created on headeless testing (-Djava.awt.headless=true) using Jdk1.4-b58. Tests was passed using jdk1.4-b57.

      If I set the java.awt.headless to false , tests will pass using b58.


      JDK : 1.4.0-beta-b58
      JCK : jck1.3a
      Platform[s] : Solaris 7
      switch/Mode : all switches ( headless testing)
      JCK test owner : http://javaweb.eng/jct/sqe/JCK-tck/usr/owners.jto
      Failing Test :

      1) api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#protected
      2) api/javax_swing/plaf/basic/BasicColorChooserUI/index.html#public
      3) api/javax_swing/plaf/basic/BasicColorChooserUI/PropertyHandler/index.html#public 4) api/javax_swing/plaf/basic/BasicComboBoxEditor/index.html#public
      5) api/javax_swing/text/BoxView/index.html#protected
      6) api/javax_swing/text/FieldView/index.html#misc
      7) api/javax_swing/text/FieldView/index.html#protected
      8) api/javax_swing/plaf/metal/MetalFileChooserUI/index.html#public
      9) api/javax_swing/plaf/metal/MetalTextFieldUI/index.html#Public
      10) api/javax_swing/plaf/metal/MetalToolTipUI/index.html#getset
      11) api/javax_swing/plaf/metal/MetalTreeUI/index.html#public
      12) api/javax_swing/text/PlainView/index.html#misc
      13) api/javax_swing/text/WrappedPlainView/index.html#protected
       

      Test source location:
      =====================
      1)
      /net/jdk/export/disk8/local.java/jck1.3a/JCK-runtime-13a/api/javax_swing/plaf/basic/BasicColorChooserUI/protectedTests.java



      jtr file location:
      ==================
      1) file:/net/ultraowl/export/home/jtg-test/JH_JDK14_b58_JCK13a_c1Xmix/workDir/api/javax_swing/plaf/basic/BasicColorChooserUI/index_protected.jtr

      jtr also attached.

      How to reproduce:
      ====================
      Run the attached script.
         xswing_basic_BasicCollorChooserUI_protected.ksh
      --------Script START---------------------
      #!/bin/ksh
      SWITCH=${1+$@}
      JDK=/net/jdk/export/disk8/local.java/jdk1.4
      TESTBASE=/net/jdk/export/disk8/local.java/jck1.3a
      JCK=${TESTBASE}/JCK-runtime-13a
      executeClass=javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicColorChooserUI.protectedTests
      excludeCmd=
      executeClassArgs=
      executeTestURL=
      headless=true
      executeContextArgs=

      case `uname -s` in
        SunOS)
         ARCH=`uname -p`
         case $ARCH in
          sparc)
            sharedJDK=$JDK/solsparc
            ;;
          i386)
            sharedJDK=$JDK/solx86
            ;;
         esac
         ;;
        Linux)
         sharedJDK=$JDK/linux-i386
         ARCH=linux
         ;;
      esac

      CLASSPATH=${JCK}/classes:${JCK}/javatest.jar
      DISPLAY=${DISPLAY-$HOST:0.0}

      if `echo $SWITCH|grep "\-d64" >/dev/null`; then
        LD_LIBRARY_PATH=${JCK}/lib/sparcv9
      else
        LD_LIBRARY_PATH=${JCK}/lib/${ARCH}
      fi


      PATH=$JDK/bin:$sharedJDK/bin:$PATH

      export PATH CLASSPATH DISPLAY LD_LIBRARY_PATH


      echo
      java ${SWITCH} -version
      echo
      java ${SWITCH} -verify -Xfuture -Djava.security.policy=${JCK}/lib/jck.policy -Djava.rmi.activation.port=${executeClass} -Djava.awt.headless=${headless} ${executeClass} ${excludeCmd} ${executeClassArgs} ${executeContextArgs} ${executeTestURL}



      --------Script END----------------------

      Test output:
      =============

      An unexpected exception has been detected in native code outside the VM.
      Unexpected Signal : 11 occurred at PC=0xF3D1BF2C
      Function=XLoadQueryFont+0x4
      Library=/usr/openwin/lib/libX11.so.4

      Current Java thread:
              at sun.awt.font.NativeFontWrapper.getFontMetrics(Native Method)
              - locked <f8a93f28> (a java.lang.Class)
              at sun.awt.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:172)
              at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:157)
              at sun.awt.font.FontDesignMetrics.<init>(FontDesignMetrics.java:142)
              at sun.awt.SunToolkit.getFontMetrics(SunToolkit.java:335)
              at sun.awt.motif.MToolkit.getFontMetrics(MToolkit.java:332)
              at sun.awt.HeadlessToolkit.getFontMetrics(HeadlessToolkit.java:377)
              at java.awt.Component.getFontMetrics(Component.java:2154)
              at javax.swing.text.PlainView.calculateLongestLine(PlainView.java:582)
              at javax.swing.text.PlainView.updateMetrics(PlainView.java:184)
              at javax.swing.text.PlainView.updateDamage(PlainView.java:474)
              at javax.swing.text.PlainView.insertUpdate(PlainView.java:398)
              at javax.swing.text.FieldView.insertUpdate(FieldView.java:266)
              at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate(BasicTextUI.java:1403)
              at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate(BasicTextUI.java:1637)
              at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
              at javax.swing.text.AbstractDocument.handleInsertString(AbstractDocument.java:680)
              at javax.swing.text.AbstractDocument.insertString(AbstractDocument.java:640)
              at javax.swing.text.PlainDocument.insertString(PlainDocument.java:117)
              at javax.swing.colorchooser.NumericDocument.insertString(JIntegerTextField.java:127)
              at javax.swing.text.JTextComponent.setText(JTextComponent.java:1290)
              at javax.swing.colorchooser.JIntegerTextField.setText(JIntegerTextField.java:71)
              at javax.swing.JTextField.<init>(JTextField.java:227)
              at javax.swing.colorchooser.JIntegerTextField.<init>(JIntegerTextField.java:28)
              at javax.swing.colorchooser.DefaultHSBChooserPanel.buildHSBControls(DefaultHSBChooserPanel.java:366)
              at javax.swing.colorchooser.DefaultHSBChooserPanel.buildChooser(DefaultHSBChooserPanel.java:291)
              at javax.swing.colorchooser.AbstractColorChooserPanel.installChooserPanel(AbstractColorChooserPanel.java:120)
              at javax.swing.plaf.basic.BasicColorChooserUI$PropertyHandler.propertyChange(BasicColorChooserUI.java:231)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:268)
              at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:236)
              at javax.swing.JComponent.firePropertyChange(JComponent.java:3695)
              at javax.swing.JColorChooser.setChooserPanels(JColorChooser.java:449)
              at javax.swing.plaf.basic.BasicColorChooserUI.installUI(BasicColorChooserUI.java:81)
              at javax.swing.JComponent.setUI(JComponent.java:403)
              at javax.swing.JColorChooser.setUI(JColorChooser.java:212)
              at javax.swing.JColorChooser.updateUI(JColorChooser.java:223)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:186)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:174)
              at javax.swing.JColorChooser.<init>(JColorChooser.java:165)
              at javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicColorChooserUI.protectedTests.BasicColorChooserUI2004(protectedTests.java:53)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
              at sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.java:47)
              at java.lang.reflect.Method.invoke(Method.java:306)
              at javasoft.sqe.javatest.lib.MultiTest.invokeTestCase(MultiTest.java:409)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:205)
              at javasoft.sqe.javatest.lib.MultiTest.run(MultiTest.java:137)
              at javasoft.sqe.tests.api.javax.swing.plaf.basic.BasicColorChooserUI.protectedTests.main(protectedTests.java:40)

      Dynamic libraries:
      0x10000 /export/home/jtg-test/JH_JDK14_b58_JCK13a_c1Xmix/../jdk14/b58/jdk1.4.0/bin/../bin/sparc/native_threads/java
      0xff360000 /usr/lib/libthread.so.1
      0xff3a0000 /usr/lib/libdl.so.1
      0xff280000 /usr/lib/libc.so.1
      0xff270000 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
      0xfe400000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/client/libjvm.so
      0xff210000 /usr/lib/libCrun.so.1
      0xff1f0000 /usr/lib/libsocket.so.1
      0xff100000 /usr/lib/libnsl.so.1
      0xff1c0000 /usr/lib/libm.so.1
      0xff250000 /usr/lib/libw.so.1
      0xff0e0000 /usr/lib/libmp.so.2
      0xff0a0000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/native_threads/libhpi.so
      0xff070000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/libverify.so
      0xff030000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/libjava.so
      0xfe7e0000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/libzip.so
      0xfa880000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/libawt.so
      0xf4080000 /export/home/jtg-test/JH_JDK14_b58_JCK13a_c1Xmix/../jdk14/b58/jdk1.4.0/bin/../jre/lib/sparc/libmlib_image.so
      0xfaaa0000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/motif21/libmawt.so
      0xf3e00000 /usr/dt/lib/libXm.so.4
      0xfa810000 /usr/openwin/lib/libXt.so.4
      0xfa9d0000 /usr/openwin/lib/libXext.so.0
      0xfa9b0000 /usr/openwin/lib/libXtst.so.1
      0xf3d00000 /usr/openwin/lib/libX11.so.4
      0xfa990000 /usr/openwin/lib/libSM.so.6
      0xf47d0000 /usr/openwin/lib/libICE.so.6
      0xf3b00000 /export/home/jtg-test/jdk14/b58/jdk1.4.0/jre/lib/sparc/libfontmanager.so

      Local Time = Fri Mar 30 11:33:51 2001
      Elapsed Time = 4
      #
      # The exception above was detected in native code outside the VM
      #
      # Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b58 mixed mode)
      #
      # An error report file has been saved as hs_err_pid14292.log.
      # Please refer to the file for further information.
      #
      ----------log:(0/0)----------
      result: Failed. unexpected exit code: exit code 6


      Specific Machine Info:
      =====================

       SunOS ultraowl 5.7 Generic_106541-04 sun4u sparc SUNW,Ultra-4





      takwing.cheung@Eng 2001-04-02

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mmartaksunw Michael Martak (Inactive)
                Reporter:
                tacheung Tak Wing Cheung (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: