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

1.4.2_05: 3 JCK tests failing with -Xcheck:jni flag on Linux

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      06
    • CPU:
      x86
    • OS:
      generic

      Backports

        Description

        Ran JCK runtime tests for 1.4.2_05 on RHEL3.0 and quicksilver with the -Xcheck:jni flag.
        3 tests fail with this flag, and pass if it's not used.

        The same tests fail with 1.4.2 fcs so it's not a Regression.

        The 3 failing tests are:

        api/javax_swing/plaf/multi/MultiComboBoxUI/index.html#public
        api/javax_swing/plaf/multi/MultiColorChooserUI/index.html#public
        vm/jni/NewWeakGlobalRef/nwgr001/nwgr00101m1/nwgr00101m1.html

        The jtr files are attached.

        To reproduce the failures:
        - Install the JDK on a linux machine.
        - Set path to pick up java
        - Set CLASSPATH to /net/latte.ireland/export/home4/jck/JCK-runtime-14a/classes

        java -Xcheck:jni javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1 -platform.nativeCodeSupported true

        java -Xcheck:jni javasoft.sqe.tests.api.javax.swing.plaf.multi.MultiColorChooserUI.publicTests

        java -Xcheck:jni javasoft.sqe.tests.api.javax.swing.plaf.multi.MultiComboBoxUI.publicTests


        ===========================================================================


        javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1 test is still failing for 1.4.2_06b1
        (only when -Xcheck:jni flag is used)
        bug has been marked as INT for 1.4.2_06

        Same error produced :

        #section:testExecute
        ----------messages:(1/483)----------
        command: com.sun.jck.lib.ExecJCKTestOtherJVMCmd CLASSPATH=/net/latte/export/home4/jck/JCK-runtime-14a/classes LD_LIBRARY_PAT
        H=/net/latte.ireland/export/home4/jck/JCK-runtime-14a/lib/sparc DISPLAY=club:0.0 HOME=/home/sc87771 //export/home/j2sdk1.4.2
        _06/bin/java -Xcheck:jni -Djava.awt.headless=false -Xfuture -Djava.security.policy=/net/latte/export/home4/jck/JCK-runtime-1
        4a/lib/jck.policy javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1 -platform.nativeCodeSupported true
        ----------ref:(6/539)----------
        FATAL ERROR in native method: Null object passed to NewWeakGlobalRef
                at javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1.nwgr00101m1CheckNULLObj(Native Method)
                at javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1.InitCheckRefs(nwgr00101m1.java:70)
                at javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1.testChecks(nwgr00101m1.java:179)
                at javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1.run(nwgr00101m1.java:241)
                at javasoft.sqe.tests.vm.jni.nwgr001.nwgr00101m1.nwgr00101m1.main(nwgr00101m1.java:245)
        ----------log:(0/0)----------
        result: Failed. unexpected exit code: exit code 6


        ###@###.### 2004-07-01

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                chegar Chris Hegarty
                Reporter:
                duke J. Duke (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: