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

"Permissions/receiveDataGramSocketTest" test case failed when "-Xcheck:jni" is used

    Details

    • Subcomponent:
    • Resolved In Build:
      b08
    • CPU:
      x86
    • OS:
      solaris_10
    • Verification:
      Verified

      Backports

        Description

        "Permissions/receiveDataGramSocketTest" test case failed on Solaris 10 AMD64 when "-Xcheck:jni" is used. Error message:
        "
        FATAL ERROR in native method: JNI call made with exception pending
                at java.net.PlainDatagramSocketImpl.peekData(Native Method)
                - locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
                at java.net.DatagramSocket.receive(DatagramSocket.java:661)
                - locked <0xf2844ed0> (a java.net.DatagramPacket)
                - locked <0xf2832500> (a java.net.DatagramSocket)
                at myDataGramClient.run(myDataGramClient.java:18)
        Abort
        "

        For reproduce it:
        1. login to "stt-33.russia.sun.com"
        2. cd /net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/reguser.Solaris.x86/receiveDataGramSocketTest
        3. perform test:
        [stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Xcheck:jni -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false
        FATAL ERROR in native method: JNI call made with exception pending
                at java.net.PlainDatagramSocketImpl.peekData(Native Method)
                - locked <0xf2833c60> (a java.net.PlainDatagramSocketImpl)
                at java.net.DatagramSocket.receive(DatagramSocket.java:661)
                - locked <0xf2844ed0> (a java.net.DatagramPacket)
                - locked <0xf2832500> (a java.net.DatagramSocket)
                at myDataGramClient.run(myDataGramClient.java:18)
        Abort
        4. If you remove -Xcheck:jni you can see:
        "
        [stt-robot@stt-33]$ /export/JDK/j2sdk1.4.2_14/bin/java -Xbootclasspath:privileged.jar:/export/JDK/j2sdk1.4.2_14/jre/lib/rt.jar -Djava.security.manager -Djava.security.policy=noSocketPermission.jp receiveDataGramSocketTest void false -----------------------------------

        Test Name = receiveDataGramSocketTest
        Test Args = void Expected Result = false
        Test Result = PASS: the test got Security exception as expected
        "

        platform: amd 64
        OS: Solaris 10
        JDK: 142_14 all builds
        testing machine: stt-33.russia.sun.com
        results in:
        net/vice.russia/export/home0/dtf/dtf_ws/dtf3-exec/142_Suites-142_14b06_security_Sol10_x64-2007-05-03-18-17-08-0942/results/

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  asaha Abhijit Saha
                  Reporter:
                  afomin Alexander Fomin (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: