Harmony
  1. Harmony
  2. HARMONY-2284

[classlib][drlvm][security] intermittent failures of security module tests

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      Win XP, msvc, debug

      Description

      While running security module tests in perTest mode iteratively 50 times on Win XP on svn=r476124, I observed the following intermittent failures:

      1). org.apache.harmony.security.tests.provider.crypto.SHA1withDSA_SignatureTest@testSignbyteArrayintint02 failed 2 times out of 50:

      case2 : no SignatureExcepton : i=2

      junit.framework.AssertionFailedError: case2 : no SignatureExcepton : i=2 at org.apache.harmony.security.tests.provider.crypto.SHA1withDSA_SignatureTest.testSignbyteArrayintint02(SHA1withDSA_SignatureTest.java:556) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      or

      case2 : no SignatureExcepton : i=1

      junit.framework.AssertionFailedError: case2 : no SignatureExcepton : i=1 at org.apache.harmony.security.tests.provider.crypto.SHA1withDSA_SignatureTest.testSignbyteArrayintint02(SHA1withDSA_SignatureTest.java:556) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      2). org.apache.harmony.security.tests.provider.crypto.SHA1PRNG_SecureRandomTest@ testNextBytesbyteArray03 failed 1 time out of 50:

      unexpected: myBytes1[] == myBytes2[] :: i=1

      junit.framework.AssertionFailedError: unexpected: myBytes1[] == myBytes2[] :: i=1 at org.apache.harmony.security.tests.provider.crypto.SHA1PRNG_SecureRandomTest.testNextBytesbyteArray03(SHA1PRNG_SecureRandomTest.java:217) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      3). org.apache.harmony.security.tests.provider.crypto.SHA1PRNG_SecureRandomTest@ testNextBytesbyteArray04 failed 1 time out of 50:

      unexpected: myBytes1[] == myBytes2[] :: i=1

      junit.framework.AssertionFailedError: unexpected: myBytes1[] == myBytes2[] :: i=1 at org.apache.harmony.security.tests.provider.crypto.SHA1PRNG_SecureRandomTest.testNextBytesbyteArray04(SHA1PRNG_SecureRandomTest.java:266) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      4). org.apache.harmony.security.tests.x509.PolicyQualifierInfoTest 1 time out of 50 - Timeout occured

      I'll proceed with iterative test runs and update the list, if there are new failures.

        Activity

        Hide
        Mikhail Loenko added a comment -

        I've modifies issue #2 above to lower down probability of intermittent failures
        see revision 478786

        Show
        Mikhail Loenko added a comment - I've modifies issue #2 above to lower down probability of intermittent failures see revision 478786
        Hide
        Mikhail Loenko added a comment -

        #1 fixed in revision 478836

        Show
        Mikhail Loenko added a comment - #1 fixed in revision 478836
        Hide
        Mikhail Loenko added a comment -

        #3 fixed in revision 478840

        Show
        Mikhail Loenko added a comment - #3 fixed in revision 478840
        Hide
        tatyana doubtsova added a comment -

        #1, #2, #3 were not reproduced while 50 iterative runs of security module on drlvm, svn=r478890

        Show
        tatyana doubtsova added a comment - #1, #2, #3 were not reproduced while 50 iterative runs of security module on drlvm, svn=r478890

          People

          • Assignee:
            Mikhail Loenko
            Reporter:
            tatyana doubtsova
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development