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

Linux: Unexpected error during running Permitions tests (SECURITY testsuite)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.3.0
    • hotspot
    • x86
    • linux

    Description

       /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileCanWriteTest
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileMkdirTest
      Test Args = /tmp/too Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileMkdirTest
      Test Args = /tmp/too Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileRenameToTest
      Test Args = /tmp/too Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileRenameToTest
      Test Args = /tmp/too Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileDeleteTest
      Test Args = /tmp/too Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileDeleteTest
      Test Args = /tmp/too Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = setPublicKeyInfoTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

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

      Test Name = setPublicKeyTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

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

      Test Name = swingPrintJobTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 53414645504F494E540E4350500111
      #
      # Problematic Thread: prio=1 tid=0x804ed98 nid=0x373f runnable
      #
      Abort

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

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


      Name: iaR10016 Date: 07/02/2000



      JDK version:
      java version "1.3.0beta" Java(TM) 2 Runtime Environment,
      Standard Edition (build 1.3.0beta-b09)
      Java HotSpot(TM) Client VM (build 1.3.0beta-b07, mixed mode)

      OS version:
      RedHat Linux 6.1

      Permissions tests from Security testsuite (/net/sqesvr/export/security)
      call Runtime.exec() method 408 times.
      The testsuite hangs 9 from 10 times when running in client mode.

      Please note that output of the test differs from time to time.
      In most cases process hangs without any error message. Sometimes
      it hangs with the following messages:

      ...
      #
      # HotSpot Virtual Machine Error, Internal Error
      # Please report this error at
      # http://java.sun.com/cgi-bin/bugreport.cgi
      #
      # Error ID: 53414645504F494E540E4350500111
      #
      # Problematic Thread: prio=1 tid=0x804ed98 nid=0x373f runnable
      #
      ...

      In the builds b01-b08 the tests fail on SMP only.
      In build b09 the test fails on single processor machine too.

      It looks like bug #4345764, but the test example from this bug never fails
      on single-processor machine.
      The tests never fail in classic mode.
      The test failed sometimes in server mode in SMP in the previous builds.

      I use the following computers configurations:

      1. Cyrix M2 300MHz / 64 Mb / HDD QUANTUM FIREBALL 4.3 Gb IDE /
      CD-ROM drive SAMSUNG SC-140F 40X IDE / video Alliance Promotion AT25

      2. Notebook IBM ThinkPad 390E Intel Celeron 366MHz / 98 Mb / HDD 4.8 Gb /
         14.1" TFT / CD-ROM drive LG CRN-8241B

      3. DELL OptiPlex Intel Pentium Pro 300MHz / 64 Mb / HDD 2.1 Gb SCSI /
         video S3 Trio64 2Mb / CD-ROM drive

      4. Intel Pentium III 600MHz (2) / 256 Mb / HDD IBM 8.7 Gb UWSCSI /
         CD-ROM drive ATAPI 40X IDE / video S3 Trio32/Trio64

      Sample output is:

      --------------------------------------------------------------------------
      JAVA_FLAGS ARE : -Xfuture
      -----------------------------------

      Test Name = FileReadTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileReadTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileWriteTest
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileWriteTest
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = SetIOin
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = SetIOin
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = SetIOout
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = SetIOout
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = SetIOerr
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = SetIOerr
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = AWTWindowTest
      Test Args = TestCWindow Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = AWTWindowTest
      Test Args = TestCWindow Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = ClipboardAccessTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

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

      Test Name = AWTEventQueueTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

      Enabling platform fonts. NOTE: usePlatformFont is now deprecated and will be removed in the next build.
      -----------------------------------

      Test Name = PrintJobTest
      Test Args = PrintJob Expected Result = true
      Test Result = FAIL: Unexpected Security exception for PrintJob

      java.security.AccessControlException: access denied (java.util.PropertyPermission PRINTER read)
              at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
              at java.security.AccessController.checkPermission(AccessController.java:399)
              at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
              at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1278)
              at java.lang.System.getProperty(System.java:560)
              at sun.awt.motif.PSPrintControl.getDefaultPrinterName(PSPrintControl.java:123)
              at sun.awt.print.PrintControl.getPrinterAttrib(PrintControl.java:257)
              at sun.awt.print.PrintControl.initJobWithCommonDialog(PrintControl.java:327)
              at sun.awt.print.PrintControl.initJobWithNativeDialog(PrintControl.java:359)
              at sun.awt.print.PrintControl.initJob(PrintControl.java:293)
              at sun.awt.motif.PSPrintControl.initJob(PSPrintControl.java:112)
              at sun.awt.motif.MToolkit.getPrintJob(MToolkit.java:376)
              at PrintJobTest.run(PrintJobTest.java:68)
              at SecurityTest.verify(SecurityTest.java:76)
              at PrintJobTest.main(PrintJobTest.java:85)
      -----------------------------------

      Test Name = PrintJobTest
      Test Args = PrintJob Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Test Name = threadStopTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadStopTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Test Name = threadStopThrowableTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadStopThrowableTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadInterruptTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadInterruptTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSuspendTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSuspendTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadResumeTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadResumeTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSetPriorityTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSetPriorityTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSetNameTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadSetNameTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = threadSetDaemonTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

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

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupSetDaemonTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupSetDaemonTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupSetMaxPriorityTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupSetMaxPriorityTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupStopTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupSuspendTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupResumeTest
      Test Args = void Expected Result = true
      Test Result = PASS: passed the test as expected

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

      localTestThread started....
      Thread Cleaned Up...
      Test Name = threadGroupResumeTest
      Test Args = void Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

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

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

      Test Name = FileExistsTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileExistsTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileCanReadTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileCanReadTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileIsFileTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileIsFileTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileIsDirectoryTest
      Test Args = /bin/tmp Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileIsDirectoryTest
      Test Args = /bin/tmp Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileLastModifiedTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileLastModifiedTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileLengthTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileLengthTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileListTest
      Test Args = /bin/tmp Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileListTest
      Test Args = /bin/tmp Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = RandomAccessFileReadTest
      Test Args = /bin/ls Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = RandomAccessFileReadTest
      Test Args = /bin/ls Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = RandomAccessFileWriteTest
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = RandomAccessFileWriteTest
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileWriteAppendTest
      Test Args = /tmp/foo Expected Result = true
      Test Result = PASS: passed the test as expected

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

      Test Name = FileWriteAppendTest
      Test Args = /tmp/foo Expected Result = false
      Test Result = PASS: the test got Security exception as expected

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

      Test Name = FileCanWriteTest
      Test Args =

      Attachments

        Issue Links

          Activity

            People

              duke J. Duke
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: