Harmony
  1. Harmony
  2. HARMONY-2315

[classlib][luni] org.apache.harmony.luni.tests.java.net.InetAddressTest intermittent failure

    Details

    • Type: Bug Bug
    • Status: Reopened
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Classlib
    • Labels:
      None
    • Environment:
      SUSE 9, gcc, debug

      Description

      Running luni module tests in perTest mode iteratively 50 times on SUSE9 on svn = r478052 the failure of 2 testcases in org.apache.harmony.luni.tests.java.net.InetAddressTest was observed 1 time out of 50:

      test_hashCode Failure

      Incorrect hash returned: 1 from host: localhost/0000:0000:0000:0000:0000:0000:0000:0001
      junit.framework.AssertionFailedError: Incorrect hash returned: 1 from host: localhost/0000:0000:0000:0000:0000:0000:0000:0001 at org.apache.harmony.luni.tests.java.net.InetAddressTest.test_hashCode(InetAddressTest.java:358) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

      testSerializationCompatibility Failure

      expected:<0> but was:<127>
      junit.framework.AssertionFailedError: expected:<0> but was:<127> at org.apache.harmony.luni.tests.java.net.InetAddressTest$1.assertDeserialized(InetAddressTest.java:498) at org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden(SerializationTest.java:383) at org.apache.harmony.luni.tests.java.net.InetAddressTest.testSerializationCompatibility(InetAddressTest.java:519) at java.lang.reflect.VMReflection.invokeMethod(Native Method)

        Activity

        Hide
        Alexei Fedotov added a comment -

        The test org.apache.harmony.tests.java.net.InetAddressTest and this test (name differs!) both fail 1 time from 162 in a reliability test run.

        Show
        Alexei Fedotov added a comment - The test org.apache.harmony.tests.java.net.InetAddressTest and this test (name differs!) both fail 1 time from 162 in a reliability test run.
        Hide
        Vasily Zakharov added a comment -

        I couldn't reproduce the problem for org.apache.harmony.tests.java.net.InetAddressTest - it passes stably on hundreds of sequential runs.

        Show
        Vasily Zakharov added a comment - I couldn't reproduce the problem for org.apache.harmony.tests.java.net.InetAddressTest - it passes stably on hundreds of sequential runs.
        Hide
        Vasily Zakharov added a comment -

        The test_getAllByNameLjava_lang_String() test case in org.apache.harmony.luni.tests.java.net.InetAddressTest fails stably as it calls InetAddress.getAllByName("jcltestmultiple.apache.org") that throws java.net.UnknownHostException as that name (looks like) doesn't exist in DNS.

        Show
        Vasily Zakharov added a comment - The test_getAllByNameLjava_lang_String() test case in org.apache.harmony.luni.tests.java.net.InetAddressTest fails stably as it calls InetAddress.getAllByName("jcltestmultiple.apache.org") that throws java.net.UnknownHostException as that name (looks like) doesn't exist in DNS.
        Hide
        Vasily Zakharov added a comment -

        The test_getAddress() test case in org.apache.harmony.luni.tests.java.net.InetAddressTest fails stably as it compares InetAddress.getByName("127.0.0.1") to

        { 9, 26, -56, -111 }

        which surely can't be true.

        Show
        Vasily Zakharov added a comment - The test_getAddress() test case in org.apache.harmony.luni.tests.java.net.InetAddressTest fails stably as it compares InetAddress.getByName("127.0.0.1") to { 9, 26, -56, -111 } which surely can't be true.
        Hide
        Vasily Zakharov added a comment -

        I couldn't reproduce the listed failures of test_hashCode() and testSerializationCompatibility() test cases. They pass stably over hundreds of test runs.

        Show
        Vasily Zakharov added a comment - I couldn't reproduce the listed failures of test_hashCode() and testSerializationCompatibility() test cases. They pass stably over hundreds of test runs.
        Hide
        tatyana doubtsova added a comment -

        The failure is not reprodicible last two weeks on iterative runs of luni module tests

        Show
        tatyana doubtsova added a comment - The failure is not reprodicible last two weeks on iterative runs of luni module tests
        Hide
        Tim Ellison added a comment -

        I suggest it is resolved as cannot reproduce then.

        Show
        Tim Ellison added a comment - I suggest it is resolved as cannot reproduce then.
        Hide
        Mikhail Markov added a comment -

        I also could not reproduce the issue running many times, so +1 for closing the issue as cannot reproduce.

        Show
        Mikhail Markov added a comment - I also could not reproduce the issue running many times, so +1 for closing the issue as cannot reproduce.
        Hide
        Mikhail Markov added a comment -

        Could someone from the committers close this JIRA as it's not reproducible for a long period of time? Thanks!

        Show
        Mikhail Markov added a comment - Could someone from the committers close this JIRA as it's not reproducible for a long period of time? Thanks!
        Hide
        Paulex Yang added a comment -

        Closed upon request.

        Show
        Paulex Yang added a comment - Closed upon request.
        Hide
        tatyana doubtsova added a comment -

        I reopen the issue. It was reproduced on SUSEL9 ia32, gcc, debug, r498001 1 time out of 50

        Test: test_hashCodeClass: org.apache.harmony.luni.tests.java.net.InetAddressTest
        junit.framework.AssertionFailedError: Incorrect hash returned: 1 from host: localhost/0000:0000:0000:0000:0000:0000:0000:0001
        at org.apache.harmony.luni.tests.java.net.InetAddressTest.test_hashCode(InetAddressTest.java:371)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

        Test: testSerializationCompatibilityClass: org.apache.harmony.luni.tests.java.net.InetAddressTest
        junit.framework.AssertionFailedError: expected:<0> but was:<127>
        at org.apache.harmony.luni.tests.java.net.InetAddressTest$1.assertDeserialized(InetAddressTest.java:520)
        at org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden(SerializationTest.java:390)
        at org.apache.harmony.luni.tests.java.net.InetAddressTest.testSerializationCompatibility(InetAddressTest.java:576)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

        Show
        tatyana doubtsova added a comment - I reopen the issue. It was reproduced on SUSEL9 ia32, gcc, debug, r498001 1 time out of 50 Test: test_hashCodeClass: org.apache.harmony.luni.tests.java.net.InetAddressTest junit.framework.AssertionFailedError: Incorrect hash returned: 1 from host: localhost/0000:0000:0000:0000:0000:0000:0000:0001 at org.apache.harmony.luni.tests.java.net.InetAddressTest.test_hashCode(InetAddressTest.java:371) at java.lang.reflect.VMReflection.invokeMethod(Native Method) Test: testSerializationCompatibilityClass: org.apache.harmony.luni.tests.java.net.InetAddressTest junit.framework.AssertionFailedError: expected:<0> but was:<127> at org.apache.harmony.luni.tests.java.net.InetAddressTest$1.assertDeserialized(InetAddressTest.java:520) at org.apache.harmony.testframework.serialization.SerializationTest.verifyGolden(SerializationTest.java:390) at org.apache.harmony.luni.tests.java.net.InetAddressTest.testSerializationCompatibility(InetAddressTest.java:576) at java.lang.reflect.VMReflection.invokeMethod(Native Method)
        Hide
        tatyana doubtsova added a comment -

        Seems to be the same issue (failes 1 time out of 50):

        Test: test_toStringClass: org.apache.harmony.tests.java.net.InetAddressTest
        junit.framework.ComparisonFailure: Assert 0: wrong string from name expected:<localhost/[127.0.0.]1> but was:<localhost/[0000:0000:0000:0000:0000:0000:0000:000]1>
        at org.apache.harmony.tests.java.net.InetAddressTest.test_toString(InetAddressTest.java:57)
        at java.lang.reflect.VMReflection.invokeMethod(Native Method)

        Show
        tatyana doubtsova added a comment - Seems to be the same issue (failes 1 time out of 50): Test: test_toStringClass: org.apache.harmony.tests.java.net.InetAddressTest junit.framework.ComparisonFailure: Assert 0: wrong string from name expected:<localhost/ [127.0.0.] 1> but was:<localhost/ [0000:0000:0000:0000:0000:0000:0000:000] 1> at org.apache.harmony.tests.java.net.InetAddressTest.test_toString(InetAddressTest.java:57) at java.lang.reflect.VMReflection.invokeMethod(Native Method)
        Hide
        Paulex Yang added a comment -

        Seems the IPv4 address is expected but the IPv6 address is returned. I'll have a look at this issue.

        Show
        Paulex Yang added a comment - Seems the IPv4 address is expected but the IPv6 address is returned. I'll have a look at this issue.
        Hide
        Paulex Yang added a comment -

        btw, if running on IR, does this test fail in similar way on same machine?

        Show
        Paulex Yang added a comment - btw, if running on IR, does this test fail in similar way on same machine?
        Hide
        Tony Wu added a comment -

        Hi tatyana
        I ran the org.apache.harmony.luni.tests.java.net.InetAddressTest 100 times on my Ubuntu 6 which supports ipv6 but still can not reproduce it : (

        Show
        Tony Wu added a comment - Hi tatyana I ran the org.apache.harmony.luni.tests.java.net.InetAddressTest 100 times on my Ubuntu 6 which supports ipv6 but still can not reproduce it : (
        Hide
        Paulex Yang added a comment -

        No response from reporter for long time, suppose it's OK now.

        Show
        Paulex Yang added a comment - No response from reporter for long time, suppose it's OK now.
        Hide
        Mark Hindess added a comment -

        If this is really resolved then perhaps we should remove the lines:

        #2315
        org/apache/harmony/luni/tests/java/net/InetAddressTest.java

        from modules/luni/make/exclude.linux.x86.drl.interm to let this test run again.

        Show
        Mark Hindess added a comment - If this is really resolved then perhaps we should remove the lines: #2315 org/apache/harmony/luni/tests/java/net/InetAddressTest.java from modules/luni/make/exclude.linux.x86.drl.interm to let this test run again.
        Hide
        Mark Hindess added a comment -

        Re-opening so my previous comment doesn't get lost.

        Show
        Mark Hindess added a comment - Re-opening so my previous comment doesn't get lost.

          People

          • Assignee:
            Paulex Yang
            Reporter:
            tatyana doubtsova
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:

              Development