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

Test java/net/InetAddress/ptr/Lookup.java intermittent fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 26
    • core-libs
    • None
    • x86_64
    • linux

      The test log snippet:

      STDOUT:
      Command line: [/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/linux-x86_64-server-release/images/jdk/bin/java -cp /home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/test_jdk/classes/249/java/net/InetAddress/ptr/Lookup.d:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/jdk/java/net/InetAddress/ptr:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/test_jdk/classes/249/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/javatest.jar:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/jtreg.jar -ea -esa -Djava.net.preferIPv4Stack=true Lookup ]
      [2025-08-06T15:21:41.401498290Z] Gathering output for process 2080821
      IPv4 lookup results: [192.0.43.7:192.0.43.7]
      Command line: [/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/linux-x86_64-server-release/images/jdk/bin/java -cp /home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/test_jdk/classes/249/java/net/InetAddress/ptr/Lookup.d:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/jdk/java/net/InetAddress/ptr:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/build/jt-work/jtreg/test_jdk/classes/249/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jdk/test/lib:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/javatest.jar:/home/higon/workspace/jenkins/workspace/JDK_Daily_2/jdk17.jtreg_post/output/jtreg/lib/jtreg.jar -ea -esa -Djava.net.preferIPv4Stack=true Lookup reverse 192.0.43.7 ]
      [2025-08-06T15:21:51.897232825Z] Gathering output for process 2117475
      IPv4 reverse lookup results: [192.0.43.7:icann.org]
      dual stack lookup for addr 192.0.43.7 returned IP address icann.org/192.0.43.7
       with hostname icann.org
      (default) 192.0.43.7--> icann.org (reversed IPv4: icann.org)
      STDERR:
      name=icann.org doesn't match expected=192.0.43.7
      Listing all adresses:
      [icann.org/192.0.43.7] address=192.0.43.7, host=icann.org
      [icann.org/2001:500:88:200:0:0:0:7] address=2001:500:88:200:0:0:0:7, host=icann.org
      java.lang.RuntimeException: Mismatch between default and java.net.preferIPv4Stack=true results
      at Lookup.main(Lookup.java:132)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:565)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1474)

            msheppar Mark Sheppard
            syan Sendao Yan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: